/* ============================================
 * 황금연휴 계산기 — style.css (C-3 네오 구조적 디자인)
 * Tailwind CDN과 함께 사용
 * ============================================ */

/* ── 기본 타이포그래피 ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fafafa;
    color: #111;
}

/* ── C-3 색상 변수 ── */
:root {
    --c3-primary: #0066ff;
    --c3-primary-soft: #e8f0ff;
    --c3-dark: #111111;
    --c3-dark-soft: #f0f0f0;
    --c3-bg: #fafafa;
    --c3-white: #ffffff;
    --c3-border: #e5e5e5;
    --c3-text: #111111;
    --c3-text-sub: #555555;
    --c3-text-muted: #999999;
    --c3-green: #22a65e;
    --c3-green-soft: #edfbf0;
    --c3-red: #ff3b30;
    --c3-red-soft: #fff1f0;
    --c3-radius: 16px;
    --c3-radius-sm: 10px;
    --c3-radius-xs: 8px;
}

/* ── 헤더 ── */
.c3-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c3-border);
}
.c3-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.c3-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--c3-text);
}
.c3-logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--c3-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}
.c3-logo-text {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.5px;
}
.c3-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}
.c3-nav a {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c3-text-muted);
    text-decoration: none;
    border-radius: var(--c3-radius-xs);
    transition: all 0.15s;
}
.c3-nav a:hover {
    color: var(--c3-text);
    background: var(--c3-dark-soft);
}
.c3-nav-cta {
    padding: 6px 16px !important;
    background: var(--c3-dark) !important;
    color: #fff !important;
    border-radius: var(--c3-radius-xs) !important;
    font-weight: 600 !important;
}
.c3-nav-cta:hover {
    background: #333 !important;
}

