/* Page-level styles for the KOL static directory.
   Complements the compiled Tailwind brand build in app.css. */

:root {
  --kol-page-bg: #f6f5fa;
  --kol-ink: #18181b;
  --kol-muted: #71717a;
  --kol-border: rgba(24, 24, 27, 0.08);
}

html {
  scroll-behavior: smooth;
}

body.kol-page {
  font-family: var(--font-body, "Inter", ui-sans-serif, system-ui, sans-serif);
  background-color: var(--kol-page-bg);
  color: var(--kol-ink);
  min-height: 100vh;
}

body.kol-page.fonts-cjk-tc {
  font-family: "Noto Sans TC", var(--font-body, "Inter", sans-serif);
}

body.kol-page.fonts-cjk-kr {
  font-family: "Noto Sans KR", var(--font-body, "Inter", sans-serif);
}

.kol-display,
body.kol-page h1,
body.kol-page h2,
body.kol-page h3 {
  font-family: var(--font-display, "Plus Jakarta Sans", "Inter", sans-serif);
}

body.kol-page.fonts-cjk-tc .kol-display,
body.kol-page.fonts-cjk-tc h1,
body.kol-page.fonts-cjk-tc h2,
body.kol-page.fonts-cjk-tc h3 {
  font-family: "Noto Sans TC", var(--font-display, sans-serif);
}

body.kol-page.fonts-cjk-kr .kol-display,
body.kol-page.fonts-cjk-kr h1,
body.kol-page.fonts-cjk-kr h2,
body.kol-page.fonts-cjk-kr h3 {
  font-family: "Noto Sans KR", var(--font-display, sans-serif);
}

.kol-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 2rem 4rem;
}

.kol-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.kol-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.kol-brand img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.kol-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--kol-muted);
  margin-bottom: 1.25rem;
}

.kol-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.kol-breadcrumb a:hover {
  color: var(--kol-ink);
}

.kol-hero {
  margin-bottom: 2rem;
}

.kol-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.kol-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--kol-muted);
  line-height: 1.6;
}

.kol-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .kol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .kol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kol-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--kol-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.kol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(24, 24, 27, 0.28);
}

.kol-card-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.kol-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #e4e4e7;
  flex-shrink: 0;
}

.kol-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kol-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
}

.kol-card .kol-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--kol-muted);
}

.kol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kol-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid var(--kol-border);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #52525b;
}

.kol-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--kol-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kol-stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kol-muted);
  margin-bottom: 0.2rem;
}

.kol-stat-value {
  font-size: 0.95rem;
  font-weight: 800;
}

.kol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.9rem;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.kol-btn:hover {
  transform: translateY(-1px);
}

.kol-btn-primary {
  color: #fff;
  background: var(--gradient-brand, linear-gradient(135deg, #8c52ff 0%, #ff5fb4 100%));
}

.kol-btn-dark {
  color: #fff;
  background: #18181b;
}

.kol-btn-ghost {
  color: inherit;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--kol-border);
}

.kol-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(140, 82, 255, 0.18);
  background:
    radial-gradient(at 90% 10%, rgba(255, 95, 180, 0.16) 0, transparent 50%),
    radial-gradient(at 10% 90%, rgba(140, 82, 255, 0.14) 0, transparent 50%),
    rgba(255, 255, 255, 0.78);
}

.kol-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.kol-cta p {
  margin: 0 0 1rem;
  color: var(--kol-muted);
  max-width: 40rem;
  line-height: 1.55;
}

.kol-locked {
  position: relative;
  border: 1px dashed rgba(24, 24, 27, 0.18);
  border-radius: 1rem;
  padding: 1.25rem;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.65) 8px,
    rgba(244, 244, 245, 0.9) 8px,
    rgba(244, 244, 245, 0.9) 16px
  );
}

.kol-locked::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #52525b;
  backdrop-filter: blur(2px);
}

.kol-faq {
  margin-top: 2.5rem;
}

.kol-faq h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.kol-faq details {
  border-top: 1px solid var(--kol-border);
  padding: 0.9rem 0;
}

.kol-faq details:last-child {
  border-bottom: 1px solid var(--kol-border);
}

.kol-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.kol-faq details p {
  margin: 0.65rem 0 0;
  color: var(--kol-muted);
  line-height: 1.55;
}

.kol-profile-header {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 720px) {
  .kol-profile-header {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.kol-profile-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #e4e4e7;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -18px rgba(24, 24, 27, 0.45);
}

.kol-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kol-section {
  margin: 1.75rem 0;
}

.kol-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.kol-section p {
  margin: 0;
  line-height: 1.65;
  color: #3f3f46;
}

.kol-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--kol-border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--kol-muted);
}

.kol-empty {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px dashed var(--kol-border);
  color: var(--kol-muted);
  text-align: center;
}

.kol-country-card h3 {
  font-size: 1.15rem;
}

.kol-count {
  font-size: 0.8rem;
  color: var(--kol-muted);
}
