/* ===== WEDDING JOBS - SHARED CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Sans+KR:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #c9956e;
  --primary-dark: #a97550;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --rose: #e8446a;
  --ivory: #fdf9f5;
  --ivory-dark: #f5ede3;
  --charcoal: #2d2520;
  --text: #3d3028;
  --text-muted: #8a7a6e;
  --border: #e8d5c0;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(45,37,32,0.08);
  --shadow-lg: 0 12px 48px rgba(45,37,32,0.14);
  --radius: 12px;
  --radius-sm: 6px;
  --nav-h: 72px;
  --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-body: 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ===== NAV ===== */
.gnb {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(253,249,245,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.gnb-inner {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 0;
}
.gnb-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--charcoal); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.gnb-logo .logo-wedding { color: var(--charcoal); }
.gnb-logo .logo-jobs { color: var(--primary); }
.gnb-logo .logo-net {
  font-size: 0.72rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(201,149,110,0.1));
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 4px; padding: 1px 5px;
  align-self: flex-end; margin-bottom: 3px; margin-left: 1px;
  font-family: var(--font-body);
}
.gnb-logo .dot { 
  width: 6px; height: 6px; background: var(--gold); 
  border-radius: 50%; display: inline-block;
}
.gnb-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.gnb-nav a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  transition: all 0.2s; white-space: nowrap;
}
.gnb-nav a:hover { background: var(--ivory-dark); color: var(--primary); }
.gnb-nav a.active { color: var(--primary); font-weight: 600; }
.gnb-actions { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.btn-outline {
  padding: 8px 18px; border-radius: 20px;
  border: 1.5px solid var(--primary); color: var(--primary);
  font-size: 0.84rem; font-weight: 500;
  background: transparent; transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-fill {
  padding: 8px 18px; border-radius: 20px;
  background: var(--primary); color: #fff;
  font-size: 0.84rem; font-weight: 500;
  border: none; transition: all 0.2s;
}
.btn-fill:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,149,110,0.4); }

/* ===== COMMON SECTION ===== */
.section { padding: 64px 24px; }
.container { max-width: 1240px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 8px;
}
.section-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 40px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.view-all { font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.view-all:hover { text-decoration: underline; }

/* ===== BADGES / TAGS ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 500;
  white-space: nowrap;
}
.badge-new { background: #fff0f3; color: var(--rose); }
.badge-hot { background: #fff4e6; color: #e67e22; }
.badge-urgent { background: #fef3f3; color: #e74c3c; }
.badge-full { background: #f0faf4; color: #27ae60; }
.badge-part { background: #f0f4ff; color: #3498db; }
.badge-free { background: #f5f0ff; color: #8e44ad; }
.badge-cat {
  background: var(--ivory-dark); color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== JOB CARD ===== */
.job-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 22px 24px;
  transition: all 0.25s; cursor: pointer;
}
.job-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-2px); }
.job-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.company-logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--white); flex-shrink: 0;
}
.job-card-meta { flex: 1; min-width: 0; }
.job-card-company { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 3px; }
.job-card-title { font-size: 1rem; font-weight: 600; color: var(--charcoal); }
.job-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.job-card-info { display: flex; gap: 14px; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; }
.job-card-info span { display: flex; align-items: center; gap: 4px; }

/* ===== RESUME CARD ===== */
.resume-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  transition: all 0.25s; cursor: pointer; text-align: center;
}
.resume-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); transform: translateY(-2px); }
.resume-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--ivory-dark), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.resume-name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.resume-title { font-size: 0.85rem; color: var(--primary); margin-bottom: 8px; }
.resume-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 6px; color: var(--charcoal); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text); background: var(--white);
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal); color: #b0a090;
  padding: 48px 24px 24px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--ivory); margin-bottom: 12px;
}
.footer-logo span { color: var(--primary); }
.footer-desc { font-size: 0.84rem; line-height: 1.7; }
.footer-col-title { font-size: 0.88rem; font-weight: 600; color: var(--ivory); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.84rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--ivory); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 0.8rem; text-align: center; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 120px 24px 60px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #4a3828 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; }
.page-hero h1 {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 500;
  color: var(--ivory); margin-bottom: 10px;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero p { font-size: 1rem; color: rgba(253,249,245,0.7); }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 10px 20px; border: none; background: transparent;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 28px; box-shadow: var(--shadow);
}
.filter-select {
  padding: 9px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.86rem; color: var(--text); background: var(--ivory);
  outline: none; cursor: pointer; transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--primary); }
.filter-input {
  flex: 1; min-width: 200px; padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.86rem; outline: none; transition: border-color 0.2s;
}
.filter-input:focus { border-color: var(--primary); }
.btn-search {
  padding: 9px 24px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-search:hover { background: var(--primary-dark); }

/* ===== GRID LAYOUTS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.86rem; color: var(--text-muted); transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gnb-nav { display: none; }
  .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem; }
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --primary: #e0a87e;
  --primary-dark: #c9956e;
  --gold: #d4b87e;
  --gold-light: #3a3020;
  --rose: #f06080;
  --ivory: #1a1510;
  --ivory-dark: #221c16;
  --charcoal: #f0e8e0;
  --text: #d4c8bc;
  --text-muted: #8a7a6e;
  --border: #3a2e26;
  --white: #241e18;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
}
[data-theme="dark"] .gnb {
  background: rgba(26,21,16,0.96);
  border-bottom-color: #3a2e26;
}
[data-theme="dark"] .gnb-logo .logo-wedding { color: #f0e8e0; }
[data-theme="dark"] body { background: #1a1510; color: #d4c8bc; }
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #120f0a 0%, #221810 55%, #2a1e14 100%);
}

/* ===== HAMBURGER MENU ===== */
.gnb-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px; margin-left: 8px;
}
.gnb-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: all 0.25s; transform-origin: center;
}
.gnb-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnb-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gnb-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== DARK MODE TOGGLE ===== */
.dark-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; transition: all 0.2s;
  flex-shrink: 0;
}
.dark-toggle:hover { border-color: var(--primary); }

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--white); z-index: 1100; transition: right 0.3s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15); display: flex;
  flex-direction: column; overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1099; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer-overlay.active { opacity: 1; pointer-events: all; }