/* ── 컨테이너 ── */
.c3-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── 히어로 2컬럼 ── */
.c3-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0 32px;
}
.c3-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}
.c3-hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--c3-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.c3-hero-title {
    font-weight: 900;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
    color: var(--c3-text);
}
.c3-hero-desc {
    font-size: 15px;
    color: var(--c3-text-sub);
    line-height: 1.7;
    margin-bottom: 28px;
}
.c3-hero-buttons {
    display: flex;
    gap: 10px;
}
.c3-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── 색상 블록 카드 ── */
.c3-block-blue {
    background: var(--c3-primary);
    border-radius: var(--c3-radius);
    padding: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.c3-block-dark {
    background: var(--c3-dark);
    border-radius: var(--c3-radius);
    padding: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.c3-block-gray {
    background: var(--c3-dark-soft);
    border-radius: var(--c3-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.c3-block-white {
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius);
    padding: 24px;
}
.c3-block-num {
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -2px;
}
.c3-block-label {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 6px;
}
.c3-block-full {
    grid-column: 1 / -1;
}

/* ── 버튼 ── */
.c3-btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--c3-primary);
    color: #fff;
    border: none;
    border-radius: var(--c3-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.c3-btn-primary:hover {
    background: #0055dd;
    transform: translateY(-1px);
}
.c3-btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--c3-dark-soft);
    color: var(--c3-text);
    border: none;
    border-radius: var(--c3-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.c3-btn-secondary:hover {
    background: #e5e5e5;
}
.c3-btn-dark {
    display: inline-block;
    padding: 12px 24px;
    background: var(--c3-dark);
    color: #fff;
    border: none;
    border-radius: var(--c3-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.c3-btn-dark:hover {
    background: #333;
}

/* ── 섹션 제목 ── */
.c3-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.c3-section-title {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--c3-text);
}
.c3-section-link {
    color: var(--c3-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.c3-section-link:hover {
    text-decoration: underline;
}

/* ── 연휴 카드 그리드 (2x2 색상 블록) ── */
.c3-period-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.c3-period-card {
    border-radius: var(--c3-radius);
    padding: 24px 22px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.c3-period-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.c3-period-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.c3-period-rank {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -1px;
    opacity: 0.3;
}
.c3-period-date {
    font-size: 11px;
    opacity: 0.6;
}
.c3-period-title {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.3px;
    margin-bottom: 3px;
}
.c3-period-sub {
    font-size: 13px;
    opacity: 0.7;
}

/* ── 연휴 리스트형 (서브페이지) ── */
.c3-list-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius);
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.c3-list-card:hover {
    border-color: var(--c3-primary);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.08);
    transform: translateX(4px);
}
.c3-list-rank {
    width: 34px;
    height: 34px;
    border-radius: var(--c3-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}
.c3-list-rank-blue {
    background: var(--c3-primary-soft);
    color: var(--c3-primary);
}
.c3-list-rank-dark {
    background: var(--c3-dark-soft);
    color: var(--c3-text-sub);
}

/* ── 칩/태그 ── */
.c3-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.c3-chip-blue {
    background: var(--c3-primary-soft);
    color: var(--c3-primary);
}
.c3-chip-green {
    background: var(--c3-green-soft);
    color: var(--c3-green);
}
.c3-chip-red {
    background: var(--c3-red-soft);
    color: var(--c3-red);
}
.c3-chip-dark {
    background: var(--c3-dark);
    color: #fff;
}
.c3-chip-gray {
    background: var(--c3-dark-soft);
    color: var(--c3-text-sub);
}

/* ── 피처 카드 (색상 블록) ── */
.c3-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.c3-feature-card {
    border-radius: var(--c3-radius);
    padding: 28px 18px;
    text-align: center;
    transition: transform 0.2s;
}
.c3-feature-card:hover {
    transform: translateY(-3px);
}
.c3-feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.c3-feature-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}
.c3-feature-desc {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.5;
}

/* ── 바로가기 ── */
.c3-quick {
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius);
    padding: 20px;
}
.c3-quick-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
}
.c3-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.c3-quick-tag {
    display: inline-block;
    padding: 7px 14px;
    background: var(--c3-dark-soft);
    border-radius: var(--c3-radius-xs);
    font-size: 12px;
    font-weight: 600;
    color: var(--c3-text-sub);
    text-decoration: none;
    transition: all 0.15s;
}
.c3-quick-tag:hover {
    background: var(--c3-primary-soft);
    color: var(--c3-primary);
}

/* ── 풋터 ── */
.c3-footer {
    border-top: 1px solid var(--c3-border);
    margin-top: 48px;
    padding: 32px 20px;
    background: var(--c3-bg);
}
.c3-footer-inner {
    max-width: 960px;
    margin: 0 auto;
}
.c3-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}
.c3-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.c3-footer-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--c3-text);
    margin-bottom: 10px;
}
.c3-footer-link {
    display: block;
    font-size: 13px;
    color: var(--c3-text-muted);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.15s;
}
.c3-footer-link:hover {
    color: var(--c3-text);
}
.c3-footer-copy {
    font-size: 11px;
    color: var(--c3-text-muted);
    border-top: 1px solid var(--c3-border);
    padding-top: 16px;
    text-align: center;
}

/* ── 히어로 (서브페이지 — 색상 블록 히어로) ── */
.c3-hero-banner {
    border-radius: var(--c3-radius);
    padding: 32px;
    color: white;
    margin-bottom: 24px;
}
.c3-hero-banner-blue {
    background: var(--c3-primary);
}
.c3-hero-banner-dark {
    background: var(--c3-dark);
}
.c3-hero-banner h1 {
    font-weight: 800;
    font-size: clamp(20px, 3.5vw, 36px);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.c3-hero-banner p {
    font-size: 14px;
    opacity: 0.7;
}

/* ── 통계 행 ── */
.c3-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.c3-stat-card {
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius);
    padding: 18px 16px;
    text-align: center;
}
.c3-stat-num {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -1px;
    color: var(--c3-primary);
}
.c3-stat-label {
    font-size: 11px;
    color: var(--c3-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ── 브레드크럼 ── */
.c3-breadcrumb {
    margin-bottom: 16px;
}
.c3-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--c3-text-muted);
}
.c3-breadcrumb a {
    color: var(--c3-text-muted);
    text-decoration: none;
}
.c3-breadcrumb a:hover {
    color: var(--c3-text);
}
.c3-breadcrumb .current {
    color: var(--c3-text);
    font-weight: 600;
}

