/* 기본 설정 및 폰트 */
:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #4725f4;
    --accent-hover: #3216ba;
    --gradient-premium: linear-gradient(135deg, #4725f4, #d4af37);
    --protein: #ff4757;
    --carbs: #2ed573;
    --fat: #ffa502;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', 'Pretendard Variable', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

.hidden {
    display: none !important;
}

/* 레이아웃 */
#app-container {
    max-width: 480px;
    /* 모바일 앱 비율 유지 */
    margin: 0 auto;
    min-height: 100vh;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    position: relative;
    padding-bottom: 150px;
    /* AdMob 배너를 위한 하단 여유 공간 확보 (무효 클릭 방지) */
}

/* 📌 구글 AdMob 최적화 UI (CLS 방지 및 클릭 미스 예방) */
.admob-banner-container {
    position: absolute;
    bottom: 40px;
    /* FAB 버튼보다 살짝 위에 있거나 아래에 고정 */
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 50px;
    /* 광고 사이즈 고정: CLS(레이아웃 변동 지표) 최적화 */
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    /* 투명하게 자리만 잡아둠 */
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    z-index: 100;
}

.app-footer {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
}

.app-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.app-footer a:hover {
    color: var(--accent);
}

/* 헤더 & 네비게이션 */
/* 헤더 & 네비게이션 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 4px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

.nav-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.nav-btn.outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.nav-btn:hover {
    background: var(--accent-hover);
}

.lang-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    height: 34px;
    min-width: 60px;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(71, 37, 244, 0.3);
}

.lang-select option {
    background: #1a1a1c;
    color: white;
    padding: 10px;
}

/* 탭 전환 버튼 */
.tabs {
    display: flex;
    padding: 12px 18px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    background: rgba(10, 10, 12, 0.8);
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, etc. */
}

/* Chrome */

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: 0.85rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(71, 37, 244, 0.3);
}

main {
    padding: 24px;
}

.view-section {
    animation: fadeIn 0.3s ease-in-out;
}

/* 1. 스캐너 뷰 */
.camera-container {
    background: #111;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-frame {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    flex-direction: column;
}

#camera-overlay {
    text-align: center;
}

#food-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* 카메라 UI 가이드 및 마커 */
#ai-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bounding-box {
    position: absolute;
    border: 2px solid #2ed573;
    pointer-events: none;
    animation: boxPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.box-label {
    position: absolute;
    top: -12px;
    left: -12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.analysis-complete-banner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #2ed573;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-in-out;
}

.analysis-complete-banner .cal-amount {
    color: #2ed573;
}


.upload-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    margin-top: 15px;
    font-weight: 600;
    transition: 0.2s;
}

.upload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.primary-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.secondary-btn {
    width: 100%;
    background: transparent;
    color: white;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 20px;
    transition: 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 유리 질감 (Glassmorphism) 카드 */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

#result-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.total-calories {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.total-calories span {
    color: var(--accent);
}

.macro-item {
    margin-bottom: 15px;
}

.macro-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.protein-fill {
    background: var(--protein);
}

.carbs-fill {
    background: var(--carbs);
}

.fat-fill {
    background: var(--fat);
}

/* AI 코칭 박스 */
.coaching-box {
    margin-top: 20px;
    padding: 16px;
    background: rgba(71, 37, 244, 0.1);
    border: 1px solid rgba(71, 37, 244, 0.3);
    border-radius: 12px;
}

.coaching-box h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1rem;
}

.coaching-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 프리미엄 배너 */
.premium-banner {
    background: var(--gradient-premium);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.banner-content h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: #fff;
}

.banner-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 60%;
}

.upgrade-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.upgrade-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.paypal-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: var(--shadow);
}

/* 2. 월간 식단 기록 뷰 (대표님 아이디어) */
.history-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.history-header p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.monthly-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.summary-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
    border: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(71, 37, 244, 0.4);
}

.summary-circle span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-circle .unit {
    font-size: 0.8rem;
    opacity: 0.8;
}

.meal-list {
    list-style: none;
    margin-top: 15px;
}

.meal-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent);
}

.meal-info strong {
    display: block;
    font-size: 1.1rem;
}

.meal-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

/* Phase 2: 대시보드 차트 스타일 */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
}

.chart-card {
    padding: 20px;
    margin-bottom: 0;
}

.chart-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: center;
}

.canvas-container {
    position: relative;
    width: 100%;
    /* 도넛은 정사각형에 가깝게, 바차트는 약간 넓게 */
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. 프로필 폼 스타일 (Phase 1) */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.unit-span {
    position: absolute;
    right: 15px;
    top: 36px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 🤖 Phase 3: AI 다이어트 상담소 (챗봇) UI */
.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-premium);
    box-shadow: 0 4px 15px rgba(71, 37, 244, 0.4);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.chatbot-fab:hover {
    transform: scale(1.1);
}

.chatbot-fab .fab-icon {
    line-height: 1;
}

.chatbot-modal {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    height: 450px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chatbot-modal.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.chatbot-header {
    padding: 15px;
    background: rgba(71, 37, 244, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.message p {
    margin: 0;
}

.ai-msg {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-msg {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input-area {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

#chatbot-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 8px 12px;
    font-family: inherit;
}

#chatbot-input:focus {
    outline: none;
}

#chatbot-send-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    min-width: 60px;
}

#chatbot-send-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* 데스크탑 뷰 대응 (앱이 화면 중앙에 있을 때 챗봇 모달 위치 보정) */
@media (min-width: 481px) {
    .chatbot-fab {
        right: calc(50vw - 216px);
    }

    .chatbot-modal {
        right: calc(50vw - 216px);
    }
}

/* Phase 4: 대시보드 및 홈 스킨 */
.dashboard-main-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(71, 37, 244, 0.1) 0%, rgba(10, 10, 12, 0) 100%);
    margin-bottom: 24px;
}

.progress-ring-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#daily-progress-ring {
    width: 220px;
    height: 220px;
}

.ring-center-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#home-current-cal {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.ring-center-text small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.ring-center-text .unit {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 2px;
}

.daily-status-info {
    width: 100%;
    display: flex;
    justify-content: center;
}

.status-item {
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.status-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.status-item .value {
    font-size: 1rem;
    font-weight: 700;
}

.widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.widget-card {
    padding: 20px;
    margin-bottom: 0px;
}

.widget-card h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.widget-card.accent-border {
    border: 1px solid rgba(71, 37, 244, 0.4);
    background: linear-gradient(135deg, rgba(71, 37, 244, 0.05), transparent);
}

.water-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.water-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.water-amount small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.add-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 37, 244, 0.3);
}

.ai-tip-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-style: italic;
}

/* fadeIn 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 480px) {
    #app-container {
        border: none;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes boxPopIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Toast 알림 */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 프리미엄 뷰 전용 스타일 */
.premium-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.premium-benefits {
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(71, 37, 244, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.premium-benefits h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.premium-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
}

.premium-benefits .emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.benefit-txt {
    line-height: 1.5;
}

.benefit-txt strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.benefit-txt span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 푸터 스타일 */
.app-footer {
    padding: 30px 20px;
    background: rgba(10, 10, 12, 0.95);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.1);
}

.copyright {
    opacity: 0.6;
}

/* 쿠키 배너 */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(26, 26, 28, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.mini-btn {
    padding: 6px 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px) {
    .nav-tabs {
        gap: 5px;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}