/* ==================== */
/* Header Main Styles */
/* ==================== */

.header {
    background: var(--color-primary);
    height: var(--header-height);
    padding: var(--spacing-md) 72px;
    border-bottom-left-radius: 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 다크 테마: 헤더는 큰 면적의 브랜드 컬러 대신 surface 톤 사용 */
[data-theme="dark"] .header {
    background: var(--color-surface-1, #1E1E1E);
    border-bottom-left-radius: 40px;
    border-bottom: 1px solid var(--theme-border-medium, #3A3A3A);
}

[data-theme="dark"] .logo {
    color: var(--color-on-surface, #E0E0E0);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
    line-height: 24px;
    margin-left: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    overflow: visible;
    z-index: 10;
}

/* 로고 호버 효과 - UX 기준: 명확한 피드백, 부드러운 전환 */
.logo:hover {
    transform: scale(1.06) translateY(-1px);
    color: #00D4AA;
    text-shadow: 
        0 0 12px rgba(0, 212, 170, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(0, 212, 170, 0.08);
}

/* 로고 호버 시 부드러운 펄스 효과 */
.logo:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: rgba(0, 212, 170, 0.15);
    transform: translate(-50%, -50%) scale(1);
    animation: logoHoverPulse 1.5s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* 로고 클릭 효과 - UX 기준: 즉각적인 피드백 */
.logo:active {
    transform: scale(0.96) translateY(0);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 로고 클릭 애니메이션 */
.logo.logo-clicked {
    animation: logoClickFeedback 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 호버 펄스 애니메이션 */
@keyframes logoHoverPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.25;
    }
}

/* 클릭 피드백 애니메이션 */
@keyframes logoClickFeedback {
    0% {
        transform: scale(0.96);
        color: #00D4AA;
    }
    30% {
        transform: scale(1.02);
        color: #00F5D4;
    }
    60% {
        transform: scale(0.98);
        color: #00D4AA;
    }
    100% {
        transform: scale(1);
        color: var(--color-white);
    }
}

/* 리플 효과 스타일 - Material Design 스타일 */
.logo-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: rgba(0, 212, 170, 0.3);
    transform: scale(0);
    animation: rippleExpand 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* 클릭 시 반짝임 효과 */
.logo-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: #00F5D4;
    box-shadow: 0 0 6px rgba(0, 245, 212, 0.8);
    animation: sparkleFloat 0.8s ease-out forwards;
}

@keyframes sparkleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--sparkle-x), var(--sparkle-y)) scale(0);
        opacity: 0;
    }
}

.mypage {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* 알림 종 모양 아이콘 - UX 기준: 흔들림 애니메이션 */
.notification-bell {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    color: var(--color-white);
    overflow: visible;
}

/* 호버 시 배경 확대 및 그림자 효과 */
.notification-bell:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* 호버 시 종 흔들림 애니메이션 */
.notification-bell:hover .bell-icon {
    animation: bellRing 0.6s ease-in-out;
}

/* 클릭 시 눌림 효과 */
.notification-bell:active {
    transform: scale(0.95);
}

/* 클릭 시 강한 흔들림 애니메이션 */
.notification-bell:active .bell-icon {
    animation: bellRingClick 0.4s ease-in-out;
}

.bell-icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
    transition: transform 0.3s ease;
    transform-origin: top center;
}

/* 알림 여부에 따른 종 아이콘 (MVP) */
.bell-icon--filled {
    display: none;
}
.notification-bell.has-unread .bell-icon--outline {
    display: none;
}
.notification-bell.has-unread .bell-icon--filled {
    display: block;
}

