/* ===========================
   Theme: Narrative Editorial
   =========================== */

[data-theme="editorial"] {
    --theme-toggle-bg: #faf8f5;
    --theme-toggle-color: #2c2c2c;
    --dropdown-bg: #faf8f5;
    --dropdown-border: #e8e4de;
    --dropdown-text: #2c2c2c;
    --dropdown-label: #a09890;
    --dropdown-hover: #f0ece6;
    --dropdown-active: #ebe7e1;
}

[data-theme="editorial"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #faf8f5;
    color: #2c2c2c;
    line-height: 1.8;
    letter-spacing: 0;
}

/* Hero */
[data-theme="editorial"] .hero {
    padding: 160px 0 140px;
    text-align: center;
    background: #faf8f5;
    color: #2c2c2c;
    margin-bottom: 0;
    width: 100%;
    border-bottom: 2px solid #2c2c2c;
}

[data-theme="editorial"] .hero h2 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.05;
    letter-spacing: -3px;
    font-family: 'Playfair Display', 'Georgia', serif;
    word-break: break-all;
}

[data-theme="editorial"] .hero p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: #7a7068;
    word-break: keep-all;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-style: italic;
}

[data-theme="editorial"] .mobile-break {
    display: none;
}

/* App Grid */
[data-theme="editorial"] .app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    background: none;
}

/* App Card */
[data-theme="editorial"] .app-card {
    background: #faf8f5;
    padding: 60px 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e8e4de;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(24px);
    animation: editorialFadeIn 0.8s ease forwards;
}

[data-theme="editorial"] .app-card:nth-child(1) {
    animation-delay: 0.1s;
}

[data-theme="editorial"] .app-card:nth-child(2) {
    animation-delay: 0.25s;
}

[data-theme="editorial"] .app-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes editorialFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="editorial"] .app-card:hover {
    background: #f5f1eb;
}

/* App Icon */
[data-theme="editorial"] .app-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e4de;
    box-shadow: none;
}

[data-theme="editorial"] .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Info */
[data-theme="editorial"] .app-info {
    flex: 1;
}

[data-theme="editorial"] .app-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: #2c2c2c;
    font-family: 'Playfair Display', 'Georgia', serif;
}

[data-theme="editorial"] .app-desc {
    font-size: 1rem;
    color: #7a7068;
    margin-bottom: 20px;
    line-height: 1.8;
    word-break: keep-all;
}

/* Badge */
[data-theme="editorial"] .app-meta {
    margin-bottom: 20px;
}

[data-theme="editorial"] .since-badge {
    display: inline-block;
    padding: 4px 0;
    background: none;
    color: #a09890;
    border: none;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #a09890;
}

/* Download */
[data-theme="editorial"] .download-links {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

[data-theme="editorial"] .btn-badge {
    display: inline-block;
    height: 40px;
    text-decoration: none;
    opacity: 0.75;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: none;
    transition: opacity 0.3s ease;
}

[data-theme="editorial"] .btn-badge:hover {
    opacity: 1;
}

[data-theme="editorial"] .google-badge,
[data-theme="editorial"] .apple-badge {
    height: 100%;
    width: auto;
    display: block;
}

/* Footer */
[data-theme="editorial"] footer {
    text-align: center;
    padding: 60px 0;
    color: #a09890;
    font-size: 0.85rem;
    font-weight: 400;
    border-top: 2px solid #2c2c2c;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #faf8f5;
}

/* Mobile */
@media (max-width: 768px) {
    [data-theme="editorial"] .hero {
        padding: 120px 0 100px;
    }

    [data-theme="editorial"] .hero h2 {
        font-size: 2.8rem;
        letter-spacing: -2px;
        margin-bottom: 20px;
    }

    [data-theme="editorial"] .hero p {
        font-size: 1.05rem;
        white-space: normal;
        padding: 0 20px;
    }

    [data-theme="editorial"] .mobile-break {
        display: block;
    }

    [data-theme="editorial"] .app-card {
        padding: 40px 20px;
        gap: 20px;
    }

    [data-theme="editorial"] .app-icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }
}
