/* Khilonas.com — World Traditional Toys & Games
   Heritage / Network design language (Poppins, navy/indigo, gold accents) */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a2e;
  background: #ffffff;
}

/* Navy topbar - sticky */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0b1d4f;
  color: #ffffff;
  padding: 0.7rem 0;
  box-shadow: 0 2px 8px rgba(11, 29, 79, 0.25);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
}

.brand .dot {
  color: #f4c430;
}

.brand .tld {
  color: #b8c4e0;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover {
  color: #f4c430;
}

.nav a.active {
  color: #f4c430;
  border-bottom: 2px solid #f4c430;
  padding-bottom: 2px;
}

.clock-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #f4c430;
  border: 1px solid rgba(244, 196, 48, 0.3);
}

/* Hero band - indigo gradient with subtle radial texture */
.hero {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(180, 140, 220, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(244, 196, 48, 0.08) 0%, transparent 45%),
    linear-gradient(135deg, #231480 0%, #3d1f9e 45%, #2a1470 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
  pointer-events: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.hero h1 .gold {
  color: #f4c430;
}

.hero .tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #d8dfff;
  max-width: 780px;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #f4c430;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #b8c4e0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* Inner page slim hero */
.hero.slim {
  padding: 2.25rem 1.5rem 2rem;
}

.hero.slim h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.hero.slim .tagline {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.82rem;
  color: #b8c4e0;
  margin-bottom: 0.75rem;
  text-align: center;
}

.breadcrumb a {
  color: #d8dfff;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #f4c430;
}

/* Animated gold rule */
.gold-rule {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #f4c430 20%,
    #ffd670 50%,
    #f4c430 80%,
    transparent 100%);
  background-size: 200% 100%;
  animation: goldFlow 7s linear infinite;
}

@keyframes goldFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Main content area */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #231480;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h2 .accent {
  color: #b8860b;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2d1b5c;
  margin-bottom: 0.6rem;
  margin-top: 1.4rem;
}

p {
  margin-bottom: 1rem;
  color: #2a2a3e;
}

p.lead {
  font-size: 1.08rem;
  color: #1a1a2e;
  line-height: 1.7;
}

a {
  color: #4b2e8c;
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: #b8860b;
  text-decoration: underline;
}

/* Content section intro */
.intro-block {
  background: #f8f7fc;
  border-left: 4px solid #4b2e8c;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
}

.intro-block p {
  margin-bottom: 0.75rem;
}

.intro-block p:last-child {
  margin-bottom: 0;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: #ffffff;
  border: 1px solid #e6e6f0;
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #4b2e8c;
}

.card.toy::before { background: #4b2e8c; }
.card.game::before { background: #b8860b; }
.card.country::before { background: #c44536; }
.card.city::before { background: #2a7a4b; }
.card.guide::before { background: #6b4a8c; }

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 27, 92, 0.12);
  border-color: #d0d0e0;
}

.card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #231480;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: #4a4a5e;
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.card .card-meta {
  font-size: 0.78rem;
  color: #7a7a8c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.card a.explore {
  display: inline-block;
  color: #4b2e8c;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.card a.explore::after {
  content: ' →';
}

/* Explore/AI Mode button */
.explore-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4b2e8c 0%, #6b3fb8 100%);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
}

.explore-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75, 46, 140, 0.35);
  color: #ffffff;
  text-decoration: none;
}

.explore-btn::before {
  content: '⟶ ';
  color: #f4c430;
}

/* Buy-online variant — warmer accent, distinguishes from About button */
.explore-btn.buy {
  background: linear-gradient(135deg, #b8860b 0%, #d4a017 100%);
}

.explore-btn.buy:hover {
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

.explore-btn.buy::before {
  content: '⟶ ';
  color: #ffffff;
}

/* Button row - pairs About + Buy side by side */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.btn-row .explore {
  margin-left: 0.5rem;
}

/* AI-mode row table */
.ai-rows {
  border: 1px solid #e6e6f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.25rem 0 1.75rem;
}

.ai-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #e6e6f0;
  gap: 1rem;
  flex-wrap: wrap;
}

.ai-row:last-child {
  border-bottom: none;
}

.ai-row:nth-child(even) {
  background: #faf9fc;
}

.ai-row .q {
  font-size: 0.94rem;
  color: #2a2a3e;
  flex: 1;
  min-width: 240px;
}

.ai-row .explore-btn {
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
}

/* Region groups on country/toy grids */
.region {
  margin-bottom: 2.25rem;
}

.region-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b8860b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eae6f0;
}

/* Flag chip list */
.flag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid #d8d8e5;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.86rem;
  color: #2a2a3e;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.flag-chip:hover {
  border-color: #4b2e8c;
  color: #4b2e8c;
  text-decoration: none;
}

.flag-chip .flag {
  font-size: 1rem;
  line-height: 1;
}

/* Cross-links / see also */
.see-also {
  background: #f8f7fc;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-top: 2.5rem;
}

.see-also h3 {
  margin-top: 0;
  color: #4b2e8c;
  font-size: 1.05rem;
}

.see-also ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.see-also li a {
  display: inline-block;
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  border: 1px solid #d8d8e5;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #4b2e8c;
  text-decoration: none;
}

.see-also li a:hover {
  background: #4b2e8c;
  color: #ffffff;
  border-color: #4b2e8c;
  text-decoration: none;
}

/* Info notes */
.note {
  background: #fff8e6;
  border-left: 4px solid #f4c430;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  color: #6b5510;
}

.note strong { color: #8a6a10; }

/* Footer */
footer {
  background: #0b1d4f;
  color: #d8dfff;
  padding: 2.5rem 1.5rem 1.75rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.footer-col h4 {
  color: #f4c430;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #d8dfff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #f4c430;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(216, 223, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #a0a8c5;
}

.footer-bottom a { color: #d8dfff; }

/* Responsive */
@media (max-width: 640px) {
  .topbar-inner {
    padding: 0 1rem;
  }
  .nav {
    gap: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  .nav a { font-size: 0.82rem; }
  .clock-pill { display: none; }
  main { padding: 1.75rem 1rem 2.5rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-stats { gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .ai-row { flex-direction: column; align-items: flex-start; }
  .ai-row .explore-btn { align-self: flex-end; }
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f4c430;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .gold-rule { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
