/*
Theme Name:  Thailand Journey
Theme URI:   https://robin.nl
Author:      Robin (met Claude)
Description: Een donker, gouden reistheme voor Thailand 2026. Inclusief blog posts, stadspaginas en fotogalerij.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: thailand-journey
Tags:        travel, dark, custom-colors, custom-logo, featured-images, full-width-template
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --saffron:     #FF8C00;
  --jade:        #1A6B5A;
  --jade-light:  #2A9B82;
  --night:       #0D0D12;
  --night-2:     #14141C;
  --night-3:     #1C1C28;
  --cream:       #F5EDD8;
  --mist:        #C8C0B0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--night);
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }

p  { margin-bottom: 1.4rem; color: var(--mist); font-size: 0.95rem; }

.mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 6vw; }
.section       { padding: 5rem 6vw; }
.section--sm   { padding: 3rem 6vw; }

.divider {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 6vw; margin: 3rem 0;
}
.divider__line   { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(201,168,76,0.3), transparent); }
.divider__symbol { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--gold); opacity: 0.6; }

/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 6vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,13,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: background 0.3s;
}

.site-header.scrolled { background: rgba(13,13,18,0.98); }

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
}
.site-logo span { color: var(--gold); }

.site-nav { display: flex; gap: 2.5rem; align-items: center; }

.site-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav .current-menu-item a { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 0.5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--cream); transition: 0.3s;
}

/* ============================================================
   PAGE HERO (shared)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 120px 6vw 4rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 70% 40%, rgba(201,168,76,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0D0D12 0%, #14101A 50%, #0D0D12 100%);
}

.page-hero__image {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.25;
}

.page-hero__content { position: relative; z-index: 1; }
.page-hero__eyebrow { margin-bottom: 1rem; }
.page-hero__title   { margin-bottom: 1rem; }
.page-hero__title em { font-style: italic; color: var(--gold); }
.page-hero__desc    { max-width: 540px; font-size: 1rem; color: var(--mist); line-height: 1.7; }

/* ============================================================
   HOME HERO (full-screen)
   ============================================================ */
.home-hero {
  position: relative;
  height: 100vh; min-height: 700px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 6vw 8vh;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 70% 40%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26,107,90,0.12) 0%, transparent 55%),
    linear-gradient(160deg, #0D0D12 0%, #14101A 50%, #0D0D12 100%);
}

.home-hero__image {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.15;
}

.home-hero__content { position: relative; z-index: 1; }

.home-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 300; line-height: 0.9;
  letter-spacing: -0.02em;
  animation: fadeUp 1s ease 0.5s both;
}
.home-hero__title em { font-style: italic; color: var(--gold); display: block; }

.home-hero__subtitle {
  margin-top: 2rem; max-width: 480px;
  font-size: 1.05rem; color: var(--mist); line-height: 1.7;
  animation: fadeUp 1s ease 0.8s both;
}

.home-hero__meta {
  display: flex; flex-wrap: wrap; gap: 3rem;
  margin-top: 3rem;
  animation: fadeUp 1s ease 1s both;
}

.meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.meta-item .label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.meta-item .value { font-size: 0.95rem; color: var(--cream); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: fadeIn 1s ease 1.5s both;
}
.scroll-hint span { font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* ============================================================
   CARDS (posts / cities)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
  background: rgba(201,168,76,0.08);
}

.card {
  background: var(--night-2);
  position: relative; overflow: hidden;
  transition: background 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { background: var(--night-3); }

.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover::before { transform: scaleX(1); }

.card__thumbnail {
  aspect-ratio: 16/9; overflow: hidden;
}
.card__thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__thumbnail img { transform: scale(1.04); }

.card__body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }

.card__meta   { margin-bottom: 0.8rem; }
.card__title  { font-size: 1.4rem; margin-bottom: 0.6rem; }
.card__title a { color: var(--cream); }
.card__title a:hover { color: var(--gold); }
.card__excerpt { font-size: 0.85rem; color: var(--mist); line-height: 1.7; flex: 1; }
.card__link {
  display: inline-block; margin-top: 1.2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 0.2rem;
  transition: border-color 0.2s;
}
.card__link:hover { border-color: var(--gold); color: var(--gold-light); }

/* City cards (full-height homepage blocks) */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(201,168,76,0.08);
  margin-top: 3rem;
}

.city-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  text-decoration: none;
}

.city-card__bg {
  position: absolute; inset: 0;
  background: var(--night-2);
  transition: transform 0.5s ease;
}
.city-card:hover .city-card__bg { transform: scale(1.03); }

