/* layout.css — header, footer, page structure */

/* ── Header ── */
.cc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cc-surface);
  border-bottom: 1px solid var(--cc-border);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.cc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.cc-logo:hover { text-decoration: none; opacity: 0.9; }
.cc-logo picture { display: flex; }
.cc-logo img { display: block; height: 55px; width: auto; }

.cc-nav { flex: 1; overflow: hidden; }
.cc-nav ul { list-style: none; padding: 0; display: flex; gap: 4px; flex-wrap: nowrap; }
.cc-nav a {
  font-size: 13px;
  color: var(--cc-muted);
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s;
}
.cc-nav a:hover,
.cc-nav a[aria-current="page"] { color: var(--cc-text); text-decoration: none; }
.cc-nav a[aria-current="page"] { background: var(--cc-surface-2); }

.cc-lang-select {
  position: relative;
  flex-shrink: 0;
}
.cc-lang-select__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-muted);
  border: 1px solid var(--cc-border);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.cc-lang-select__trigger::-webkit-details-marker { display: none; }
.cc-lang-select__trigger::marker { content: ""; }
.cc-lang-select__trigger::after { content: "▾"; font-size: 9px; }
.cc-lang-select__trigger:hover { color: var(--cc-text); }
.cc-lang-select[open] .cc-lang-select__trigger { color: var(--cc-text); border-color: var(--cc-accent); }

.cc-lang-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 4px;
  min-width: 130px;
  list-style: none;
  background: var(--cc-surface-2);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.cc-lang-select__menu li { margin: 0; }
.cc-lang-select__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-text);
  text-decoration: none;
}
.cc-lang-select__menu a:hover { background: var(--cc-surface); text-decoration: none; }
.cc-lang-select__menu a[aria-current="page"] { color: var(--cc-accent); }

.cc-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--cc-text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile nav drawer */
.cc-mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--cc-surface);
  border-bottom: 1px solid var(--cc-border);
  padding: 16px 24px;
  z-index: 99;
}
.cc-mobile-nav.is-open { display: block; }
.cc-mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-mobile-nav a { display: block; padding: 10px 8px; color: var(--cc-text); border-radius: 4px; }
.cc-mobile-nav a:hover { background: var(--cc-surface-2); text-decoration: none; }

/* ── Main page sections ── */
.cc-hero {
  background: linear-gradient(135deg, var(--cc-surface) 0%, #0a1628 100%);
  border-bottom: 1px solid var(--cc-border);
  padding: 60px 24px 50px;
  text-align: center;
}
.cc-hero .cc-container { max-width: 800px; }
.cc-hero h1 { margin-bottom: 1rem; }
.cc-hero p  { font-size: 1.1rem; color: var(--cc-muted); margin-bottom: 1.5rem; }
.cc-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cc-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--cc-border);
}
.cc-section:last-of-type { border-bottom: none; }

/* ── Footer ── */
.cc-footer {
  background: var(--cc-surface);
  border-top: 1px solid var(--cc-border);
  padding: 40px 24px 24px;
}

.cc-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.cc-footer__links a { font-size: 13px; color: var(--cc-muted); }
.cc-footer__links a:hover { color: var(--cc-text); }

/* Crypto strip */
.cc-crypto-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--cc-border);
  border-bottom: 1px solid var(--cc-border);
}
.cc-crypto-strip img { width: 32px; height: 32px; }

.cc-footer__legal {
  font-size: 12px;
  color: var(--cc-muted);
  line-height: 1.6;
}
.cc-footer__legal p { margin-bottom: 6px; }

.cc-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cc-red);
  color: var(--cc-red);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 6px;
}
