/*
Theme Name: Hidden Travel Spots
Theme URI: https://hiddentravelspots.com/
Author: Hidden Travel Spots Media Group
Author URI: https://hiddentravelspots.com/about/
Description: A high-performance, AdSense-optimized WordPress magazine theme built for unique travel destinations, hidden vacation spots, and natural wonders. Features built-in Google AdSense slots, Schema markup, Automated Location Photography Engine, and AI Studio writer.
Version: 1.5.2
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wanderunseen
Tags: travel, magazine, grid-layout, custom-menu, featured-images, seo-ready, adsense-optimized
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Brand Palette */
  --color-primary: #0A192F;       /* Deep Midnight Obsidian */
  --color-primary-light: #172A45;
  --color-secondary: #0D9488;     /* Bioluminescent Teal / Emerald */
  --color-secondary-light: #14B8A6;
  --color-accent: #E27D60;        /* Sunset Terracotta / Gold */
  --color-accent-hover: #D66749;
  --color-gold: #F59E0B;
  
  /* Neutral Palette */
  --color-bg: #F8FAFC;            /* Clean Sand White */
  --color-surface: #FFFFFF;
  --color-surface-hover: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;
  
  /* Text Palette */
  --color-text-main: #0F172A;     /* Slate 900 */
  --color-text-muted: #64748B;    /* Slate 500 */
  --color-text-subtle: #94A3B8;
  
  /* Ad Slots & Trust */
  --ad-bg: #F1F5F9;
  --ad-border: #CBD5E1;
  --ad-label: #94A3B8;
  
  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --max-width: 1280px;
  --max-content: 840px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: #334155;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.site-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .site-main-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

/* ==========================================================================
   TOP BAR & NOTICE
   ========================================================================== */
.top-notice-bar {
  background: var(--color-primary);
  color: #E2E8F0;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-notice-pill {
  background: var(--color-secondary);
  color: #FFFFFF;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  display: inline-block;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin: 0;
  font-family: var(--font-body);
}

.site-title span {
  color: var(--color-secondary);
}

.site-tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

/* Navigation Links */
.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--color-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226, 125, 96, 0.35);
}

/* ==========================================================================
   ADSENSE UNITS & CONTAINERS
   ========================================================================== */
.adsense-slot-wrapper {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 100%;
}

.adsense-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ad-label);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.adsense-box {
  background: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 90px;
  color: #64748B;
  font-size: 0.8125rem;
}

.adsense-header-leaderboard {
  max-width: 728px;
  min-height: 90px;
  margin: 1.25rem auto 0 auto;
}

.adsense-in-article {
  max-width: 100%;
  min-height: 250px;
  margin: 2.25rem 0;
}

.adsense-sidebar-unit {
  min-height: 300px;
  width: 100%;
}

/* ==========================================================================
   HERO EDITORIAL SPOTLIGHT
   ========================================================================== */
.hero-spotlight {
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: var(--color-primary);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.6s ease;
}

.hero-spotlight:hover .hero-bg-img {
  transform: scale(1.02);
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.1) 0%, rgba(10, 25, 47, 0.75) 60%, rgba(10, 25, 47, 0.98) 100%);
  pointer-events: none;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title a:hover {
  color: #99F6E4;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: #CBD5E1;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   DESTINATION FILTER & TABS
   ========================================================================== */
.destination-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1.25rem 0 0.5rem 0;
  scrollbar-width: none;
}

.destination-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   POST CARDS & GRIDS
   ========================================================================== */
.posts-grid-primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .posts-grid-primary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.travel-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.travel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.travel-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E2E8F0;
}

.travel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.travel-card:hover .travel-card-media img {
  transform: scale(1.05);
}

.card-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.travel-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.travel-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.travel-card-title a {
  color: var(--color-primary);
}

.travel-card-title a:hover {
  color: var(--color-secondary);
}

.travel-card-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.card-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-secondary);
  display: inline-block;
}

/* Author Box Widget */
.author-widget-card {
  text-align: center;
}

.author-widget-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  border: 3px solid var(--color-secondary);
  padding: 2px;
}

.author-widget-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.author-widget-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.author-widget-bio {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Trending List Widget */
.trending-post-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.trending-post-item:last-child {
  margin-bottom: 0;
}

.trending-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #CBD5E1;
  line-height: 1;
  min-width: 24px;
}

.trending-post-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.trending-post-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Sticky Ad Widget */
.widget-sticky-ad {
  position: sticky;
  top: 96px;
}

/* ==========================================================================
   SINGLE POST LAYOUT & TYPOGRAPHY
   ========================================================================== */
.single-post-container {
  max-width: var(--max-content);
  margin: 0 auto;
}

.breadcrumb-nav {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb-nav a {
  color: var(--color-text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--color-secondary);
}

.single-post-header {
  margin-bottom: 2rem;
}

.single-post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0.75rem 0 1.25rem 0;
  color: var(--color-primary);
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.single-featured-media {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.single-featured-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.media-caption {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.5rem 0;
  font-style: italic;
}

/* Article Body Content */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1E293B;
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--color-secondary);
  background: #F0FDFA;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: #134E4A;
}

/* Pro Travel Callout Box */
.travel-tip-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 5px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.travel-tip-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #92400E;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FAQ Accordion Section for Schema */
.faq-section-wrapper {
  margin: 3rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   NEWSLETTER SUBSCRIPTION BOX
   ========================================================================== */
.newsletter-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1E3A8A 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  color: #FFFFFF;
  text-align: center;
  margin: 3.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-title {
  color: #FFFFFF;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.newsletter-desc {
  color: #CBD5E1;
  max-width: 580px;
  margin: 0 auto 1.75rem auto;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
  outline: none;
}

.newsletter-input:focus {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary);
  color: #94A3B8;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-heading {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.ad-disclosure-text {
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.5;
  margin-top: 0.5rem;
}
