/**
 * FAQ Accordion Frontend Styles
 *
 * Accordion dropdown design for wine FAQ shortcode
 *
 * @package WineCuratedPro
 * @since 2.1.0
 */

/* =====================================================
   MAIN FAQ CONTAINER
   ===================================================== */

.schema-faq {
    background-color: #fff;
    border-radius: 16px;
    padding: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* =====================================================
   FAQ SECTION (Question + Answer pair)
   ===================================================== */

.schema-faq-section {
    border-bottom: 1px solid #e5e5e5;
}

.schema-faq-section:last-child {
    border-bottom: none;
}

/* =====================================================
   FAQ QUESTION
   ===================================================== */

.schema-faq-question {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px;
    border-bottom: none;
    cursor: pointer;
    transition: background 0.2s;
}

.schema-faq-question:hover {
    background: #fafafa;
}

.schema-faq-question h3 {
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    font-size: 17px;
    color: #000;
    flex: 1;
    line-height: 1.4;
}

.schema-faq-question h3 strong {
    font-weight: normal !important;
}

/* =====================================================
   TOGGLE ICON
   ===================================================== */

.schema-faq-question .toggle-icon {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-left: 20px;
}

.schema-faq-question .toggle-icon svg {
    height: 30px;
    width: 30px;
    transition: transform 0.3s ease;
}

/* Icon transition (SVG changes via JS, not rotation) */
.schema-faq-question .toggle-icon svg {
    transition: transform 0.3s ease;
}

/* =====================================================
   FAQ ANSWER
   ===================================================== */

.schema-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    margin-bottom: 0 !important;
    background: #fafafa;
}

.schema-faq-answer-inner {
    padding: 0 35px 30px 35px;
}

.schema-faq-answer p {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.schema-faq-answer p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   ANSWER CONTENT STYLES
   ===================================================== */

/* Links */
.schema-faq-answer a {
    color: #0066cc;
    text-decoration: none;
}

.schema-faq-answer a:hover {
    text-decoration: underline;
}

/* Lists */
.schema-faq-answer ul,
.schema-faq-answer ol {
    margin: 0 0 16px 0;
    padding-left: 25px;
}

.schema-faq-answer li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.schema-faq-answer li:last-child {
    margin-bottom: 0;
}

/* Bold and Italic */
.schema-faq-answer strong,
.schema-faq-answer b {
    font-weight: 600;
}

.schema-faq-answer em,
.schema-faq-answer i {
    font-style: italic;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .schema-faq-question {
        padding: 25px 30px;
    }

    .schema-faq-answer-inner {
        padding: 0 30px 25px 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .schema-faq {
        border-radius: 12px;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .schema-faq-question {
        padding: 24px;
    }

    .schema-faq-question h3 {
        font-size: 16px;
    }

    .schema-faq-question .toggle-icon {
        margin-left: 15px;
    }

    .schema-faq-question .toggle-icon svg {
        height: 24px;
        width: 24px;
    }

    .schema-faq-answer-inner {
        padding: 0 24px 24px 24px;
    }

    .schema-faq-answer p,
    .schema-faq-answer li {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .schema-faq {
        border-radius: 8px;
    }

    .schema-faq-question {
        padding: 20px;
    }

    .schema-faq-question h3 {
        font-size: 15px;
    }

    .schema-faq-answer-inner {
        padding: 0 20px 20px 20px;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .schema-faq-question {
        padding: 18px 15px;
    }

    .schema-faq-question h3 {
        font-size: 14px;
    }

    .schema-faq-question .toggle-icon {
        margin-left: 10px;
    }

    .schema-faq-answer-inner {
        padding: 0 15px 18px 15px;
    }

    .schema-faq-answer p,
    .schema-faq-answer li {
        font-size: 13px;
        line-height: 1.6;
    }
}
