/* ============================================
   EMBER READ - HOME PAGE STYLES
   Hero, Categories, App Section, FAQ
   ============================================ */

/* ============ HERO SECTION ============ */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 30px;
    position: relative;
    background: url('../../Isometric_grid_collage_4k_202601131610.jpeg') center top / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(10,10,10,0.1) 0%,
        rgba(10,10,10,0.5) 50%,
        rgba(10,10,10,0.9) 70%,
        var(--bg-base) 90%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 140px 0 20px;
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--gold) 0%, #f5d485 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    filter: drop-shadow(0 2px 10px rgba(212,175,55,0.4));
}

.hero p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 22px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ============ SECTIONS COMMON ============ */
section {
    padding: 50px 24px;
    position: relative;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* ============ CATEGORIES SECTION ============ */
.categories-section {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card.adult {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139,0,0,0.15) 100%);
    border-color: rgba(139,0,0,0.3);
}

.category-card.adult:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px -20px var(--primary-glow);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card:nth-child(1) .category-icon {
    background: linear-gradient(135deg, rgba(244,114,182,0.2) 0%, rgba(244,114,182,0.1) 100%);
}

.category-card:nth-child(2) .category-icon {
    background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0.1) 100%);
}

.category-card:nth-child(3) .category-icon {
    background: linear-gradient(135deg, rgba(168,85,247,0.2) 0%, rgba(168,85,247,0.1) 100%);
}

.category-card:nth-child(4) .category-icon {
    background: linear-gradient(135deg, rgba(34,197,94,0.2) 0%, rgba(34,197,94,0.1) 100%);
}

.category-card.adult .category-icon {
    background: linear-gradient(135deg, rgba(139,0,0,0.3) 0%, rgba(139,0,0,0.15) 100%);
}

.category-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.category-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 14px;
    background: var(--gold-dim);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============ APP SECTION ============ */
.app-section {
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
}

.app-screenshots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.app-screenshot {
    text-align: center;
}

.app-screenshot img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.app-screenshot:hover img {
    border-color: var(--gold);
    box-shadow: 0 10px 40px -10px var(--gold-glow);
    transform: translateY(-4px);
}

.app-screenshot p {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.app-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.app-feature {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.app-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.app-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.6rem;
}

.app-feature:nth-child(1) .app-feature-icon {
    background: linear-gradient(135deg, rgba(168,85,247,0.2) 0%, rgba(168,85,247,0.1) 100%);
}

.app-feature:nth-child(2) .app-feature-icon {
    background: linear-gradient(135deg, rgba(255,107,53,0.2) 0%, rgba(255,107,53,0.1) 100%);
}

.app-feature:nth-child(3) .app-feature-icon {
    background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0.1) 100%);
}

.app-feature h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============ FAQ SECTION ============ */
.faq-section {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============ RESPONSIVE HOME ============ */
@media (max-width: 992px) {
    .app-screenshots {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 16px 20px;
        background-position: center center;
    }

    .hero-content {
        padding: 160px 0 10px;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        padding: 30px 24px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .app-screenshots {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .app-feature {
        padding: 30px 20px;
    }

    .app-feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 20px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .app-screenshots {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .app-screenshot p {
        font-size: 0.7rem;
    }
}
