/* Support 페이지 스타일 - 심플 디자인 */

* {
    box-sizing: border-box;
}

.support-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2px;
    background: #ffffff;
}

/* 탭 스타일 */
.support-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.support-tab {
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.95em;
    color: #6b7280;
    transition: color 0.2s ease;
    border: none;
    background: transparent;
    position: relative;
    white-space: nowrap;
}

.support-tab:hover {
    background: #eeeeee;
    color: #374151;
}

.support-tab.active {
    background: transparent;
    color: #1f2937;
    font-weight: 600;
}

.support-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0px;
    background: #374151;
    border-radius: 2px 2px 0 0;
    transition: left 0.3s cubic-bezier(.4, 0, .2, 1), width 0.3s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
}

.support-tab i {
    display: none;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    padding-top: 30px;
    padding-bottom: 20px;
}

.content-card {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    margin-bottom: 16px;
}

.content-card h2 {
    color: #2d3748;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    text-align: left;
}

.content-card h2 i {
    display: none;
}

/* 공지사항 스타일 */
/* 공지사항 스타일 (Shared classes will be used) */
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: -4px;
    border-top: 1px solid #e2e8f0;
}

.notice-item {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    transition: background 0.2s ease;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background: #f7fafc;
}

.notice-item.expanded {
    background: #f7fafc;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    gap: 16px;
}

.notice-title {
    font-weight: 500;
    color: #2d3748;
    font-size: 1em;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s ease;
}

.notice-badge {
    display: none;
}

.notice-item:hover .notice-title {
    color: #667eea;
}

.notice-date {
    color: #a0aec0;
    font-size: 0.85em;
    white-space: nowrap;
    text-align: right;
    margin-left: auto;
}

.notice-content {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #ffffff;
    color: #4a5568;
    line-height: 1.6;
    border-left: 2px solid #cbd5e0;
}

.notice-item.expanded .notice-content {
    display: block;
}

/* 공지사항 페이징: 공통 .gi-pagination 사용 (style_manage.css) */

/* 게시판 스타일 */
.board-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: -4px;
    border-top: 1px solid #e2e8f0;
}



.board-item {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    transition: background 0.2s ease;
}

.board-item:hover {
    background: #f7fafc;
}

.board-item:last-child {
    border-bottom: none;
}

.board-item.empty {
    padding: 40px 20px;
    text-align: center;
    color: #718096;
}

.board-item-wrapper {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.board-number {
    color: #718096;
    font-size: 0.9em;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.board-title {
    font-weight: 500;
    color: #2d3748;
    font-size: 1em;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s ease;
}

.board-item:hover .board-title {
    color: #667eea;
}

/* ----- UNIFIED SUPPORT LIST STYLES ----- */
/* 공통 스타일: 공지사항 & 게시판 */
.support-list-common {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: -4px;
    border-top: 1px solid #e2e8f0;
}

.support-item-common {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    transition: background 0.2s ease;
}

.support-item-common:hover {
    background: #f7fafc;
}

.support-item-common:last-child {
    border-bottom: none;
}

.support-item-common.expanded {
    background: #f7fafc;
}

.support-item-common.expanded .notice-content {
    display: block;
}

/* Common Wrapper/Header */
.support-header-common {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    gap: 16px;
}

/* Common Title */
.support-title-common {
    font-weight: 500;
    color: #2d3748;
    font-size: 15px;
    /* Fixed pixel size for consistency */
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s ease;
}

.support-item-common:hover .support-title-common {
    color: #667eea;
}

/* Common Date */

.support-date-common {
    color: #a0aec0;
    font-size: 13px;
    /* Fixed pixel size for consistency */
    white-space: nowrap;
    text-align: right;
    margin-left: auto;
    flex-shrink: 0;
}

/* Common Mobile Styles */
@media (max-width: 768px) {
    .support-header-common {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .support-date-common {
        text-align: right;
        margin-left: auto;
        width: 100%;
    }
}


/* 가이드 스타일 */
.guide-section {
    margin-bottom: 32px;
}

.guide-section h3 {
    color: #2d3748;
    font-size: 1.2em;
    margin-bottom: 12px;
    font-weight: 600;
}

.guide-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 12px;
}

.guide-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.guide-section ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
}

.guide-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #718096;
}

