@charset "UTF-8";

/* ==========================================================================
   📌 1. 폰트 로드 및 전역 설정
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@700&display=swap');

@font-face {
    font-family: 'GmarketSansBold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'ChosunGs';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ChosunGs.woff') format('woff');
    font-weight: normal; font-style: normal;
}

html, body {
    margin: 0; padding: 0; width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: none; text-size-adjust: none;
}

body {
    background-color: #fbfcff;
    background-image:
            linear-gradient(rgba(13, 110, 253, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(13, 110, 253, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    word-break: keep-all;
}

.main-content { min-height: 80vh; width: 100%; }

/* ==========================================================================
   📌 2. 공통 유틸리티 (폰트, 텍스트, 배지)
   ========================================================================== */
.title-font { font-family: 'GmarketSansBold', sans-serif; }
.medium-font { font-family: 'GmarketSansMedium', sans-serif; }
.content-text { line-height: 1.65 !important; color: #666; }

/* 텍스트 그라데이션 */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-top: 10px; padding-bottom: 10px; /* 획 짤림 방지 */
}

/* 한자(娛樂) 텍스트 및 미니 배지 */
.hanja-text {
    font-family: 'ChosunGs', serif;
    font-weight: 700;
    margin: 0 2px;
    font-size: 1.05em !important;
}
.hanja-badge {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'ChosunGs', serif; font-size: 0.8em; font-weight: 700;
    color: #0d6efd !important; -webkit-text-fill-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.08);
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-radius: 50px;
    padding: 8px 20px 10px 20px;
    margin: 0 8px; vertical-align: middle;
    transform: translateY(-4px);
    line-height: 1; letter-spacing: 2px;
}