/* ── 광고 관련 ── */
.ad-notice {
    font-size: 10px;
    color: var(--c3-text-muted);
    margin-top: 4px;
    text-align: center;
}
.ad-container-safe {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s;
}
.ad-container-safe.ad-empty {
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.ad-desktop-only {
    display: none;
}
@media (min-width: 769px) {
    .ad-desktop-only {
        display: block;
    }
}
.ad-footer-container {
    max-height: 280px;
    overflow: hidden;
    transition: max-height 0.3s;
}
.ad-footer-container.ad-empty {
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── 인-아티클 광고 ── */
.ads-container.ads-in-article {
    margin: 24px auto;
    padding: 16px 12px;
    border-top: 1px solid var(--c3-border);
    border-bottom: 1px solid var(--c3-border);
    background: var(--c3-bg);
    text-align: center;
}
.ads-in-article .adsbygoogle:empty {
    min-height: 90px;
    background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── 공휴일 없는 달 접기 ── */
.month-no-holiday {
    display: none;
}

/* ── 카드 호버 효과 ── */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ── 스크롤바 숨김 ── */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ── 공휴일/주말/연차 타입 색상 (기존 호환) ── */
.holiday { background-color: var(--c3-red-soft); color: var(--c3-red); }
.weekend { background-color: var(--c3-primary-soft); color: var(--c3-primary); }
.leave   { background-color: #fef3c7; color: #92400e; }
.workday { background-color: var(--c3-dark-soft); }

/* ── prose 스타일 ── */
section.prose h2 {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    color: var(--c3-text);
}
section.prose h3 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}
section.prose p {
    color: var(--c3-text-sub);
    line-height: 1.7;
    margin-bottom: 12px;
}
section.prose ul {
    color: var(--c3-text-sub);
    padding-left: 20px;
}
section.prose li {
    margin-bottom: 6px;
}

/* ── 공유 버튼 바 ── */
.c3-share-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.c3-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius-xs);
    background: var(--c3-white);
    font-size: 12px;
    font-weight: 600;
    color: var(--c3-text-sub);
    cursor: pointer;
    transition: all 0.15s;
}
.c3-share-btn:hover {
    background: var(--c3-dark-soft);
    border-color: #ccc;
}

/* ── 토스트 메시지 ── */
.c3-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c3-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--c3-radius-sm);
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: bottom 0.3s ease;
    white-space: nowrap;
}
.c3-toast.show {
    bottom: 24px;
}

/* ── 여행지 추천 카드 ── */
.c3-travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}
.c3-travel-card {
    background: var(--c3-white);
    border: 1px solid var(--c3-border);
    border-radius: var(--c3-radius-sm);
    padding: 14px;
    transition: all 0.15s;
}
.c3-travel-card:hover {
    border-color: var(--c3-primary);
    box-shadow: 0 2px 8px rgba(0,102,255,0.06);
}
.c3-travel-icon {
    font-size: 24px;
    margin-bottom: 6px;
}
.c3-travel-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
}
.c3-travel-desc {
    font-size: 11px;
    color: var(--c3-text-muted);
    line-height: 1.4;
}
.c3-travel-flight {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    background: var(--c3-primary-soft);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--c3-primary);
}

/* ── 월별 시즌 배지 ── */
.c3-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.c3-peak-very-high { background: #fee2e2; color: #dc2626; }
.c3-peak-high { background: #fef3c7; color: #d97706; }
.c3-peak-medium { background: #e8f0ff; color: #0066ff; }
.c3-peak-low { background: #edfbf0; color: #22a65e; }

/* ── 비교 테이블 ── */
.c3-compare-table {
    width: 100%;
    border-collapse: collapse;
}
.c3-compare-table th {
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--c3-text-muted);
    border-bottom: 2px solid var(--c3-border);
    text-align: left;
}
.c3-compare-table td {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--c3-dark-soft);
}
.c3-compare-table .compare-best {
    background: var(--c3-primary-soft);
    font-weight: 700;
    color: var(--c3-primary);
}
.c3-compare-table .compare-label {
    font-weight: 600;
    color: var(--c3-text-sub);
    font-size: 12px;
}

/* ── 지난 연휴 표시 ── */
.c3-past-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #999;
}
.c3-list-card.c3-past {
    opacity: 0.5;
    order: 999;
}
.c3-list-card.c3-past:hover {
    opacity: 0.7;
}
.c3-past-banner {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: var(--c3-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    font-weight: 600;
}
.c3-upcoming-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--c3-primary);
}
.c3-upcoming-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c3-primary-soft);
}
