@charset "UTF-8";

/**
 * @project ZZAN NeonLime Board Skin - FAQ Layout
 * @author ZZAN Studio
 * @copyright (c) ZZAN Studio. All rights reserved.
 * @description FAQ (accordion) list style for ZZAN NeonLime theme.
 */

/* 1. FAQ Layout Variables */
:root {
    --faq-item-bg: var(--zzan-bg);
    --faq-item-hover-bg: var(--zzan-menu-hover-bg);
    --faq-item-border: var(--zzan-border);
    --faq-text-main: var(--zzan-text);
    --faq-text-sub: var(--zzan-gray-text);
    --faq-q-bg: rgba(0, 0, 0, 0.03);
    --faq-a-bg: rgba(0, 0, 0, 0.02);
    --faq-a-border: var(--zzan-border);
    --faq-footer-bg: rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] {
    --faq-item-bg: var(--zzan-bg);
    --faq-item-hover-bg: var(--zzan-menu-hover-bg);
    --faq-item-border: rgba(255, 255, 255, 0.1);
    --faq-text-main: var(--zzan-text);
    --faq-text-sub: var(--zzan-gray-text);
    --faq-q-bg: rgba(255, 255, 255, 0.05);
    --faq-a-bg: rgba(0, 0, 0, 0.2);
    --faq-a-border: rgba(255, 255, 255, 0.1);
    --faq-footer-bg: rgba(0, 0, 0, 0.3);
}

/* 2. FAQ Main Container */
.zzan-faq-container {
    width: 100%;
    margin-bottom: 30px;
    border-top: 2px solid var(--zzan-neon);
}

/* 3. FAQ Item Component */
.faq-item {
    border-bottom: 1px solid var(--faq-item-border);
    background-color: var(--faq-item-bg);
    transition: background-color 0.2s;
}

.faq-item:hover {
    background-color: var(--faq-item-hover-bg);
}

/* 4. Question (Trigger) Area */
.faq-item .faq-q {
    position: relative;
    padding: 20px 60px 20px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--faq-text-main);
    line-height: 1.5;
}

/* 5. Labels & Badges */
.zzan-faq-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 26px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    background-color: var(--zzan-neon);
    color: #000;
    margin-right: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.faq-item .notice-label,
.faq-item .q-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.faq-item .notice-label {
    background-color: var(--zzan-neon);
    color: #000;
    width: 40px;
    border-radius: 4px;
    font-size: 13px;
}

.faq-item .q-mark {
    background-color: var(--faq-q-bg);
    color: var(--faq-text-sub);
}

/* 6. Typography & Content */
.faq-item .subject {
    flex: 1;
    font-weight: 600;
    word-break: keep-all;
    overflow-wrap: break-word;
    color: var(--faq-text-main);
}

.faq-item.is-notice .subject {
    color: var(--faq-text-main);
}

/* Arrow Icon */
.faq-item .arrow-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-text-sub);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item .arrow-icon::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}

/* 7. Accordion Interaction States */
.faq-item.open .faq-q {
    background-color: var(--faq-a-bg);
}

.faq-item.open .q-mark {
    background-color: var(--zzan-neon);
    color: #000;
}

.faq-item.open .subject {
    color: var(--zzan-neon);
}

.faq-item.open.is-notice .subject {
    color: var(--zzan-neon);
}

.faq-item.open .arrow-icon {
    transform: translateY(-50%) rotate(-180deg);
}

/* 8. Answer (Panel) Area */
.faq-item .faq-a {
    background-color: var(--faq-a-bg);
    padding: 0;
    overflow: hidden;
}

.faq-item .a-content {
    padding: 30px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--faq-text-main);
    border-top: 1px dashed var(--faq-a-border);
}

/* 9. Item Footer (Controls) */
.faq-item .a-footer {
    padding: 10px 20px;
    background-color: var(--faq-footer-bg);
    text-align: right;
    border-top: 1px solid var(--faq-item-border);
}

.faq-item .a-footer a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--faq-text-sub);
    background-color: var(--faq-item-bg);
    border: 1px solid var(--faq-item-border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.faq-item .a-footer a:hover {
    background-color: var(--faq-item-hover-bg);
    color: var(--faq-text-main);
}

/* 10. Sticky Notices (Extended Styles) */
.faq-notices .notice-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 24px;
    border-radius: 4px;
    background: var(--zzan-neon);
    color: #000;
    font-size: 12px;
    font-weight: 700;
}
.faq-notices .notice-row {
    display: flex;
    align-items: center;
    border-bottom: 1px dashed var(--faq-item-border);
}
.faq-notices .notice-row:not(:has(.col-chk)) {
    padding-left: 20px !important;
}
.faq-notices .notice-row:last-child {
    border-bottom: none;
}
.faq-notices .notice-row a {
    text-decoration: none;
    color: var(--faq-text-main);
    font-size: 15px;
    transition: color 0.2s;
}
.faq-notices .notice-row:hover a {
    color: var(--zzan-neon);
}
.faq-notices .author-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-notices .profile-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* 11. Responsive FAQ Layout (Mobile) */
@media (max-width: 768px) {
    .faq-item .faq-q {
        padding: 16px 40px 16px 16px;
        font-size: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .faq-item .faq-q-badges {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 4px;
    }
    
    .faq-item .q-mark {
        margin-right: 8px;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .zzan-faq-category {
        height: 22px;
        padding: 0 10px;
        font-size: 11px;
    }
    
    .faq-item .subject {
        width: 100%;
        line-height: 1.4;
    }
    
    .faq-item .arrow-icon {
        right: 12px;
        top: 30px;
        width: 20px;
        height: 20px;
        transform: translateY(0);
    }
    
    .faq-item.open .arrow-icon {
        transform: translateY(0) rotate(-180deg);
    }
    
    .faq-item .a-content {
        padding: 20px 16px;
        font-size: 14px;
    }
    
    .faq-notices {
        margin-left: 3px;
        margin-right: 3px;
    }
    .faq-notices .m-title-area {
        display: flex;
        flex-direction: column;
    }
    .faq-notices .m-subject-row a strong {
        font-size: 15px;
    }
    .faq-notices .m-meta-area {
        font-size: 12px;
        color: var(--faq-text-sub);
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .faq-notices .m-author {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .faq-notices .m-author img {
        width: 18px;
        height: 18px;
        border-radius: 50%;
    }
}
