/* ============================================================
   TRAVEL GURU — Landing Page
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* --- Design Tokens (shared with guide engine) --- */
:root, [data-theme="light"] {
  --bg: #f8f7f4;
  --bg2: #ffffff;
  --card: #ffffff;
  --accent: #e86c30;
  --accent-light: #fef0e8;
  --accent2: #5b5ee6;
  --text: #1a1a2e;
  --text2: #555770;
  --text3: #8b8da3;
  --border: #e8e8ed;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0d1320;
  --bg2: #151e30;
  --card: #1a2235;
  --accent: #f0854a;
  --accent-light: rgba(240,133,74,0.12);
  --accent2: #818cf8;
  --text: #edf2f7;
  --text2: #a0aec0;
  --text3: #64748b;
  --border: #2a3448;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Aurora Background (signature element) --- */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-theme="dark"] .aurora-bg {
  opacity: 1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(46,232,176,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(124,127,247,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(20,184,214,0.05) 0%, transparent 70%);
  animation: aurora 30s ease-in-out infinite alternate;
}

@keyframes aurora {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(15deg); }
  100% { filter: hue-rotate(-10deg); }
}

/* --- Noise Texture Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* --- Site Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--accent); }

.theme-toggle {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 48px 60px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40px -100vw;
  background: url('img/iceland-hero.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}
[data-theme="dark"] .hero::before {
  opacity: 0.15;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}

.hero-sub {
  font-weight: 200;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Guides Section --- */
.guides {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px 80px;
}

.section-title {
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 32px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* --- Guide Card --- */
.guide-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.guide-card:not(.coming-soon):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:not(.coming-soon):hover .card-img img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.card-subtitle {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-desc {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.5;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-date {
  font-size: 0.8rem;
  color: var(--text3);
  font-weight: 500;
}

.card-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* --- Coming Soon Card --- */
.coming-soon {
  opacity: 0.55;
  cursor: default;
}

.card-img.placeholder {
  background: var(--bg2);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 32px 48px;
  color: var(--text3);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--text3);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); }

/* --- Staggered Animations --- */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.35s; }
.stagger-4 { animation-delay: 0.5s; }
.stagger-5 { animation-delay: 0.65s; }
.stagger-6 { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
  }
  .aurora-bg { animation: none; }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .site-header { padding: 16px 20px; }
  .hero { padding: 48px 20px 40px; }
  .guides { padding: 16px 20px 60px; }
  .guides-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 20px; }
  .hero-tag { font-size: 0.7rem; }
}
