/* 공용 폰트 및 네비게이션/헤더 유틸 스타일 */
body {
    font-family: 'Noto Sans KR', 'Montserrat', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
 
/* 코드 스타일: 단순 선언, 중요도 최소화 */

#nav-menu { display: none; }
#nav-menu.show { display: flex; flex-direction: column; }
@media (min-width: 1024px) {
    #nav-menu { display: flex !important; }
    .nav-toggle { display: none; }
}
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 9999px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 회차 네비게이션 버튼 시인성 강화 */
.nav-button {
    background-color: #4f46e5; /* brand-600 */
    color: #ffffff !important;
    border-color: #4f46e5;
    box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.55);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

.nav-button:hover {
    background-color: #4338ca; /* brand-700 */
    border-color: #4338ca;
    color: #ffffff !important;
    box-shadow: 0 16px 28px -14px rgba(67, 56, 202, 0.6);
    transform: translateY(-1px);
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px -10px rgba(67, 56, 202, 0.5);
}

.nav-button:focus-visible {
    outline: 2px solid #a5b4fc; /* brand-300 */
    outline-offset: 3px;
}

/* 비활성 상태 명확화 */
.nav-button[aria-disabled="true"] {
    background-color: #cbd5e1; /* slate-300 */
    border-color: #cbd5e1;
    color: #475569; /* slate-600 */
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* 다크 모드 대비 개선 */
.dark .nav-button {
    background-color: #6366f1; /* brand-500 */
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 10px 24px -10px rgba(99, 102, 241, 0.45);
}

.dark .nav-button:hover {
    background-color: #4f46e5; /* brand-600 */
    border-color: #4f46e5;
    box-shadow: 0 16px 28px -14px rgba(99, 102, 241, 0.55);
}

.dark .nav-button[aria-disabled="true"] {
    background-color: #334155; /* slate-700 */
    border-color: #334155;
    color: #94a3b8; /* slate-400 */
}

/* 화살표/텍스트 미세 가독성 보정 */
.nav-button .nav-arrow,
.nav-button .nav-button-text {
    color: inherit !important;
}

/* 공용 CTA 버튼 스타일 */
.cta-primary {
    background-image: linear-gradient(135deg, #6366f1 0%, #4f46e5 60%, #4338ca 100%);
    color: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.75);
    box-shadow: 0 18px 38px -16px rgba(79, 70, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateZ(0);
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
    backdrop-filter: saturate(120%);
}

.cta-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 22px 44px -18px rgba(67, 56, 202, 0.6);
}

.cta-primary:active {
    transform: translateY(0);
    box-shadow: 0 14px 28px -16px rgba(67, 56, 202, 0.55);
}

.cta-primary:focus-visible {
    outline: 2px solid #a5b4fc; /* brand-300 */
    outline-offset: 3px;
}

.dark .cta-primary {
    background-image: linear-gradient(135deg, #4f46e5 0%, #4338ca 60%, #3730a3 100%);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 16px 34px -18px rgba(99, 102, 241, 0.45);
}

.cta-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.4);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -16px rgba(15, 23, 42, 0.45);
}

.cta-secondary:active {
    transform: translateY(0);
}

.cta-secondary:focus-visible {
    outline: 2px solid rgba(165, 180, 252, 0.9);
    outline-offset: 3px;
}
