/* ===== Downloads Page Styles ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --secondary-color: #4CAF50;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #FFFFFF;
    --surface: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background);
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.logo-section h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.lang-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.flag-icon {
    width: 24px;
    height: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: var(--surface);
}

/* ===== QR Codes ===== */
.qr-codes-container {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 16px 0;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-code-item:first-child {
    align-items: flex-start;
}

.qr-code-item:last-child {
    align-items: flex-end;
}

.qr-code {
    width: 120px;
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    background: white;
    box-shadow: 0 2px 8px var(--shadow);
}

.qr-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== Hero Section ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 80px 32px;
    align-items: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ===== Download Buttons ===== */
.download-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow);
}

.app-store {
    background: #000000;
}

.google-play {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
}

.btn-icon {
    width: 32px;
    height: 32px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 11px;
    opacity: 0.9;
}

.btn-name {
    font-size: 18px;
    font-weight: 600;
}

.version-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Screenshots Gallery ===== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
}

.screenshot {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.screenshot.active {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(33, 150, 243, 0.3);
    border: 2px solid var(--primary-color);
}

/* ===== Features Section ===== */
.features {
    padding: 80px 32px;
    background: var(--surface);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Info Section ===== */
.info-section {
    padding: 80px 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.info-card {
    padding: 32px;
    background: var(--surface);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-section .download-buttons {
    justify-content: center;
}

/* ===== Footer ===== */
.footer {
    padding: 32px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 16px 20px;
    }
    
    .language-selector {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 40px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .screenshots-gallery {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
    }
    
    .features,
    .info-section,
    .cta-section {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-section h2 {
        font-size: 32px;
    }
}
