/*
 * Helpdesk FAQ Accordion — Premium Scoped Styles
 * Compiled from scss/helpdesk-faq.scss
 * Only affects #helpdesk-faq-accordion — no impact on other pages
 */

/* ── Reset global .faq grid-based hide ── */
#helpdesk-faq-accordion .faq-item .faq-content {
    display: block !important;
    grid-template-rows: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
}

#helpdesk-faq-accordion .faq-item .faq-content.collapse:not(.show) {
    display: none !important;
}

#helpdesk-faq-accordion .faq-item .faq-content.collapsing {
    display: block !important;
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#helpdesk-faq-accordion .faq-item .faq-content.collapse.show {
    display: block !important;
}

/* ── FAQ Card ── */
#helpdesk-faq-accordion .faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px !important;
    margin-bottom: 14px;
    overflow: hidden;
    transition: background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                transform 0.25s ease;
}

#helpdesk-faq-accordion .faq-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(17, 183, 183, 0.25);
    box-shadow: 0 4px 24px rgba(0, 128, 127, 0.1);
}

#helpdesk-faq-accordion .faq-item:active {
    transform: scale(0.995);
}

/* ── Open state ── */
#helpdesk-faq-accordion .faq-item.hd-faq-open {
    background: rgba(17, 183, 183, 0.06);
    border-color: rgba(17, 183, 183, 0.3);
    box-shadow: 0 6px 30px rgba(0, 128, 127, 0.15);
}

#helpdesk-faq-accordion .faq-item.hd-faq-open .faq-number {
    box-shadow: 0 4px 18px rgba(0, 128, 127, 0.5);
    transform: scale(1.05);
}

#helpdesk-faq-accordion .faq-item.hd-faq-open .faq-question-row h3 {
    color: #11b7b7 !important;
    font-weight: 600 !important;
}

#helpdesk-faq-accordion .faq-item.hd-faq-open .faq-toggle {
    transform: rotate(90deg);
    background: linear-gradient(135deg, #00807f, #11b7b7);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(0, 128, 127, 0.4);
}

#helpdesk-faq-accordion .faq-item.hd-faq-open .faq-content .faq-answer-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ── Question Row ── */
#helpdesk-faq-accordion .faq-question-row {
    padding: 18px 22px !important;
    gap: 14px !important;
    border-radius: 16px !important;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.3s ease;
}

#helpdesk-faq-accordion .faq-question-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

#helpdesk-faq-accordion .faq-question-row:hover .faq-toggle {
    background: rgba(17, 183, 183, 0.12);
    border-color: rgba(17, 183, 183, 0.3);
}

/* ── Number Badge ── */
#helpdesk-faq-accordion .faq-number {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00807f, #11b7b7) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 3px 12px rgba(0, 128, 127, 0.35);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ── Question Text ── */
#helpdesk-faq-accordion .faq-question-row h3 {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 1.5;
    color: #ffffff !important;
    transition: color 0.35s ease, font-weight 0.2s ease;
    margin: 0;
}

/* ── Arrow Toggle ── */
#helpdesk-faq-accordion .faq-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    line-height: 1 !important;
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #11b7b7 !important;
    font-size: 0.8rem !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.35s ease,
                border-color 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease;
}

/* ── Answer Content ── */
#helpdesk-faq-accordion .faq-content {
    padding: 0 22px 0 68px !important;
}

#helpdesk-faq-accordion .faq-content .faq-answer-inner {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

#helpdesk-faq-accordion .faq-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.8;
    padding-bottom: 20px !important;
    margin: 0 !important;
}
