/* 
=====================================================
   Ethical Google Review System — Main CSS
=====================================================
*/

:root {
    /* Color Palette — Light Mode */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #0ea5e9;
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --star-empty: #cbd5e1;
    --star-fill: #fbbf24;
    --success: #10b981;
    --whatsapp: #25d366;
    
    /* Effects */
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Glassmorphism ────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ─── Animations ───────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hidden { display: none !important; }

/* ─── Typography & Gradients ───────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-google {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 1rem;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
}

.google-icon { width: 24px; height: 24px; }

/* ─── Star Rating ──────────────────────────────────── */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

.star-rating input { display: none; }
.star-rating label {
    font-size: 3rem;
    color: var(--star-empty);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--star-fill);
    transform: scale(1.15);
}

/* ─── Generator Specifics ──────────────────────────── */
.generator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .generator-grid { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus { border-color: var(--primary); outline: none; ring: 2px var(--primary); }

/* Review Card Preview */
.review-preview-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    position: relative;
    border-left: 4px solid var(--primary);
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 6px;
}

/* Floating WhatsApp */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-fab:hover { transform: scale(1.1) rotate(10deg); }
.whatsapp-icon { width: 32px; height: 32px; }

/* Loading Animation */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