.city-card__img {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.35; transition: opacity 0.4s;
}
.city-card:hover .city-card__img { opacity: 0.5; }

.city-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,18,0.95) 0%, transparent 60%);
}

.city-card__content { position: relative; z-index: 1; }
.city-card__days    { margin-bottom: 0.5rem; }
.city-card__name    { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; color: var(--cream); margin-bottom: 0.5rem; }
.city-card__desc    { font-size: 0.8rem; color: var(--mist); line-height: 1.6; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2px;
  background: rgba(201,168,76,0.08);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 0.8; }

.gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,18,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__icon { color: var(--gold); font-size: 1.5rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13,13,18,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none; color: var(--cream);
  font-size: 2rem; cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero { min-height: 50vh; }

.post-body {
  max-width: 740px; margin: 0 auto; padding: 4rem 6vw;
}
.post-body h2, .post-body h3 { margin: 2.5rem 0 1rem; }
.post-body p  { color: var(--mist); line-height: 1.85; margin-bottom: 1.5rem; }
.post-body img { margin: 2rem 0; border: 1px solid rgba(201,168,76,0.1); }
.post-body blockquote {
  border-left: 2px solid var(--gold); padding-left: 1.5rem;
  margin: 2rem 0; font-style: italic;
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  color: var(--cream); line-height: 1.5;
}
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-body li { color: var(--mist); margin-bottom: 0.5rem; font-size: 0.95rem; }

.post-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* ============================================================
   TAGS & CATEGORIES
   ============================================================ */
.tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(201,168,76,0.3); color: var(--gold);
  transition: background 0.2s, border-color 0.2s;
}
.tag:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); color: var(--gold-light); }
.tag.jade { border-color: rgba(42,155,130,0.4); color: var(--jade-light); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 4rem 6vw;
}

.sidebar { display: flex; flex-direction: column; gap: 2.5rem; }

.widget { }
.widget-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.widget ul { list-style: none; }
.widget ul li {
  padding: 0.6rem 0; border-bottom: 1px solid rgba(201,168,76,0.06);
  font-size: 0.85rem; color: var(--mist);
}
.widget ul li a { color: var(--mist); transition: color 0.2s; }
.widget ul li a:hover { color: var(--gold); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 3rem 6vw;
}
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  border: 1px solid rgba(201,168,76,0.2); color: var(--mist);
  transition: all 0.2s;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--gold); border-color: var(--gold); color: var(--night);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 4rem 6vw 3rem;
  border-top: 1px solid rgba(201,168,76,0.1);
  margin-top: 5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300;
  color: rgba(201,168,76,0.3);
}

.footer-col h4 {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a  { font-size: 0.85rem; color: var(--mist); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(201,168,76,0.06);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; color: var(--mist); opacity: 0.4; margin: 0; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { max-width: 740px; margin: 0 auto; padding: 0 6vw 4rem; }
.comments-title { font-size: 1.5rem; margin-bottom: 2rem; }

.comment-body { padding: 1.5rem 0; border-bottom: 1px solid rgba(201,168,76,0.08); }
.comment-author b { color: var(--cream); font-size: 0.9rem; }
.comment-meta { font-family: 'DM Mono', monospace; font-size: 0.55rem; color: var(--mist); opacity: 0.5; margin-bottom: 0.8rem; }

.comment-form input,
.comment-form textarea {
  width: 100%; background: var(--night-2); border: 1px solid rgba(201,168,76,0.15);
  color: var(--cream); padding: 0.8rem 1rem; font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; margin-bottom: 1rem; outline: none;
  transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--gold); }

.comment-form textarea { height: 140px; resize: vertical; }

.btn {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.9rem 2rem; cursor: pointer;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); transition: all 0.25s;
}
.btn:hover { background: var(--gold); color: var(--night); }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display: flex; gap: 0; }
.search-field {
  flex: 1; background: var(--night-2); border: 1px solid rgba(201,168,76,0.15);
  border-right: none; color: var(--cream); padding: 0.7rem 1rem;
  font-family: 'Outfit', sans-serif; outline: none;
}
.search-submit { background: var(--gold); border: 1px solid var(--gold); color: var(--night); padding: 0 1rem; cursor: pointer; font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .city-grid     { grid-template-columns: 1fr 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav   { display: none; flex-direction: column; position: fixed; inset: 0; background: var(--night); justify-content: center; align-items: center; gap: 2rem; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; letter-spacing: 0.1em; }
  .nav-toggle { display: flex; z-index: 200; }
  .city-grid  { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .home-hero__meta { gap: 1.5rem; }
}
