/* ============================================================
   꿀주소(KkulJuso) - style.css
   다크모드 북마크 사이트 스타일시트
   ============================================================ */

:root {
  /* Dark theme colors */
  --bg-base: #0f1115;
  --bg-elevated: #171a21;
  --bg-card: #1c2029;
  --bg-card-hover: #23283340;
  --border-color: #2b303c;
  --border-color-hover: #f5b942;

  --text-primary: #eef1f6;
  --text-secondary: #a6adba;
  --text-muted: #6b7280;

  --honey-400: #ffd166;
  --honey-500: #f5b942;
  --honey-600: #d99b2b;
  --honey-glow: rgba(245, 185, 66, 0.35);

  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 10px 30px rgba(245, 185, 66, 0.12);

  --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--honey-500);
  color: #1a1a1a;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 21, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border-color);
  background: rgba(15, 17, 21, 0.95);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { border-radius: 10px; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text .accent { color: var(--honey-500); }

.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--honey-400); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 24px 70px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, var(--honey-glow) 0%, transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(217, 155, 43, 0.18) 0%, transparent 40%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-eyebrow {
  color: var(--honey-400);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -1px;
  line-height: 1.3;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  /*margin: 0 0 34px;*/
  margin: 0;
}
.hero-desc strong { color: var(--honey-400); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--honey-400);
}
.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.last-verified {
  margin: 26px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.last-verified i { color: var(--honey-500); }
.last-verified time { color: var(--text-secondary); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 70px 24px; }
.section.alt { background: var(--bg-elevated); }
.section-inner { max-width: 1200px; margin: 0 auto; }
/*.section-inner.narrow { max-width: 780px; }*/
.section-inner.narrow { max-width: 1200px; }

.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2 i { color: var(--honey-500); }
.section-desc {
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-size: 1rem;
}

.section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 34px 0 14px;
  color: var(--honey-400);
}
.section p { color: var(--text-secondary); }

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.site-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.site-card:hover {
  transform: translateY(-4px);
  border-color: var(--honey-500);
  box-shadow: var(--shadow-card-hover);
}

.card-link {
  display: block;
  padding: 24px 20px 18px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--honey-400), var(--honey-600));
  color: #1a1408;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.card-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
}
.card-tag {
  background: rgba(245, 185, 66, 0.12);
  color: var(--honey-400);
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
}
.card-host {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.15s, background 0.2s;
}
.fav-btn:hover { transform: scale(1.12); color: var(--honey-400); }
.fav-btn.active { color: var(--honey-500); }

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}
.empty-msg i { color: var(--honey-500); }

/* ---------- About / Feature grid ---------- */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.check-list i { color: var(--honey-500); margin-top: 4px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--honey-500); transform: translateY(-3px); }
.feature-card i {
  font-size: 1.5rem;
  color: var(--honey-500);
  margin-bottom: 10px;
}
.feature-card h4 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--text-secondary);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--honey-500);
  color: #16130a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list strong { color: var(--text-primary); }
.steps-list p { margin: 4px 0 0; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.faq-question i { color: var(--honey-500); transition: transform 0.25s; }
.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }
.faq-answer p { margin: 0; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-color);
  padding: 50px 24px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo-text { display: block; margin: 10px 0 10px; }
.footer-logo { margin-bottom: 6px; border-radius: 8px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; }

.footer-nav { display: flex; gap: 50px; }
.footer-col h5 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--honey-400); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-bottom p { margin: 4px 0; }
.footer-updated time { color: var(--honey-400); font-weight: 600; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--honey-500);
  color: #16130a;
  border: none;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: 0 6px 20px rgba(245, 185, 66, 0.35);
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--honey-400); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border-color); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 16px 24px; gap: 16px; }
  .nav-toggle { display: block; }
  .br-desktop { display: none; }
  .footer-nav { gap: 30px; }
}

@media (max-width: 560px) {
  .hero { padding: 60px 18px 50px; }
  .section { padding: 50px 18px; }
  .hero-stats { gap: 24px; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-link { padding: 18px 14px 14px; }
  .card-icon { width: 40px; height: 40px; font-size: 0.95rem; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
}