/* 상태 배지 공통 */
.badge-qna { padding: 7px 12px 8px 12px !important; font-weight: 500; border-radius: 6px; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; width: 75px; }
.badge-qna-sm { padding: 6px 12px 7px 12px !important; font-weight: 500; border-radius: 6px; font-size: 0.75rem; width: 70px; text-align: center; display: inline-block; }
.badge-important { padding: 5px 12px 6px 12px !important; font-weight: 600; border-radius: 6px; font-size: 0.8rem; display: inline-block; line-height: 1; text-align: center; background-color: #dc3545; color: white; }

/* ==========================================================================
   📌 3. 공통 버튼 (Buttons)
   ========================================================================== */
.btn-custom { font-size: 1.05rem !important; padding: 14px 32px 14px 32px !important; font-weight: 600; transition: all 0.3s ease; }
.btn-support-write { padding: 12px 30px 13px 30px !important; font-weight: 700; }
.btn-edit-save { padding: 14px 40px 15px 40px !important; font-weight: 700; }
.btn-login { padding: 15px 30px 16px 30px !important; font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }

a.btn-login-point { background: #0d6efd; color: white !important; padding: 9px 25px !important; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: none; transition: all 0.3s ease; display: inline-block; }
a.btn-login-point:active { background: #004494 !important; transform: scale(0.98); }

/* ==========================================================================
   📌 4. 공통 폼 (Forms & Inputs)
   ========================================================================== */
.form-label { font-weight: 700; color: #444; margin-bottom: 10px; font-size: 0.95rem; }
.form-control, .form-control-custom { background-color: #f8f9fa; border: 1px solid #eee; padding: 15px 20px; border-radius: 12px; transition: all 0.2s; font-size: 0.95rem; }
.form-control:focus, .form-control-custom:focus { background-color: #fff; border-color: #0d6efd; box-shadow: 0 0 0 4px rgba(13,110,253,0.1); }
.form-control-custom:read-only { background-color: #f1f3f5; color: #868e96; cursor: not-allowed; }

/* 파일 첨부 버튼 */
.form-control-custom[type="file"] { padding: 12px 20px; background-color: #fff; }
.form-control-custom::file-selector-button { background-color: #f1f3f5; border: 1px solid #ddd; border-radius: 8px; padding: 6px 16px; margin-right: 15px; color: #555; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.form-control-custom::file-selector-button:hover { background-color: #e9ecef; }

/* 커스텀 토글 스위치 */
.custom-switch { width: 2.8em !important; height: 1.4em !important; cursor: pointer; transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out; }
.custom-switch:checked { background-color: #0d6efd !important; border-color: #0d6efd !important; }
.custom-switch:focus { box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important; }

/* ==========================================================================
   📌 5. 헤더 및 푸터 (Header & Footer)
   ========================================================================== */
.header-logo {
    height: auto; width: auto;
    max-height: 20px; max-width: 130px;
    object-fit: contain;
    vertical-align: middle; transform: translateY(-3px);
}

.navbar-custom { background: rgba(255, 255, 255, 0.4) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); padding: 10px 0; transition: all 0.3s ease; position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; }
.navbar-toggler { border: none; padding: 8px; border-radius: 8px; transition: background 0.3s; }
.navbar-toggler:focus { box-shadow: none; background: rgba(13, 110, 253, 0.05); }
.navbar-toggler-icon { width: 1.2em; height: 1.2em; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: #444 !important; margin-right: 15px; padding: 10px 0; }

.footer-custom { background-color: #ffffff; border-top: 1px solid rgba(0,0,0,0.05); overflow: hidden; }
.footer-top-line { height: 4px; background: linear-gradient(90deg, #0d6efd, #0dcaf0, #6610f2); }
.footer-heading { font-family: 'GmarketSansBold', sans-serif; font-size: 1.05rem; color: #222; margin-top: 0; padding-top: 5px; letter-spacing: -0.5px; }
.brand-info-box { padding-right: 20px; }
.sns-icon { width: 36px; height: 36px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #666; text-decoration: none !important; transition: all 0.3s ease; }
.sns-icon:hover { background: #0d6efd; color: #fff; transform: translateY(-3px); }
.footer-menu-list li { margin-bottom: 12px; }
.footer-menu-list a { color: #666; text-decoration: none; transition: color 0.2s; }
.footer-menu-list a:hover { color: #0d6efd; }
.contact-info-list li { display: flex; margin-bottom: 12px; line-height: 1.5; }
.contact-label { font-weight: 700; color: #444; min-width: 65px; flex-shrink: 0; }
.contact-text { word-break: break-all; }
.footer-divider { margin: 40px 0 30px; opacity: 0.08; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.copyright { color: #999; font-size: 0.85rem; margin-bottom: 0; }
.footer-policy-links a { font-size: 0.85rem; color: #666; text-decoration: none; }
.text-silver { color: #ddd; font-size: 0.7rem; }

/* ==========================================================================
   📌 6. 레이아웃 및 메인 섹션 (히어로, 배너 등)
   ========================================================================== */
.hero-section { padding: 100px 0 140px; }
.sub-hero-section { padding: 100px 0 60px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: 3.8rem; line-height: 1.2 !important; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.05rem; color: #555; line-height: 1.7; background: rgba(13, 110, 253, 0.05); border-left: 4px solid #0d6efd; padding: 16px 24px; border-radius: 0 16px 16px 0; display: inline-block; }
.hero-subtitle strong { color: #0d6efd; font-size: 1.15rem; display: block; margin-bottom: 5px; }
.hero-subtitle-box { background: rgba(13, 110, 253, 0.05); border: 1px solid rgba(13, 110, 253, 0.1); border-radius: 50px; padding: 12px 30px; color: #555; margin-top: 15px; display: inline-block; font-size: 1.05rem; }
.hero-image { width: 420px; height: 420px; object-fit: cover; border: 15px solid #ffffff; }

.cta-banner { background: linear-gradient(135deg, #0d6efd, #0056b3); border-radius: 40px; color: white; padding: 70px 40px; position: relative; overflow: hidden; }

/* ==========================================================================
   📌 7. 메인 페이지 전용 디자인
   ========================================================================== */
.feature-card { background: #ffffff; border-radius: 24px; padding: 40px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.3s ease; border: 1px solid rgba(13,110,253,0.05); height: 100%; }
.icon-wrapper { width: 64px; height: 64px; border-radius: 18px; background: #f8f9fa; color: #444444; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 24px; border: 1px solid #eeeeee; }
.process-container { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); border-radius: 40px; border: 1px solid rgba(255, 255, 255, 0.8); }
.step-circle { width: 140px; height: 140px; background: white; border-radius: 35% 65% 70% 30% / 30% 30% 70% 70%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 25px; box-shadow: 0 15px 35px rgba(13, 110, 253, 0.08); transition: all 0.5s ease; border: 2px solid #fff; }
.step-num { font-size: 0.9rem; font-weight: 800; color: #0d6efd; letter-spacing: 1px; }
.step-title { font-size: 1.25rem; font-weight: 700; color: #333; }
.arrow-divider { position: absolute; top: 70px; right: -15%; width: 30%; height: 2px; background: linear-gradient(90deg, #0d6efd, transparent); opacity: 0.3; }
.arrow-divider::after { content: '→'; position: absolute; right: 0; top: -12px; font-size: 1.5rem; color: #0d6efd; }

/* 자동 스텝 애니메이션 클래스 */
.step-card.step-active .step-circle { border-radius: 50%; transform: scale(1.05) rotate(5deg); background: #0d6efd; }
.step-card.step-active .step-circle h3, .step-card.step-active .step-circle span { color: white !important; }

/* ==========================================================================
   📌 8. 서브 페이지 특화 블록 (게시판, 회사소개, 마이페이지 등)
   ========================================================================== */
/* 회사소개 (CEO, 연혁, 특장점) */
.ceo-card { background: #ffffff; border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); border: 1px solid rgba(13, 110, 253, 0.05); overflow: hidden; }
.ceo-image-area { background: #f4f6f9; display: flex; align-items: center; justify-content: center; min-height: 350px; }
.ceo-img { width: 100%; height: 100%; min-height: 350px; object-fit: cover; }
.about-quote { background: rgba(13, 110, 253, 0.05); border-left: 4px solid #0d6efd; padding: 24px 30px; border-radius: 0 20px 20px 0; line-height: 1.8; color: #555; font-size: 1.05rem; }
.about-quote strong { color: #0d6efd; font-size: 1.15rem; display: block; margin-bottom: 12px; }
.timeline { position: relative; padding-left: 30px; margin-top: 40px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(13,110,253,0.15); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #0d6efd; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(13,110,253,0.2); }
.timeline-year { font-family: 'GmarketSansBold', sans-serif; font-size: 1.5rem; color: #0d6efd; margin-bottom: 12px; }
.timeline-content { background: #fff; padding: 25px 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02); }

/* 매직 월 & 게임 등 */
.game-preview-card { background: linear-gradient(135deg, #0d6efd, #0dcaf0); border-radius: 40px; padding: 60px; color: white; }
.magic-wall-section { background: #111; border-radius: 40px; color: white; padding: 80px 40px; position: relative; overflow: hidden; }
.magic-wall-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(13,110,253,0.2) 0%, transparent 70%); }
.textbook-img-box { background: #fff; border-radius: 30px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid #eee; }
.textbook-feature { transition: transform 0.3s ease; }
.textbook-feature:hover { transform: translateY(-5px); }

/* 게시판 (List & View) */
.board-table { width: 100%; border-collapse: collapse; margin-bottom: 0; }
.board-table th { padding: 18px 10px; border-bottom: 2px solid #333; color: #222; font-weight: 600; text-align: center; }
.board-table td { padding: 20px 10px; border-bottom: 1px solid #f0f0f0; color: #555; vertical-align: middle; }
.board-table tbody tr:hover { background-color: #fbfcff; }
.board-table tbody tr:hover .td-title a { color: #0d6efd; }
.td-num, .td-date { text-align: center; color: #999; }
.td-title a { color: #333; text-decoration: none; transition: color 0.2s; font-weight: 500; }

/* 게시글 뷰 */
.article-header { border-bottom: 2px solid #222; padding-bottom: 20px; margin-bottom: 30px; }
.article-title { font-size: 1.5rem; color: #222; line-height: 1.4; margin-bottom: 15px; }
.article-meta { color: #888; font-size: 0.9rem; }
.article-meta span { margin-right: 15px; }
.article-body { min-height: 300px; color: #444; line-height: 1.8; font-size: 1.05rem; }
.article-footer { border-top: 1px solid #eee; padding-top: 30px; margin-top: 10px; text-align: center; }

/* 페이지네이션 */
.pagination-custom .page-link { border: none; color: #666; font-weight: 600; margin: 0 4px; border-radius: 10px; padding: 10px 16px; transition: all 0.2s; }
.pagination-custom .page-item.active .page-link { background-color: #0d6efd; color: white; box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2); }
.pagination-custom .page-link:hover:not(.active) { background-color: rgba(13, 110, 253, 0.08); color: #0d6efd; }
.pagination-icon { font-size: 0.9rem; font-weight: bold; }

/* 이용약관 등 정책 박스 */
.policy-box { background: #f8f9fa; border: 1px solid #eee; border-radius: 20px; padding: 40px; color: #555; font-size: 0.95rem; line-height: 1.8; }
.policy-title { font-weight: 700; color: #333; margin-top: 30px; margin-bottom: 15px; }
.policy-title:first-child { margin-top: 0; }

/* 회원가입 / 로그인 */
.login-wrapper { min-height: calc(100vh - 300px); display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.login-card { background: #ffffff; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid rgba(13, 110, 253, 0.05); padding: 50px 40px; width: 100%; max-width: 450px; }
.join-wrapper { padding: 80px 0 100px; }
.join-card { background: #ffffff; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 1px solid rgba(13, 110, 253, 0.05); padding: 50px; }

/* 마이페이지 & 대시보드 */
.mypage-sidebar { background: #fff; border-radius: 24px; padding: 30px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.05); position: sticky; top: 100px; }
.mypage-menu { list-style: none; padding: 0; margin: 0; gap: 5px; }
.mypage-menu a { display: block; padding: 12px 20px; color: #555; font-weight: 500; border-radius: 12px; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.mypage-menu a:hover:not(.active) { background: rgba(13, 110, 253, 0.03); color: #0d6efd; }
.mypage-menu a.active { background: rgba(13, 110, 253, 0.08); color: #0d6efd; font-weight: 700; }
.dashboard-card { background: #fff; border-radius: 24px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.05); margin-bottom: 25px; }
.profile-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, #0d6efd, #0dcaf0); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; font-weight: bold; }
.stat-box { background: #f8f9fa; border-radius: 16px; padding: 25px 20px; text-align: center; border: 1px solid #eee; transition: transform 0.3s ease; height: 100%; }
.stat-box:hover { transform: translateY(-5px); border-color: #0d6efd; background: #fff; box-shadow: 0 10px 20px rgba(13, 110, 253, 0.05); }
.stat-title { color: #666; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.stat-num { font-family: 'GmarketSansBold', sans-serif; font-size: 2rem; color: #222; margin-bottom: 0; }
.stat-num.text-point { color: #0d6efd; }

/* ==========================================================================
   📌 9. PC 환경 마우스 오버(Hover) 애니메이션
   ========================================================================== */
@media (hover: hover) {
    .btn-login-point:hover { background: #0056b3 !important; box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3); }
    .btn-primary.btn-custom:hover { background-color: #0a58ca !important; box-shadow: 0 6px 20px rgba(13, 110, 253, 0.25); }
    .btn-outline-dark.btn-custom:hover { background-color: #212529 !important; color: #ffffff !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
    .feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(13, 110, 253, 0.08); }
    .step-card:hover .step-circle { border-radius: 50%; transform: scale(1.05) rotate(5deg); background: #0d6efd; }
    .step-card:hover .step-circle h3, .step-card:hover .step-circle span { color: white !important; }
}

/* ==========================================================================
   📌 10. 모바일 반응형 최적화 (전체 통합 관리)
   ========================================================================== */
@media (max-width: 991px) {
    /* 헤더 및 네비게이션 */
    .header-logo { max-height: 20px; max-width: 130px; }
    .navbar-collapse { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); margin-top: 10px; border-radius: 20px; padding: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
    .nav-link { margin-right: 0; border-bottom: 1px solid #f8f9fa; }
    .dropdown-menu { border: none; background: #fbfcff; margin-top: 5px; }
    .btn-login-point { width: 100%; text-align: center; margin-top: 15px; }

    /* 레이아웃 (가려짐 방지 여백 추가) */
    .hero-section { padding: 110px 0 80px; text-align: center; }
    .sub-hero-section { padding: 110px 0 40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { text-align: left; margin: 0 auto 2rem auto; display: block; }
    .hero-image { width: 300px; height: 300px; border-width: 10px; }

    /* 메인 페이지 블록 축소 */
    .process-container { padding: 30px 20px !important; border-radius: 24px; }
    .cta-banner { padding: 40px 20px; border-radius: 24px; }
    .cta-banner h2 { font-size: 1.5rem; }
    .cta-banner p { font-size: 1rem !important; }
    .step-circle { width: 120px; height: 120px; }
    .step-title { font-size: 1.1rem; }
    .d-flex.gap-3 { justify-content: center; flex-wrap: wrap; }

    /* 서브 페이지 조정 */
    .about-quote { padding: 20px; font-size: 1rem; }
    .game-preview-card { padding: 40px 20px; }
    .magic-wall-section { padding: 50px 20px; }

    /* 게시판 & 약관 패딩 축소 및 스크롤 생성 */
    .policy-box { padding: 20px 15px; font-size: 0.9rem; }
    .board-table { min-width: 500px; }

    /* 마이페이지 가로 스크롤 메뉴 전환 */
    .mypage-sidebar { position: relative; top: 0; padding: 15px; margin-bottom: 20px; }
    .mypage-menu { display: flex; overflow-x: auto; white-space: nowrap; padding-bottom: 5px; }
    .dashboard-card { padding: 30px 20px; }

    /* 푸터 구조 변경 (세로 정렬) */
    .footer-custom { text-align: left; }
    .footer-heading { font-size: 1rem; margin-bottom: 1.2rem !important; }
    .brand-info-box { padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid #f8f9fa; }
    .contact-info-list li { flex-direction: column; margin-bottom: 16px; }
    .contact-label { margin-bottom: 2px; color: #222; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}