/* Guide page styles */

#guide-header {
    text-align: center;
    padding: 8rem 2rem 3rem;
    background: var(--deep-indigo);
    position: relative;
    z-index: 1;
}

#guide-header .section-label {
    color: var(--antique-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

#guide-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--soft-cream);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

#guide-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* A-Z Grid */
#az-guide {
    background: var(--deep-indigo);
    padding: 2rem 2rem 5rem;
}

.az-letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.az-letter-card {
    background: rgba(45, 27, 78, 0.4);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.az-letter-card:hover {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(45, 27, 78, 0.6);
}

.az-letter-card.active {
    border-color: var(--antique-gold);
    background: rgba(45, 27, 78, 0.7);
    box-shadow: 0 4px 30px rgba(201, 168, 76, 0.15);
}

.az-letter-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.az-big-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--antique-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.az-words-preview {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.az-expand-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.2rem;
    color: var(--antique-gold);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.az-letter-card:hover .az-expand-icon {
    opacity: 1;
}

.az-letter-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.az-entry {
    margin-top: 1.5rem;
}

.az-word {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--antique-gold);
    margin-bottom: 0.5rem;
}

.az-definition {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* CTA at bottom */
#guide-cta {
    background: var(--deep-indigo);
    padding: 4rem 2rem 5rem;
}

/* Mobile */
@media (max-width: 600px) {
    .az-letter-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .az-big-letter {
        font-size: 2rem;
    }
    
    #guide-header h1 {
        font-size: 1.8rem;
    }
}