.drawer-head {
  padding: 20px 22px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-logo {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--charcoal);
}
.drawer-logo span { color: var(--primary); }
.drawer-close {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border);
  background: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem; color: var(--text-muted);
}
.drawer-nav { padding: 12px 0; flex: 1; }
.drawer-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px; font-size: 0.92rem; color: var(--text);
  cursor: pointer; transition: background 0.15s; text-decoration: none;
  border: none; background: none; width: 100%; text-align: left;
}
.drawer-nav-item:hover { background: var(--ivory-dark); color: var(--primary); }
.drawer-nav-item.active { color: var(--primary); font-weight: 700;
  background: rgba(201,149,110,0.08); border-right: 3px solid var(--primary); }
.drawer-nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.drawer-nav-badge {
  margin-left: auto; background: var(--rose); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 8px;
}
.drawer-sep { height: 1px; background: var(--border); margin: 6px 22px; }
.drawer-actions { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.drawer-btn {
  flex: 1; padding: 11px; border-radius: 22px; font-size: 0.86rem;
  font-weight: 600; cursor: pointer; text-align: center; transition: all 0.2s;
  text-decoration: none; display: block;
}
.drawer-btn.outline {
  border: 1.5px solid var(--primary); color: var(--primary); background: none;
}
.drawer-btn.fill {
  background: var(--primary); color: #fff; border: none;
}

/* ===== BOTTOM TAB BAR ===== */
.bottom-tab-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 58px; background: var(--white); border-top: 1px solid var(--border);
  z-index: 800; padding-bottom: env(safe-area-inset-bottom);
}
.btb-inner {
  height: 100%; display: flex; align-items: stretch;
}
.btb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; cursor: pointer; transition: all 0.15s;
  text-decoration: none; color: var(--text-muted); border: none; background: none;
  padding: 0; font-family: var(--font-body);
}
.btb-item:hover, .btb-item.active { color: var(--primary); }
.btb-item.active .btb-icon { transform: translateY(-2px); }
.btb-icon { font-size: 1.2rem; position: relative; }
.btb-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--rose); color: #fff; font-size: 0.55rem;
  font-weight: 700; padding: 1px 4px; border-radius: 8px; min-width: 14px;
  text-align: center;
}
.btb-label { font-size: 0.62rem; font-weight: 500; }

/* ===== SCRAP (찜하기) ===== */
.scrap-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; font-size: 1rem; transition: all 0.18s;
  flex-shrink: 0;
}
.scrap-btn:hover { border-color: var(--rose); transform: scale(1.1); }
.scrap-btn.active { border-color: var(--rose); background: #fff0f3; }

/* ===== SKELETON UI ===== */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--ivory-dark) 50%, var(--border) 75%);
  background-size: 600px 100%; animation: shimmer 1.4s infinite;
  border-radius: 6px; display: block;
}
.skeleton-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 10px;
}
.sk-logo { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.sk-line { height: 12px; margin-bottom: 7px; }
.sk-line:last-child { margin-bottom: 0; }
.sk-tag { height: 22px; border-radius: 20px; }

/* ===== RESPONSIVE (모바일) ===== */
@media (max-width: 900px) {
  .gnb-hamburger { display: flex; }
  .gnb-nav { display: none !important; }
  .gnb-actions .btn-outline,
  .gnb-actions .btn-fill { display: none; }
  .bottom-tab-bar { display: block; }
  body { padding-bottom: 58px; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:var(--charcoal);color:rgba(253,249,245,.85);padding:14px 24px;z-index:2000;display:flex;align-items:center;gap:16px;flex-wrap:wrap;box-shadow:0 -4px 20px rgba(0,0,0,.25);transform:translateY(100%);transition:transform .4s ease;}
.cookie-banner.show{transform:translateY(0);}
.cookie-text{flex:1;font-size:.82rem;line-height:1.6;min-width:220px;}
.cookie-text a{color:var(--gold);text-decoration:underline;}
.cookie-btns{display:flex;gap:8px;flex-shrink:0;}
.cookie-btn{padding:8px 18px;border-radius:20px;font-size:.82rem;font-weight:600;cursor:pointer;transition:all .15s;border:none;}
.cookie-btn.accept{background:var(--primary);color:#fff;}
.cookie-btn.accept:hover{background:var(--primary-dark);}
.cookie-btn.reject{background:rgba(255,255,255,.12);color:rgba(253,249,245,.7);}
.cookie-btn.reject:hover{background:rgba(255,255,255,.2);}

/* ── 모바일 가로 넘침 방지 (2026-09-12) — 좁은 화면에서 화면 전체가 축소돼 보이던 문제 ── */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
}

/* 화면에는 안 보이지만 화면 읽기 프로그램은 읽는 텍스트 */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
