/*
Theme Name: GalyaCambodia
Theme URI: https://galyacambodia.com
Description: Personal Cambodia guide by Galya — tour guide in Siem Reap.
Version: 2.0.0
Author: GalyaCambodia
Text Domain: galya
*/
/* All styles are in Tailwind CDN + inline on front-page.
   Additional WP-specific styles below. */

/* ── FONTS ── */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&f[]=general-sans@400,500,600,700&display=swap');

:root {
  --ink:    #0E2A2B;
  --teal:   #0F766E;
  --teal-d: #0B5C55;
  --coral:  #FF6B4A;
  --coral-d:#E8543A;
  --cream:  #FAF6F0;
  --sand:   #F2EBE0;
  --gold:   #E0A23D;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'General Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.clash-title { font-family: 'Clash Display', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── SUPPORT RAIL (only one, desktop left) ── */
#galya-support-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: #fff;
  padding: 14px 7px;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 8px 32px rgba(14,42,43,.2);
  text-decoration: none;
  transition: background .18s;
}
#galya-support-rail:hover { background: var(--coral-d); }
#galya-support-rail .rail-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
@media (min-width: 768px) { #galya-support-rail { display: flex; } }

/* mobile float heart */
#galya-float-heart {
  position: fixed;
  bottom: 84px;
  left: 16px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(14,42,43,.2);
  text-decoration: none;
}
@media (min-width: 768px) { #galya-float-heart { display: none; } }

/* ── DRAWER ── */
#galya-drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14,42,43,.6);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
#galya-drawer-overlay.open { opacity: 1; pointer-events: auto; }

#galya-drawer {
  position: fixed; top: 0; right: 0; z-index: 201;
  height: 100%; width: 300px; max-width: 88vw;
  background: var(--cream);
  box-shadow: -4px 0 40px rgba(14,42,43,.15);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
#galya-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
  border-bottom: 1px solid var(--sand);
  flex-shrink: 0;
}
.drawer-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  font-size: .95rem; font-weight: 500;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.drawer-nav a:hover { background: rgba(15,118,110,.1); color: var(--teal); }
.drawer-nav .drawer-support {
  background: rgba(255,107,74,.1); color: var(--coral); font-weight: 700;
  margin-top: 4px;
}
.drawer-nav .drawer-support:hover { background: var(--coral); color: #fff; }

/* ── VIDEO MODAL ── */
#galya-video-modal {
  position: fixed; inset: 0;
  background: rgba(14,42,43,.92);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
#galya-video-modal.open { display: flex; }
.galya-modal-inner {
  width: 100%; max-width: 900px;
  border-radius: 16px; overflow: hidden;
  position: relative; aspect-ratio: 16/9; background: #000;
}
.galya-modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2); border: none; border-radius: 50%;
  cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background .15s;
}
.galya-modal-close:hover { background: var(--coral); }
#galya-video-iframe { width: 100%; height: 100%; border: none; }

/* ── TOAST ── */
#galya-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 12px;
  font-size: .88rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 400;
  white-space: nowrap;
}

/* ── SCROLL TOP ── */
#galya-scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--coral); color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(14,42,43,.2);
  opacity: 0; transform: translateY(16px);
  transition: all .3s; pointer-events: none; z-index: 50;
}
#galya-scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#galya-scroll-top:hover { background: var(--coral-d); }

/* ── NOVOSTI (blog) ── */
.galya-post-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
@media (min-width: 640px) { .galya-post-grid { padding-left: 28px; padding-right: 28px; } }
@media (min-width: 768px) { .galya-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .galya-post-grid { grid-template-columns: repeat(3, 1fr); padding-left: 40px; padding-right: 40px; } }

.galya-post-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 16px rgba(14,42,43,.06);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.galya-post-card:hover { box-shadow: 0 10px 40px rgba(14,42,43,.13); transform: translateY(-2px); }

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

.galya-post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.galya-post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: rgba(14,42,43,.5); margin-bottom: 10px;
}
.galya-post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.galya-post-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.35; color: var(--ink);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.galya-post-excerpt {
  font-size: .88rem; color: rgba(14,42,43,.65); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1; margin-bottom: 14px;
}
.galya-post-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--teal);
  transition: gap .15s;
}
.galya-post-link:hover { gap: 10px; }

/* single post */
.galya-single { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.galya-single-hero { border-radius: 18px; overflow: hidden; margin-bottom: 28px; }
.galya-single-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.galya-single-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: rgba(14,42,43,.5); margin-bottom: 14px; flex-wrap: wrap; }
.galya-single h1 { font-family: 'Clash Display', sans-serif; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.galya-single .entry-content { font-size: 1rem; line-height: 1.8; color: rgba(14,42,43,.8); }
.galya-single .entry-content p { margin-bottom: 18px; }
.galya-single .entry-content h2 { font-family: 'Clash Display', sans-serif; font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.galya-single .entry-content img { border-radius: 14px; margin: 20px 0; }
.galya-single .entry-content a { color: var(--teal); text-decoration: underline; }

/* breadcrumb */
.galya-breadcrumb { font-size: .82rem; color: rgba(14,42,43,.5); margin-bottom: 20px; }
.galya-breadcrumb a { color: var(--teal); }
.galya-breadcrumb a:hover { text-decoration: underline; }

/* archive header */
.galya-archive-header {
  background: var(--ink); color: #fff;
  padding: 56px 20px 40px;
  text-align: center;
}
.galya-archive-header h1 { font-family: 'Clash Display', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
.galya-archive-header p { margin-top: 10px; opacity: .7; font-size: .97rem; }

/* page-ekskursii gallery */
.tours-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
@media (min-width: 640px) { .tours-gallery { grid-template-columns: repeat(3, 1fr); } }
.tours-gallery img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* page-ekskursii tour cards */
.tour-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 16px rgba(14,42,43,.06);
  transition: box-shadow .2s, transform .2s;
}
.tour-card:hover { box-shadow: 0 10px 40px rgba(14,42,43,.13); transform: translateY(-2px); }
.tour-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tour-card-body { padding: 20px; }
.tour-card-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(15,118,110,.1); color: var(--teal); margin-bottom: 8px; }
.tour-card-title { font-family: 'Clash Display', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.tour-card-desc { font-size: .9rem; color: rgba(14,42,43,.65); line-height: 1.65; margin-bottom: 14px; }
.tour-card-price { font-size: .88rem; font-weight: 700; color: var(--coral); }

/* WP editor styles */
.wp-block-image img { border-radius: 14px; }