/* QNA 스타일 */
.qna-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qna-item {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.qna-question {
    padding: 16px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.qna-question:hover {
    background: #f7fafc;
}

.qna-question-text {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #2d3748;
}

.qna-question-text .q-badge {
    background: #2d3748;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.8em;
}

.qna-toggle {
    color: #718096;
    transition: transform 0.2s ease;
    font-size: 0.85em;
}

.qna-item.expanded .qna-toggle {
    transform: rotate(180deg);
}

.qna-answer {
    display: none;
    padding: 16px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.qna-item.expanded .qna-answer {
    display: block;
}

.qna-answer-text {
    display: flex;
    align-items: flex-start;
}

.qna-answer-text .a-badge {
    background: #718096;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.8em;
    flex-shrink: 0;
}

.qna-answer-content {
    color: #4a5568;
    line-height: 1.7;
}

/* 문의톡 스타일 */
.contact-section {
    text-align: center;
    padding: 40px 20px;
}

.contact-icon {
    display: none;
}

.contact-section h3 {
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-section p {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    transition: background 0.2s ease;
}

.contact-btn.kakao {
    background: #FEE500;
    color: #3C1E1E;
}

.contact-btn.kakao:hover {
    background: #F5DC00;
}

.contact-btn.email {
    background: #2d3748;
    color: white;
}

.contact-btn.email:hover {
    background: #1a202c;
}

.contact-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.contact-info p {
    margin-bottom: 6px;
    font-size: 0.9em;
}

.contact-info a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 게시판 상세 화면 */
.support-container {
    padding-top: 16px;
}

.board-detail-header {
    margin-bottom: 16px;
    margin-top: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.btn-back:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.board-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}

.board-detail-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.board-detail-meta {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    color: #718096;
    font-size: 0.9em;
}

.board-detail-date {
    color: #718096;
}

.board-detail-date {
    color: #718096;
}

.board-detail-views {
    color: #718096;
}

.board-detail-content {
    color: #4a5568;
    line-height: 1.8;
    min-height: 200px;
}

/* Quill 에디터 정렬 스타일 지원 */
.ql-editor {
    padding: 0;
}

.ql-editor p {
    margin: 0.3em 0;
}

.ql-editor p:first-child {
    margin-top: 0;
}

.ql-editor p:last-child {
    margin-bottom: 0;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
}

/* Quill 정렬 클래스 */
.ql-editor .ql-align-left {
    text-align: left;
}

.ql-editor .ql-align-center {
    text-align: center;
}

.ql-editor .ql-align-right {
    text-align: right;
}

.ql-editor .ql-align-justify {
    text-align: justify;
}

/* Quill 정렬 스타일이 블록 요소에도 적용되도록 */
.ql-editor p.ql-align-left,
.ql-editor div.ql-align-left,
.ql-editor h1.ql-align-left,
.ql-editor h2.ql-align-left,
.ql-editor h3.ql-align-left {
    text-align: left;
}

.ql-editor p.ql-align-center,
.ql-editor div.ql-align-center,
.ql-editor h1.ql-align-center,
.ql-editor h2.ql-align-center,
.ql-editor h3.ql-align-center {
    text-align: center;
}

.ql-editor p.ql-align-right,
.ql-editor div.ql-align-right,
.ql-editor h1.ql-align-right,
.ql-editor h2.ql-align-right,
.ql-editor h3.ql-align-right {
    text-align: right;
}

.ql-editor p.ql-align-justify,
.ql-editor div.ql-align-justify,
.ql-editor h1.ql-align-justify,
.ql-editor h2.ql-align-justify,
.ql-editor h3.ql-align-justify {
    text-align: justify;
}

/* 공지사항 목록의 정렬도 지원 */
.notice-content .ql-align-left {
    text-align: left;
}

.notice-content .ql-align-center {
    text-align: center;
}

.notice-content .ql-align-right {
    text-align: right;
}

.notice-content .ql-align-justify {
    text-align: justify;
}

.notice-content p.ql-align-left,
.notice-content div.ql-align-left {
    text-align: left;
}

.notice-content p.ql-align-center,
.notice-content div.ql-align-center {
    text-align: center;
}

.notice-content p.ql-align-right,
.notice-content div.ql-align-right {
    text-align: right;
}

.notice-content p.ql-align-justify,
.notice-content div.ql-align-justify {
    text-align: justify;
}

/* 반응형 */
@media (max-width: 768px) {
    .support-container {
        padding: 0;
    }

    .tab-content.active {
        padding-top: 0px;
        padding-bottom: 20px;
    }

    .support-header {
        padding: 24px 16px;
        margin-bottom: 32px;
    }

    .support-header h1,
    .support-header h2 {
        font-size: 1.3em;
    }

    .support-tabs {
        flex-wrap: nowrap;
    }

    .support-tab {
        flex: 1;
        padding: 10px 8px;
        font-size: 0.85em;
    }

    .content-card {
        margin-bottom: 12px;
        padding: 0;
    }

    .content-card h2 {
        display: none;
    }

    .support-container {
        padding-top: 12px;
    }

    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* 게시판 목록 모바일 스타일 */
    .board-item-wrapper {
        padding: 12px 12px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .board-date {
        text-align: left;
    }

    /* 게시판 상세 화면 모바일 스타일 */
    .board-detail-card {
        padding: 16px 12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .board-detail-title {
        font-size: 1.2em;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }


    .board-detail-content {
        padding: 0;
    }

    /* 게시판 내용 이미지 모바일 스타일 */
    .board-detail-content img,
    .ql-editor img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        margin: 12px 0;
    }

    /* Quill 에디터 내용 모바일 최적화 */
    .board-detail-content .ql-editor,
    .ql-editor {
        padding: 0;
    }

    .board-detail-content .ql-editor p,
    .ql-editor p {
        margin: 6px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .board-detail-content .ql-editor p:first-child,
    .ql-editor p:first-child {
        margin-top: 0;
    }

    .board-detail-content .ql-editor p:last-child,
    .ql-editor p:last-child {
        margin-bottom: 0;
    }

    .board-detail-content .ql-editor * {
        max-width: 100%;
    }

    /* 뒤로가기 버튼 모바일 */
    .board-detail-header {
        margin-bottom: 12px;
        margin-top: 0;
        padding: 0;
    }

    .btn-back {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}