/* ===========================
   Choi Bonghwan - 개혁신당
   Common Styles - Mobile First
   White + Orange Theme
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Noto+Serif+KR:wght@400;700;900&display=swap');

/* ── CSS Variables ── */
:root {
  --orange:       #FF7210;
  --orange-light: #FF9340;
  --orange-dark:  #E5660E;
  --orange-50:    #FFF6ED;
  --orange-100:   #FFECD5;

  --dark:         #1c1917;
  --dark-mid:     #292524;
  --dark-light:   #44403c;

  --white:        #ffffff;
  --off-white:    #fafaf9;
  --gray-100:     #f5f5f4;
  --gray-200:     #e7e5e4;
  --gray-400:     #a8a29e;
  --gray-500:     #78716c;
  --gray-600:     #57534e;
  --gray-800:     #292524;
  --text:         #1c1917;

  /* Backward compat aliases */
  --navy:         #1c1917;
  --navy-mid:     #292524;
  --navy-light:   #44403c;
  --gold:         #FF7210;
  --gold-light:   #FF9340;

  --font-sans:  'Noto Sans KR', sans-serif;
  --font-serif: 'Noto Serif KR', serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.12);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  --container:  1200px;
  --header-h:   64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════
   HEADER / NAV - White Clean
   ════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-badge {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 17px;
  color: var(--white);
  flex-shrink: 0;
}
.logo-party {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  gap: 2px;
}
.nav-desktop a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.nav-desktop a:hover {
  color: var(--text);
  background: var(--gray-100);
}
.nav-desktop a.active {
  color: var(--orange);
  font-weight: 600;
}
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}

/* CTA button in header */
.btn-header-cta {
  display: none;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.btn-header-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,114,16,0.3);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  display: block;
  color: var(--gray-600);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.mobile-menu a:hover {
  color: var(--orange);
  background: var(--orange-50);
  padding-left: 36px;
}
.mobile-menu .menu-cta {
  margin: 16px 20px 0;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  border-bottom: none;
}
.mobile-menu .menu-cta:hover {
  background: var(--orange-dark);
  padding-left: 20px;
}

/* Page offset for fixed header */
.page-body {
  padding-top: var(--header-h);
}

/* ════════════════════════════
   FLOATING DONATE BUTTON
   ════════════════════════════ */
.float-donate {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.float-donate-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,114,16,0.35);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.float-donate-btn:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 28px rgba(255,114,16,0.45);
  transform: translateY(-2px);
}
.float-donate-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.float-donate-popup {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: none;
  min-width: 260px;
  text-align: left;
}
.float-donate-popup.show {
  display: block;
  animation: fadeUp 0.25s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.float-donate-popup h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.float-donate-info {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}
.float-donate-info strong {
  color: var(--orange);
  font-weight: 800;
  font-size: 15px;
}
.float-donate-copy {
  margin-top: 12px;
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.float-donate-copy:hover {
  background: var(--orange-50);
  border-color: var(--orange);
}

@media (max-width: 767px) {
  .float-donate { bottom: 16px; right: 16px; }
  .float-donate-btn { padding: 12px 18px; font-size: 13px; }
}

/* ════════════════════════════
   FOOTER - Dark Charcoal
   ════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 28px;
  border-top: 3px solid var(--orange);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span {
  color: var(--orange);
}
.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  max-width: 400px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--orange-light);
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  line-height: 1.8;
}
.kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEE500;
  color: #3A1D1D;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  transition: all var(--transition);
}
.kakao-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254,229,0,0.4);
}

/* ════════════════════════════
   COMMON COMPONENTS
   ════════════════════════════ */

/* Section title */
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
}
.section-title .accent {
  color: var(--orange);
}
.section-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 10px;
  line-height: 1.7;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-50);
  border: 1px solid rgba(255,114,16,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,114,16,0.3);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
}
.btn-gold:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,114,16,0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 27px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Divider */
.divider-gold {
  width: 48px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 16px auto;
}

/* ════════════════════════════
   DESKTOP BREAKPOINTS
   ════════════════════════════ */
@media (min-width: 768px) {
  :root { --header-h: 72px; }

  .container { padding: 0 40px; }

  .nav-desktop { display: flex; }
  .btn-header-cta { display: flex; }
  .hamburger { display: none; }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-inner { gap: 32px; }

  .section-title { font-size: 38px; }
  .section-subtitle { font-size: 16px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 60px; }
  .section-title { font-size: 44px; }
}

/* ════════════════════════════
   POPUP - 공지 팝업
   ════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: popupFadeIn 0.3s ease;
}
.popup-overlay.hidden {
  display: none;
}
.popup-box {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: popupSlideUp 0.3s ease;
}
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  line-height: 1;
}
.popup-close:hover {
  background: rgba(0,0,0,0.7);
}
.popup-img {
  width: 100%;
  display: block;
}
.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
}
.popup-today {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}
.popup-today input {
  accent-color: var(--orange);
}
.popup-close-btn {
  background: none;
  border: 1px solid var(--gray-300);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  font-family: var(--font-sans);
}
.popup-close-btn:hover {
  background: var(--gray-100);
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popupSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
