/* ========================================
    YAGA SHOPPING LIST - STYLESHEET
    Color Scheme: 60/30/10 (Blue/Orange/Green)
   ======================================== */

/* ========== ROOT & VARIABLES ========== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #93C5FD;
    --secondary: #F97316;
    --accent: #22C55E;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #F3F7FF;
    --bg-tertiary: #FFF4E6;
    
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    
    --border-color: #D9E2F5;
    --shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    --shadow-lg: 0 8px 24px rgba(37, 99, 235, 0.18);
    --shadow-xl: 0 16px 48px rgba(37, 99, 235, 0.25);
    --glow: rgba(37, 99, 235, 0.2);
    --overlay: rgba(255, 255, 255, 0.2);

    --footer-bg: #0F172A;
    --footer-text: #F8FAFC;
    --footer-text-muted: rgba(248, 250, 252, 0.7);
    --footer-border: rgba(248, 250, 252, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #60A5FA;
        --primary-dark: #3B82F6;
        --primary-light: #93C5FD;
        --secondary: #FDBA74;
        --accent: #4ADE80;
        --success: #4ADE80;
        --warning: #FBBF24;
        --danger: #F87171;

        --bg-primary: #0B1220;
        --bg-secondary: #0F172A;
        --bg-tertiary: #1C1917;

        --text-primary: #F8FAFC;
        --text-secondary: #CBD5F5;
        --text-light: #94A3B8;

        --border-color: #243247;
        --shadow: 0 2px 10px rgba(15, 23, 42, 0.6);
        --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.7);
        --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.8);
        --glow: rgba(96, 165, 250, 0.25);
        --overlay: rgba(255, 255, 255, 0.12);

        --footer-bg: #0B1220;
        --footer-text: #F8FAFC;
        --footer-text-muted: rgba(248, 250, 252, 0.7);
        --footer-border: rgba(248, 250, 252, 0.12);
    }
}

:root[data-theme="light"] {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #93C5FD;
    --secondary: #F97316;
    --accent: #22C55E;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;

    --bg-primary: #ffffff;
    --bg-secondary: #F3F7FF;
    --bg-tertiary: #FFF4E6;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;

    --border-color: #D9E2F5;
    --shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    --shadow-lg: 0 8px 24px rgba(37, 99, 235, 0.18);
    --shadow-xl: 0 16px 48px rgba(37, 99, 235, 0.25);
    --glow: rgba(37, 99, 235, 0.2);
    --overlay: rgba(255, 255, 255, 0.2);

    --footer-bg: #0F172A;
    --footer-text: #F8FAFC;
    --footer-text-muted: rgba(248, 250, 252, 0.7);
    --footer-border: rgba(248, 250, 252, 0.12);
}

:root[data-theme="dark"] {
    --primary: #60A5FA;
    --primary-dark: #3B82F6;
    --primary-light: #93C5FD;
    --secondary: #FDBA74;
    --accent: #4ADE80;
    --success: #4ADE80;
    --warning: #FBBF24;
    --danger: #F87171;

    --bg-primary: #0B1220;
    --bg-secondary: #0F172A;
    --bg-tertiary: #1C1917;

    --text-primary: #F8FAFC;
    --text-secondary: #CBD5F5;
    --text-light: #94A3B8;

    --border-color: #243247;
    --shadow: 0 2px 10px rgba(15, 23, 42, 0.6);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.7);
    --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.8);
    --glow: rgba(96, 165, 250, 0.25);
    --overlay: rgba(255, 255, 255, 0.12);

    --footer-bg: #0B1220;
    --footer-text: #F8FAFC;
    --footer-text-muted: rgba(248, 250, 252, 0.7);
    --footer-border: rgba(248, 250, 252, 0.12);
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 24px;
}

.logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 12px;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
    margin-top: 70px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px var(--glow));
}

/* ========== FEATURES GRID ========== */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features h2,
.screenshots h2,
.download h2,
.features-summary h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: white;
}

.purple-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* ========== DETAILED FEATURES ========== */
.detailed-features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.detailed-features h2 {
    font-size: 42px;
    margin-bottom: 80px;
}

.feature-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-highlight.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-highlight.reverse .highlight-image {
    order: -1;
}

.highlight-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.highlight-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    padding-left: 32px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

.highlight-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ========== APP ICON SECTION ========== */
.app-icon-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.app-icon-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.icon-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-display {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.app-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 48px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.app-icon-large:hover {
    transform: scale(1.1) rotateZ(-5deg);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========== SCREENSHOTS ========== */
.screenshots {
    padding: 100px 0;
    background: var(--bg-primary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.screenshot-item {
    text-align: center;
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.screenshot-item:hover .screenshot {
    box-shadow: var(--shadow-xl);
}

.screenshot-item p {
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== DOWNLOAD SECTION ========== */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.download h2,
.download .section-subtitle {
    color: white;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.download-btn {
    padding: 16px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    border: 2px solid white;
}

.download-btn.android {
    background: var(--overlay);
}

.download-btn.android:hover {
    background: var(--bg-primary);
    color: var(--primary);
}

.download-btn.ios {
    background: var(--overlay);
}

.download-btn.ios:hover {
    background: var(--bg-primary);
    color: var(--primary);
}

.download-btn i {
    font-size: 24px;
}

/* ========== FEATURES SUMMARY ========== */
.features-summary {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.summary-item {
    text-align: center;
    padding: 32px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.summary-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.summary-item i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.summary-item h4 {
    font-size: 18px;
    color: var(--text-primary);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--footer-text-muted);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 20px;
    text-align: center;
    color: var(--footer-text-muted);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-brand {
        gap: 8px;
        font-size: 18px;
        width: 100%;
        justify-content: center;
    }

    .logo {
        height: 32px;
        width: 32px;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 12px;
        font-weight: 400;
    }

    .theme-toggle-label {
        display: none;
    }

    .language-switcher {
        border-left: none;
        padding-left: 0;
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .theme-toggle {
        padding: 4px 8px;
        font-size: 14px;
    }

    .hero {
        margin-top: 50px;
        padding: 40px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features h2,
    .screenshots h2,
    .download h2,
    .features-summary h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-highlight {
        grid-template-columns: 1fr;
    }

    .feature-highlight.reverse .highlight-image {
        order: 1;
    }

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .features h2,
    .screenshots h2,
    .download h2,
    .features-summary h2 {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.screenshot-item,
.summary-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }
.feature-card:nth-child(9) { animation-delay: 0.9s; }
