/*
Theme Name: OLA World
Theme URI: https://ola-world.com
Author: OLA World
Description: Custom travel blog theme for OLA World - fast, clean, AdSense ready
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ola-world
*/

/* ===== CSS VARIABLES ===== */
:root {
  --purple-deep:   #3D0FA0;
  --purple-main:   #5B21F5;
  --purple-mid:    #7C3AED;
  --purple-light:  #A78BFA;
  --cyan:          #00C8FF;
  --pink:          #E040FB;
  --dark:          #0D0D1A;
  --dark-2:        #13132B;
  --text:          #E8E8F0;
  --text-muted:    #9090B0;
  --white:         #FFFFFF;
  --card-bg:       rgba(255,255,255,0.04);
  --border:        rgba(255,255,255,0.08);
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { color: var(--text-muted); margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 80px 0; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition);
  overflow: visible;
}

.header-inner { overflow: visible; }

.site-header.scrolled {
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img,
.site-logo .custom-logo {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain;
}

.site-logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ===== NAV ===== */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: var(--card-bg);
}

/* Dropdown */
.nav-item { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(20px);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.nav-dropdown a:hover { color: var(--white); background: var(--card-bg); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(91, 33, 245, 0.35) 0%,
    rgba(13, 13, 26, 0) 70%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 60%,
    rgba(0, 200, 255, 0.12) 0%,
    transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 100px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-main), var(--purple-mid));
  color: var(--white);
  box-shadow: 0 0 30px rgba(91, 33, 245, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(91, 33, 245, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple-light);
  color: var(--white);
}

/* ===== PULSING RINGS (category cards) ===== */
.pulse-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring-wrap::before,
.pulse-ring-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(91, 33, 245, 0.4);
  animation: pulseRing 2.5s ease-out infinite;
}

.pulse-ring-wrap::before {
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  animation-delay: 0s;
}

.pulse-ring-wrap::after {
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  animation-delay: 0.8s;
}

@keyframes pulseRing {
  0%   { opacity: 0.8; transform: scale(0.9); }
  100% { opacity: 0;   transform: scale(1.2); }
}

/* ===== CATEGORY SECTION ===== */
.categories-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--purple-main);
  background: rgba(91, 33, 245, 0.08);
  transform: translateY(-4px);
}

.category-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 2px solid var(--border);
}

.category-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.category-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== POSTS GRID ===== */
.posts-section { padding: 80px 0; }

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

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(91, 33, 245, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(91, 33, 245, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

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

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

.post-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--white);
  transition: color var(--transition);
}

.post-card:hover h3 { color: var(--purple-light); }

.post-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: gap var(--transition);
}

.post-card-link:hover { gap: 0.6rem; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 3rem; }

/* ===== SINGLE POST ===== */
.single-post { padding-top: 120px; }

.post-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,0.9) 0%, transparent 60%);
}

.post-hero-content {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  padding: 0 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.post-content-wrap {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { color: var(--text); margin-bottom: 1.25rem; }
.post-content img { border-radius: var(--radius); margin: 2rem 0; }
.post-content a { color: var(--purple-light); border-bottom: 1px solid rgba(167,139,250,0.3); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

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

.footer-brand p { font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }

.footer-nav h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-links { display: flex; gap: 0.75rem; }

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.875rem;
}

.social-links a:hover {
  border-color: var(--purple-main);
  color: var(--white);
  background: rgba(91, 33, 245, 0.15);
}

/* ===== CLAUDE AI ADMIN PANEL ===== */
#claude-admin-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: none;
}

body.logged-in #claude-admin-panel { display: block; }

.claude-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-main), var(--cyan));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(91, 33, 245, 0.5);
  transition: transform var(--transition);
}

.claude-toggle:hover { transform: scale(1.1); }

.claude-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 360px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.claude-panel.open { display: block; }

.claude-panel h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
}

.claude-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }

.claude-action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.875rem;
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.claude-action-btn:hover {
  border-color: var(--purple-main);
  color: var(--white);
}

.claude-input-wrap { display: flex; gap: 0.5rem; }

.claude-input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.875rem;
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.claude-input:focus { outline: none; border-color: var(--purple-main); }

.claude-send {
  background: var(--purple-main);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
}

.claude-send:hover { background: var(--purple-mid); }

.claude-response {
  margin-top: 1rem;
  padding: 0.875rem;
  background: var(--card-bg);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.6;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

/* ===== SEARCH ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.search-overlay.open { opacity: 1; visibility: visible; }

.search-inner { width: 100%; max-width: 640px; padding: 2rem; }

.search-input-big {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--purple-main);
  font-size: 2rem;
  color: var(--white);
  font-family: var(--font-display);
  padding: 1rem 0;
  outline: none;
}

.search-input-big::placeholder { color: var(--text-muted); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeUp 0.6s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }

  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    padding: 5rem 2rem 2rem;
    align-items: flex-start;
    gap: 0.5rem;
    z-index: 999;
  }

  .main-nav.mobile-open a { font-size: 1.25rem; padding: 0.75rem 0; }

  .posts-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }

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

  .claude-panel { width: 300px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ===== ADBLOCK / ADSENSE FRIENDLY ===== */
.ad-slot {
  display: block;
  margin: 2rem auto;
  text-align: center;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--purple-main);
  outline-offset: 3px;
}

/* Hide search button in mobile menu */
@media (max-width: 768px) {
  .main-nav.mobile-open .search-btn {
    display: none;
  }
}

/* Mobile: Travel to submenu as inline accordion */
@media (max-width: 768px) {
  .main-nav.mobile-open .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0 0 0 1.25rem;
    min-width: 0;
  }
  .main-nav.mobile-open .nav-dropdown a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}

/* Fix: readable buttons inside legacy light widgets in post content */
.post-content button,
.post-content input[type="button"],
.post-content .wp-block-button__link {
  color: #13132B !important;
}

/* Fix: decision-tree option divs in articles */
.post-content .option {
  color: #13132B !important;
}
