/**
 * FAQ Section Styles
 * 
 * CSS-only accordion FAQ section for single posts
 */

/* ===== FAQ Container ===== */
.post-faq {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.post-faq__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.post-faq__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.post-faq__subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== FAQ List ===== */
.post-faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* ===== FAQ Item ===== */
.post-faq__item {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-faq__item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hide checkbox */
.post-faq__checkbox {
    display: none;
}

/* Question Label */
.post-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.post-faq__question:hover {
    background: var(--bg-light);
}

.post-faq__question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    margin-right: var(--spacing-md);
}

.post-faq__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.post-faq__icon i {
    font-size: 0.9rem;
}

/* Answer Section */
.post-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-color);
}

.post-faq__answer p {
    margin: 0;
    padding: 0 var(--spacing-lg);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* When checked, show answer */
.post-faq__checkbox:checked + .post-faq__question {
    background: var(--primary-color);
    color: #fff;
}

.post-faq__checkbox:checked + .post-faq__question .post-faq__question-text {
    color: #fff;
}

.post-faq__checkbox:checked + .post-faq__question .post-faq__icon {
    color: #fff;
    transform: rotate(180deg);
}

.post-faq__checkbox:checked ~ .post-faq__answer {
    max-height: 1000px;
    padding: var(--spacing-md) 0 var(--spacing-lg) 0;
}

/* ===== Responsive Design - Mobile First ===== */

/* Base styles - Mobile (320px+) */
.post-faq {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
}

.post-faq__title {
    font-size: 1.5rem;
}

.post-faq__subtitle {
    font-size: 0.9rem;
}

.post-faq__question {
    padding: var(--spacing-sm) var(--spacing-md);
}

.post-faq__question-text {
    font-size: 1rem;
}

.post-faq__answer p {
    padding: 0 var(--spacing-md);
    font-size: 0.95rem;
}

/* Small mobile (576px+) */
@media (min-width: 576px) {
    .post-faq {
        padding: var(--spacing-md);
    }
    
    .post-faq__title {
        font-size: 1.6rem;
    }
    
    .post-faq__subtitle {
        font-size: 0.95rem;
    }
    
    .post-faq__question-text {
        font-size: 1.05rem;
    }
    
    .post-faq__answer p {
        font-size: 1rem;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .post-faq {
        padding: var(--spacing-xl);
    }
    
    .post-faq__title {
        font-size: 1.75rem;
    }
    
    .post-faq__subtitle {
        font-size: 1rem;
    }
    
    .post-faq__question {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .post-faq__question-text {
        font-size: 1.1rem;
    }
    
    .post-faq__answer p {
        padding: 0 var(--spacing-lg);
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .post-faq {
        padding: var(--spacing-xl);
    }
    
    .post-faq__title {
        font-size: 1.85rem;
    }
    
    .post-faq__subtitle {
        font-size: 1.05rem;
    }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
    .post-faq__title {
        font-size: 2rem;
    }
    
    .post-faq__subtitle {
        font-size: 1.1rem;
    }
}