/* ==================== */
/* 알림 미리보기 패널 (최근 3개) */
/* ==================== */
.notification-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-preview {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: 80vw;
    background: var(--theme-bg-primary, #fff);
    border: 1px solid var(--theme-border-light, rgba(229, 231, 235, 1));
    border-radius: 14px;
    box-shadow: var(--theme-shadow-lg, 0 14px 34px rgba(0,0,0,0.18));
    padding: 12px;
    z-index: 2000;
    display: none;
}

.notif-preview.is-open {
    display: block;
}

.notif-preview-header {
    font-size: 14px;
    font-weight: 900;
    color: var(--theme-text-primary, var(--color-text-primary, #111827));
    margin-bottom: 10px;
}

.notif-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-preview-loading {
    font-size: 13px;
    color: var(--theme-text-tertiary, var(--color-text-secondary, #6B7280));
    padding: 10px 4px;
    text-align: center;
}

.notif-preview-item {
    border: 1px solid var(--theme-border-light, rgba(229, 231, 235, 1));
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--theme-bg-secondary, rgba(0,0,0,0.02));
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.notif-preview-item.unread {
    background: rgba(9, 81, 243, 0.08);
    border-color: rgba(9, 81, 243, 0.25);
}

.notif-preview-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md, 0 8px 18px rgba(0,0,0,0.10));
}

.notif-preview-item:active {
    transform: translateY(0);
}

.notif-preview-item:focus-visible {
    outline: 2px solid rgba(9, 81, 243, 0.8);
    outline-offset: 2px;
}

.notif-preview-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.notif-preview-btn {
    flex: 1;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--theme-border-light, rgba(229, 231, 235, 1));
    background: var(--theme-bg-primary, #fff);
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--theme-text-primary, #111827);
    cursor: pointer;
}

.notif-preview-btn.primary {
    background: var(--color-primary-blue, #0951F3);
    border-color: var(--color-primary-blue, #0951F3);
    color: #fff;
}

.notif-preview-btn.danger {
    background: #FF3B30;
    border-color: #FF3B30;
    color: #fff;
}

.notif-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notif-preview-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--theme-text-primary, var(--color-text-primary, #111827));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-preview-status {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--theme-border-light, rgba(229, 231, 235, 1));
    background: var(--theme-bg-tertiary, rgba(0,0,0,0.03));
    color: var(--theme-text-secondary, #374151);
    flex-shrink: 0;
}
.notif-preview-status.pending { color: #B45309; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.25); }
.notif-preview-status.accepted { color: #047857; background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.25); }
.notif-preview-status.rejected { color: #B91C1C; background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.25); }
.notif-preview-status.cancelled { color: #6B7280; background: rgba(107,114,128,0.12); border-color: rgba(107,114,128,0.25); }

.notif-preview-meta {
    font-size: 12px;
    color: var(--theme-text-tertiary, var(--color-text-secondary, #6B7280));
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-preview-more {
    margin-top: 10px;
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--theme-border-light, rgba(229, 231, 235, 1));
    background: var(--theme-bg-primary, #fff);
    color: var(--color-primary-blue, #0951F3);
    font-weight: 900;
    text-decoration: none;
}

/* 종 흔들림 애니메이션 (호버) */
@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-15deg);
    }
    20% {
        transform: rotate(15deg);
    }
    30% {
        transform: rotate(-10deg);
    }
    40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    60% {
        transform: rotate(5deg);
    }
    70% {
        transform: rotate(0deg);
    }
}

/* 종 흔들림 애니메이션 (클릭) - 더 강하게 */
@keyframes bellRingClick {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    10% {
        transform: rotate(-20deg) scale(1.1);
    }
    20% {
        transform: rotate(20deg) scale(1.1);
    }
    30% {
        transform: rotate(-15deg) scale(1.05);
    }
    40% {
        transform: rotate(15deg) scale(1.05);
    }
    50% {
        transform: rotate(-10deg) scale(1);
    }
    60% {
        transform: rotate(10deg) scale(1);
    }
    70% {
        transform: rotate(-5deg) scale(1);
    }
    80% {
        transform: rotate(5deg) scale(1);
    }
    90% {
        transform: rotate(0deg) scale(1);
    }
}

/* 리플 효과 (클릭 시) */
.notification-bell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.notification-bell:active::after {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* 알림 배지 */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF4444;
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    border: 2px solid var(--color-primary);
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 알림이 없을 때 배지 숨기기 */
.notification-badge:empty {
    display: none;
}

/* 배지 업데이트 시 팝 애니메이션 (UX) */
.notification-badge.badge-pop {
    animation: notifBadgePop 0.22s ease-out;
}

@keyframes notifBadgePop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* 다크 모드 지원 - 알림 종 */
[data-theme="dark"] .notification-bell {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .notification-bell:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bell-icon {
    stroke: var(--color-white);
}

[data-theme="dark"] .notification-badge {
    border-color: var(--theme-bg-primary);
}

/* 다크 모드에서 리플 효과 색상 조정 */
[data-theme="dark"] .notification-bell::after {
    background: rgba(255, 255, 255, 0.3);
}

/* 프로필 아이콘 (마이페이지 진입) - UX 기준: 펄스 및 회전 애니메이션 */
.profile-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    color: var(--color-white);
    text-decoration: none;
    overflow: visible;
    /* UX: 터치 타겟 최소 크기 확보 (44px 이상) */
}

/* 호버 시 배경 확대 및 그림자 효과 */
.profile-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* 호버 시 펄스 효과 (배경 파동) */
.profile-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.profile-icon:hover::before {
    animation: profilePulse 1.5s ease-in-out infinite;
}

/* 클릭 시 눌림 효과 */
.profile-icon:active {
    transform: scale(0.95);
}

/* 클릭 시 강한 펄스 효과 */
.profile-icon:active::before {
    animation: profilePulseClick 0.6s ease-out;
}

.profile-icon-svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
    transition: all 0.3s ease;
    fill: none;
    transform-origin: center;
}

/* 호버 시 아이콘 확대 및 회전 */
.profile-icon:hover .profile-icon-svg {
    transform: scale(1.15) rotate(5deg);
}

/* 클릭 시 아이콘 회전 애니메이션 */
.profile-icon:active .profile-icon-svg {
    animation: profileIconSpin 0.5s ease-in-out;
}

/* 펄스 애니메이션 (호버) */
@keyframes profilePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

/* 펄스 애니메이션 (클릭) */
@keyframes profilePulseClick {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 아이콘 회전 애니메이션 (클릭) */
@keyframes profileIconSpin {
    0% {
        transform: scale(1.15) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1.15) rotate(360deg);
    }
}

/* 리플 효과 (클릭 시) */
.profile-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.profile-icon:active::after {
    animation: rippleEffect 0.6s ease-out;
}

/* 다크 모드 지원 - 프로필 아이콘 */
[data-theme="dark"] .profile-icon {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .profile-icon:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .profile-icon-svg {
    stroke: var(--color-white);
}

/* 다크 모드에서 펄스 효과 색상 조정 */
[data-theme="dark"] .profile-icon::before {
    background: rgba(255, 255, 255, 0.15);
}

/* 다크 모드에서 리플 효과 색상 조정 */
[data-theme="dark"] .profile-icon::after {
    background: rgba(255, 255, 255, 0.3);
}

/* 테마 토글 버튼 */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-white);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(24px);
    background: #FFD700;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.theme-toggle-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.theme-toggle-icon.sun {
    left: 4px;
    opacity: 1;
}

.theme-toggle-icon.moon {
    right: 4px;
    opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon.sun {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon.moon {
    opacity: 1;
}

.theme-toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-white);
    stroke: var(--color-white);
}

/* ==================== */
/* 로그인 버튼 - UX 기준: 애니메이션 효과 */
/* design.teeitday.com 참고 */
/* ==================== */
.btn-login {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: transparent;
    color: var(--color-white);
    font-size: var(--font-size-md);
    font-weight: 600;
    border: 2px solid var(--color-white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 호버 시 배경 변화 및 확대 - 파란색+보라색 그라데이션 */
.btn-login:hover {
    background: linear-gradient(135deg, #5B7FE8 0%, #8B7FE8 100%);
    color: var(--color-white);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(91, 127, 232, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 호버 시 그라데이션 효과 - 빛나는 효과 */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

/* 클릭 시 눌림 효과 - 더 진한 파란보라색 */
.btn-login:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(135deg, #4A6FD9 0%, #7A6FD9 100%);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(74, 111, 217, 0.3);
}

/* 클릭 시 리플 효과 - 파란보라색 */
.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 127, 232, 0.5) 0%, rgba(91, 127, 232, 0.3) 100%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.btn-login:active::after {
    animation: loginRipple 0.6s ease-out;
}

@keyframes loginRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* 포커스 상태 (키보드 접근성) */
.btn-login:focus-visible {
    outline: 2px solid var(--color-primary-blue);
    outline-offset: 2px;
}

/* 다크 모드 지원 */
[data-theme="dark"] .btn-login {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

[data-theme="dark"] .btn-login:hover {
    background: linear-gradient(135deg, #6B8FFF 0%, #9B8FFF 100%);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(107, 143, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .btn-login:active {
    background: linear-gradient(135deg, #5B7FE8 0%, #8B7FE8 100%);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(91, 127, 232, 0.3);
}

[data-theme="dark"] .btn-login::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* 인증 버튼 컨테이너 - 하나의 버튼으로 통합 */
.auth-button-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 217, 0.9);
    border-radius: 8px;
    padding: 10px 20px;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 111, 217, 0.2);
}

.auth-button-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.auth-button-container:hover::before {
    left: 100%;
}

.auth-button-container:hover {
    background-color: rgba(74, 111, 217, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 111, 217, 0.4);
}

/* 인증 링크 스타일 */
.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.auth-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 로그인 링크 호버 효과 */
.auth-login:hover .auth-text {
    color: #FFD700;
    transform: scale(1.1) translateY(-2px);
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    animation: loginGlow 0.6s ease;
}

.auth-login:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* 회원가입 링크 호버 효과 */
.auth-signup:hover .auth-text {
    color: #87CEEB;
    transform: scale(1.1) translateY(-2px);
    text-shadow: 0 2px 8px rgba(135, 206, 235, 0.5);
    animation: signupGlow 0.6s ease;
}

.auth-signup:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* 클릭 효과 */
.auth-link:active .auth-text {
    transform: scale(0.95);
}

/* 애니메이션 */
@keyframes loginGlow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 4px 16px rgba(255, 215, 0, 0.8);
    }
}

@keyframes signupGlow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(135, 206, 235, 0.5);
    }
    50% {
        text-shadow: 0 4px 16px rgba(135, 206, 235, 0.8);
    }
}

/* 로그아웃 링크 호버 효과 */
.auth-logout:hover .auth-text {
    color: #FF6B6B;
    transform: scale(1.1) translateY(-2px);
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    animation: logoutGlow 0.6s ease;
}

.auth-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* 마이 페이지 링크 호버 효과 */
.auth-mypage:hover .auth-text {
    color: #4ECDC4;
    transform: scale(1.1) translateY(-2px);
    text-shadow: 0 2px 8px rgba(78, 205, 196, 0.5);
    animation: mypageGlow 0.6s ease;
}

.auth-mypage:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

@keyframes logoutGlow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }
    50% {
        text-shadow: 0 4px 16px rgba(255, 107, 107, 0.8);
    }
}

@keyframes mypageGlow {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(78, 205, 196, 0.5);
    }
    50% {
        text-shadow: 0 4px 16px rgba(78, 205, 196, 0.8);
    }
}

/* ==================== */
/* 햄버거 메뉴 버튼 (UX 기준: 노란색 강조) */
/* ==================== */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #FFD700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    /* UX: 노란색으로 강조하여 눈에 띄게 */
}

.menu-toggle:hover {
    background: #FFED4E;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle[aria-expanded="true"] {
    background: #FF6B6B;
    /* UX: 메뉴 열림 시 빨간색으로 변경하여 상태 표시 */
}

.menu-toggle[aria-expanded="true"]:hover {
    background: #FF5252;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 20px;
    position: relative;
}

.menu-line {
    width: 100%;
    height: 3px;
    background: #181818;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 다크 모드 지원 */
[data-theme="dark"] .menu-toggle {
    background: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .menu-toggle:hover {
    background: #FFED4E;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

[data-theme="dark"] .menu-line {
    background: #181818;
}

[data-theme="dark"] .menu-toggle[aria-expanded="true"] {
    background: #FF6B6B;
}

[data-theme="dark"] .menu-toggle[aria-expanded="true"] .menu-line {
    background: #FFFFFF;
}

/* ==================== */
/* 사이드 메뉴 패널 (UX 기준: 오른쪽에서 슬라이드 인) */
/* ==================== */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* UX: 배경 어둡게 하여 메뉴에 집중 */
}

.side-menu-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* UX: 오른쪽에서 슬라이드 인 */
}

.side-menu[aria-hidden="false"] {
    right: 0;
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.side-menu-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.side-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.side-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.side-menu-close:active {
    transform: scale(0.95);
}

.side-menu-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    /* UX: 메뉴 항목 영역 - 독립적인 스크롤 */
}

.side-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu-item {
    margin: 0;
}

.side-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-md);
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    /* UX: 호버 시 왼쪽 테두리로 활성화 표시 */
}

.side-menu-link:hover {
    background: var(--color-primary-light);
    border-left-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
    transform: translateX(4px);
    /* UX: 살짝 오른쪽으로 이동하여 상호작용 표시 */
}

.side-menu-link:active {
    transform: translateX(2px);
    background: rgba(9, 81, 243, 0.15);
}

.side-menu-icon {
    font-size: 24px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.side-menu-text {
    flex: 1;
}

.side-menu-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 8px 24px;
}

/* 다크 모드 지원 */
[data-theme="dark"] .side-menu {
    background: var(--theme-bg-primary);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .side-menu-header {
    background: var(--color-primary);
    border-bottom-color: var(--theme-border-medium);
}

[data-theme="dark"] .side-menu-link {
    color: var(--theme-text-primary);
}

[data-theme="dark"] .side-menu-link:hover {
    background: rgba(9, 81, 243, 0.15);
    color: #4A9EFF;
}

[data-theme="dark"] .side-menu-divider {
    background: var(--theme-border-medium);
}

/* ==================== */
/* 사이드 메뉴 하단 통합 섹션 (고객센터, 추천하기, 회사 정보) */
/* ==================== */
.side-menu-footer-section {
    flex-shrink: 0;
    border-top: 2px solid var(--color-border-light);
    background: var(--color-bg-white);
    max-height: 35vh;
    /* UX: 하단 섹션 최대 높이 제한 (축소) */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-menu-footer-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    /* UX: 하단 섹션 독립적인 스크롤 */
    -webkit-overflow-scrolling: touch;
    /* UX: 모바일에서 부드러운 스크롤 */
}

.side-menu-customer-service,
.side-menu-recommend,
.side-menu-company-info {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-white);
}

.side-menu-customer-service:first-child {
    border-top: none;
    /* UX: 첫 번째 섹션은 상단 테두리 제거 */
}

.side-menu-section-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 12px 0;
    line-height: 20px;
}

.side-menu-cs-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-menu-cs-phone {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.side-menu-cs-phone:hover {
    color: var(--color-primary-blue);
}

.side-menu-cs-hours {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-menu-cs-text {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    line-height: 18px;
    margin: 0;
}

.side-menu-cs-note {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    line-height: 18px;
    margin: 4px 0 0 0;
    font-style: italic;
}

/* 추천하기 소셜 아이콘 */
.side-menu-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.side-menu-social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* UX: 터치 타겟 최소 크기 확보 */
}

.side-menu-social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.side-menu-social-icon:active {
    transform: translateY(0) scale(0.95);
}

/* 카카오톡 (노란색) */
.side-menu-social-icon[data-platform="kakao"] {
    background: #FEE500;
    color: #181818;
}

.side-menu-social-icon[data-platform="kakao"]:hover {
    background: #FFED4E;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4);
}

/* 이메일 (파란색) */
.side-menu-social-icon[data-platform="email"] {
    background: #4285F4;
    color: var(--color-white);
}

.side-menu-social-icon[data-platform="email"]:hover {
    background: #5A9EFF;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

/* 페이스북 (파란색) */
.side-menu-social-icon[data-platform="facebook"] {
    background: #1877F2;
    color: var(--color-white);
}

.side-menu-social-icon[data-platform="facebook"]:hover {
    background: #2A8AFF;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* 트위터 (하늘색) */
.side-menu-social-icon[data-platform="twitter"] {
    background: #1DA1F2;
    color: var(--color-white);
}

.side-menu-social-icon[data-platform="twitter"]:hover {
    background: #3DB4FF;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

/* 링크 복사 (회색) */
.side-menu-social-icon[data-platform="link"] {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
}

.side-menu-social-icon[data-platform="link"]:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-blue);
    box-shadow: 0 4px 12px rgba(9, 81, 243, 0.2);
}

/* 회사 정보 */
.side-menu-company-info {
    padding: 16px 24px;
    background: var(--color-bg-secondary);
}

.side-menu-company-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    font-size: var(--font-size-xs);
    line-height: 16px;
}

.side-menu-company-item:last-child {
    margin-bottom: 0;
}

.side-menu-company-label {
    color: var(--color-text-tertiary);
    font-weight: 500;
    display: inline-block;
    margin-right: 4px;
}

.side-menu-company-text {
    color: var(--color-text-secondary);
    display: inline-block;
}

.side-menu-company-link {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.side-menu-company-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* 다크 모드 지원 */
[data-theme="dark"] .side-menu-footer-section {
    background: var(--theme-bg-primary);
    border-top-color: var(--theme-border-medium);
}

[data-theme="dark"] .side-menu-customer-service,
[data-theme="dark"] .side-menu-recommend {
    background: var(--theme-bg-primary);
    border-top-color: var(--theme-border-medium);
}

[data-theme="dark"] .side-menu-company-info {
    background: var(--theme-bg-secondary);
}

[data-theme="dark"] .side-menu-cs-phone {
    color: var(--theme-text-primary);
}

[data-theme="dark"] .side-menu-cs-phone:hover {
    color: #4A9EFF;
}

[data-theme="dark"] .side-menu-cs-text,
[data-theme="dark"] .side-menu-cs-note {
    color: var(--theme-text-tertiary);
}

[data-theme="dark"] .side-menu-section-title {
    color: #4A9EFF;
}

[data-theme="dark"] .side-menu-social-icon[data-platform="link"] {
    background: var(--theme-bg-tertiary);
    color: var(--theme-text-secondary);
}

[data-theme="dark"] .side-menu-social-icon[data-platform="link"]:hover {
    background: rgba(9, 81, 243, 0.2);
    color: #4A9EFF;
}

[data-theme="dark"] .side-menu-company-label {
    color: var(--theme-text-tertiary);
}

[data-theme="dark"] .side-menu-company-text {
    color: var(--theme-text-secondary);
}

[data-theme="dark"] .side-menu-company-link {
    color: #4A9EFF;
}

[data-theme="dark"] .side-menu-company-link:hover {
    color: #5A9EFF;
}

/* ==================== */
/* Header Responsive Styles */
/* ==================== */

/* Tablet (1440px 이하) */
@media (max-width: 1440px) {
    .header {
        padding: var(--spacing-md) var(--spacing-2xl);
    }
}

/* 접근성: 애니메이션 감소 옵션 (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
    /* 알림 종 애니메이션 비활성화 */
    .notification-bell:hover .bell-icon,
    .notification-bell:active .bell-icon {
        animation: none;
        transform: none;
    }
    
    .notification-bell:hover {
        transform: none;
    }
    
    .notification-bell:active {
        transform: scale(0.98);
    }
    
    .notification-bell::after,
    .notification-bell:active::after {
        animation: none;
        opacity: 0;
    }
    
    /* 프로필 아이콘 애니메이션 비활성화 */
    .profile-icon:hover .profile-icon-svg,
    .profile-icon:active .profile-icon-svg {
        animation: none;
        transform: scale(1.05);
    }
    
    .profile-icon:hover {
        transform: none;
    }
    
    .profile-icon:active {
        transform: scale(0.98);
    }
    
    .profile-icon::before,
    .profile-icon:hover::before,
    .profile-icon:active::before {
        animation: none;
        opacity: 0;
    }
    
    .profile-icon::after,
    .profile-icon:active::after {
        animation: none;
        opacity: 0;
    }
    
    /* 로그인 버튼 애니메이션 비활성화 */
    .btn-login:hover {
        transform: none;
    }
    
    .btn-login:active {
        transform: scale(0.98);
    }
    
    .btn-login::before,
    .btn-login:hover::before {
        animation: none;
        left: 0;
        opacity: 0;
    }
    
    .btn-login::after,
    .btn-login:active::after {
        animation: none;
        opacity: 0;
    }
}

/* Mobile (768px 이하) */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .header {
        padding: var(--spacing-md) var(--spacing-md);
        border-bottom-left-radius: 34px;
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
        /* UX: 모바일에서 약간 작게 */
    }
    
    .logo {
        font-size: var(--font-size-md);
        margin-left: 12px;
    }
    
    /* 알림 종 모양 아이콘 - 모바일 최적화 */
    .notification-bell {
        width: 44px;
        height: 44px;
        /* UX: 모바일에서 터치 타겟 최소 크기 확보 */
    }
    
    .bell-icon {
        width: 22px;
        height: 22px;
    }
    
    /* 모바일에서 애니메이션 속도 조정 (더 빠르게) */
    .notification-bell:hover .bell-icon {
        animation-duration: 0.4s;
    }
    
    .notification-bell:active .bell-icon {
        animation-duration: 0.3s;
    }
    
    /* 프로필 아이콘 - 모바일 최적화 */
    .profile-icon {
        width: 44px;
        height: 44px;
        /* UX: 모바일에서 터치 타겟 최소 크기 확보 */
    }
    
    .profile-icon-svg {
        width: 22px;
        height: 22px;
    }
    
    /* 모바일에서 애니메이션 속도 조정 (더 빠르게) */
    .profile-icon:active .profile-icon-svg {
        animation-duration: 0.4s;
    }
    
    /* 모바일에서 리플 효과 크기 조정 */
    .notification-bell:active::after,
    .profile-icon:active::after {
        animation: rippleEffectMobile 0.5s ease-out;
    }
    
    @keyframes rippleEffectMobile {
        0% {
            width: 0;
            height: 0;
            opacity: 0.6;
        }
        100% {
            width: 70px;
            height: 70px;
            opacity: 0;
        }
    }
    
    .notification-badge {
        top: 6px;
        right: 6px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        padding: 0 3px;
    }
    
    /* 로그인 버튼 - 모바일 최적화 */
    .btn-login {
        padding: 8px 16px;
        font-size: var(--font-size-sm);
        border-radius: 6px;
        border-width: 1.5px;
    }
    
    /* 모바일에서 리플 효과 크기 조정 */
    .btn-login:active::after {
        animation: loginRippleMobile 0.5s ease-out;
    }
    
    @keyframes loginRippleMobile {
        0% {
            width: 0;
            height: 0;
            opacity: 0.6;
        }
        100% {
            width: 100px;
            height: 100px;
            opacity: 0;
        }
    }
    
    .auth-button-container {
        padding: 8px 16px;
        gap: 6px;
    }
    
    .auth-link {
        font-size: 14px;
        padding: 3px 8px;
    }
    
    .side-menu {
        width: 280px;
        max-width: 90vw;
        /* UX: 모바일에서 더 넓게 */
    }
    
    .side-menu-header {
        padding: 16px 20px;
    }
    
    .side-menu-link {
        padding: 14px 20px;
        font-size: var(--font-size-sm);
    }
    
    .side-menu-footer-section {
        max-height: 30vh;
        /* UX: 모바일에서 하단 섹션 높이 조정 (축소) */
    }
    
    .side-menu-customer-service,
    .side-menu-recommend,
    .side-menu-company-info {
        padding: 12px 20px;
    }
    
    .side-menu-section-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .side-menu-cs-phone {
        font-size: var(--font-size-md);
    }
    
    .side-menu-cs-text,
    .side-menu-cs-note {
        font-size: 11px;
        line-height: 16px;
    }
    
    .side-menu-social-icon {
        width: 44px;
        height: 44px;
        /* UX: 모바일에서 약간 작게 */
    }
    
    .side-menu-social-icons {
        gap: 10px;
    }
    
    .side-menu-company-item {
        font-size: 11px;
        line-height: 15px;
        margin-bottom: 6px;
    }
}

