/* High Tours Theme - Warm, Wanderlust-Inspired */

:root {
  --bg-primary: #fdf7f0;
  --bg-secondary: #fffaf2;
  --bg-tertiary: #fff1e3;
  --text-primary: #2f241f;
  --text-secondary: #5b4a42;
  --text-muted: #7a6a60;
  --accent-coral: #e07a5f;
  --accent-sunset: #f4a261;
  --accent-olive: #2a9d8f;
  --accent-deep: #264653;
  --link-color: #d86a4a;
  --link-hover: #c15d3f;
  --border-color: #f0e1d3;
  --card-shadow: 0 18px 40px -30px rgba(74, 50, 37, 0.45);
  --soft-shadow: 0 12px 24px -18px rgba(74, 50, 37, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #fff9f1 0%, #fdf7f0 45%, #f8efe7 100%);
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  font-size: 16px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(224, 122, 95, 0.12) 0, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(42, 157, 143, 0.12) 0, transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(244, 162, 97, 0.12) 0, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HEADER ===== */
.site-header {
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px -18px rgba(74, 50, 37, 0.4);
}

.article-header {
  position: static;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.logo-text {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--accent-deep);
  text-decoration: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-coral);
  transition: width 0.2s ease;
}

nav a:hover {
  color: var(--accent-deep);
}

nav a:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.02);
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 34, 49, 0.65) 0%, rgba(62, 40, 27, 0.55) 60%, rgba(224, 122, 95, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 2rem 2.5rem;
  color: #fff;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}

.hero h1 span {
  color: var(--accent-sunset);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 1.75rem;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .cta-primary {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-sunset) 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(224, 122, 95, 0.4);
}

.hero-actions .cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-actions a:hover {
  transform: translateY(-2px);
}

/* ===== MAIN LAYOUT ===== */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

main {
  min-width: 0;
}

/* ===== ARTICLE CARDS ===== */
.articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.9rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 45px -25px rgba(74, 50, 37, 0.45);
}

.article-card h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.55rem;
  line-height: 1.3;
}

.article-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--accent-deep);
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-summary {
  color: var(--text-secondary);
  margin: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(224, 122, 95, 0.12);
  color: var(--accent-coral);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.read-more:hover {
  background: rgba(224, 122, 95, 0.2);
  color: var(--accent-deep);
}

/* ===== FULL ARTICLE ===== */
article.full,
.article-full {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.8rem;
  box-shadow: var(--soft-shadow);
  margin-bottom: 2.5rem;
}

article.full h1,
.article-full .article-title {
  color: var(--text-primary);
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

article.full .article-meta,
.article-full .article-meta {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.article-content {
  color: var(--text-secondary);
}

.article-content h2 {
  color: var(--accent-deep);
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem 0;
}

.article-content h3 {
  color: var(--accent-olive);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem 0;
}

.article-content p {
  margin: 0 0 1.25rem 0;
}

.article-content a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.article-content a:hover {
  border-bottom-color: var(--link-color);
}

.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  background: #f6e6db;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  color: var(--accent-deep);
}

.article-content pre {
  background: #f6e6db;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 1.5rem 0;
  border: 1px solid var(--border-color);
}

.article-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-coral);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: var(--soft-shadow);
}

/* ===== TAG PAGE ===== */
.tag-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  color: var(--text-primary);
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.tag-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

.page-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 840px;
  margin: 0 auto;
}

.tag-nav {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.back-link {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-olive);
}

/* ===== ARTICLE FOOTER ===== */
.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-share a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.article-share a:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

/* ===== TAGS ===== */
.tags,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tag {
  background: rgba(224, 122, 95, 0.08);
  color: var(--accent-coral);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(224, 122, 95, 0.3);
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(224, 122, 95, 0.18);
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

/* ===== SIDEBAR ===== */
aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.sidebar-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--soft-shadow);
}

.sidebar-section h3 {
  color: var(--accent-deep);
  font-size: 1rem;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-section li {
  margin-bottom: 0.6rem;
}

.sidebar-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-section a:hover {
  color: var(--accent-coral);
}

/* ===== AD SPACE ===== */
.ad-placeholder {
  background: var(--bg-tertiary);
  border: 1px dashed #e6cdbd;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.ad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-secondary);
}

.pagination a:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

/* ===== FOOTER ===== */
footer,
.site-footer {
  background: var(--accent-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.01em;
}

.footer-section p {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
  font-size: 0.875rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-section li a:hover {
  color: var(--accent-sunset);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.25rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

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

@media (max-width: 700px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  aside {
    order: 1;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .site-header .header-container {
    flex-direction: column;
  }

  nav a {
    margin: 0 0.75rem;
  }

  .hero {
    min-height: 420px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  article.full,
  .article-full {
    padding: 1.75rem;
  }

  article.full h1,
  .article-full .article-title {
    font-size: 1.9rem;
  }

  .tag-page {
    padding: 2rem 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}
