/*
Theme Name: Astra Child - AlbanianBlogger
Theme URI: https://albanianblogger.com
Description: Custom child theme for AlbanianBlogger.com Tourism Hub - Mediterranean Editorial design
Author: Elvis Plaku / Sfida.PRO
Author URI: https://sfida.pro
Template: astra
Version: 1.0.0
Text Domain: astra-child-albanianblogger
*/

/* ========================================
   AlbanianBlogger Design System
   Mediterranean Editorial Meets Eastern European Grit
   ======================================== */

:root {
  /* Color Palette */
  --albanian-red: 352 78% 50%;      /* #E41E20 */
  --warm-ochre: 42 78% 46%;         /* #D4A017 */
  --deep-charcoal: 240 3% 11%;      /* #1C1C1E */
  --warm-white: 40 33% 97%;         /* #FAF8F4 */
  --soft-stone: 36 17% 92%;         /* #F0EDE6 */
  --teal-accent: 180 49% 32%;       /* #2A7B7B */
  --muted-gold: 40 88% 41%;         /* #C8960C */
  --brand-red: #E41E20;
  --brand-red-dark: #C41518;
  --brand-charcoal: #1C1C1E;
  --brand-teal: #2A7B7B;
  --brand-ochre: #D4A017;
  --brand-gold: #C8960C;
  --brand-white: #FAF8F4;
  --brand-stone: #F0EDE6;
}

/* Base styles */
body {
  background-color: var(--brand-white) !important;
  color: #2D2D2D;
}

a {
  color: var(--brand-teal);
  transition: color 0.2s;
}
a:hover {
  color: var(--brand-red);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-charcoal);
}

/* ========================================
   Typography Classes
   ======================================== */
.font-display {
  font-family: "Playfair Display", Georgia, serif;
}
.font-heading {
  font-family: "DM Serif Display", Georgia, serif;
}
.font-body {
  font-family: "Source Serif 4", Georgia, serif;
}
.font-ui {
  font-family: "DM Sans", system-ui, sans-serif;
}
.font-accent {
  font-family: "Lora", serif;
  font-style: italic;
}

/* ========================================
   Section Labels
   ======================================== */
.section-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: block;
  margin-bottom: 12px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red);
  color: var(--brand-white) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  color: var(--brand-white) !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-red) !important;
  border: 2px solid var(--brand-red);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--brand-red);
  color: var(--brand-white) !important;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gold);
  color: var(--brand-white) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-gold-outlined {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-gold) !important;
  border: 2px solid var(--brand-gold);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outlined-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.5);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outlined-white:hover {
  border-color: white;
  color: white !important;
}

.btn-white-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--brand-red) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

/* ========================================
   Cards
   ======================================== */
.card-article {
  background: var(--brand-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28,28,30,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-article:hover {
  box-shadow: 0 8px 32px rgba(28,28,30,0.14);
  transform: translateY(-3px);
}

.card-dark {
  background: var(--brand-charcoal);
  border-radius: 8px;
  overflow: hidden;
}

.card-overlay {
  background: linear-gradient(to top, rgba(28,28,30,0.85) 0%, rgba(28,28,30,0.2) 50%, transparent 100%);
}

/* ========================================
   Category Pills
   ======================================== */
.pill-category {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}
.pill-red {
  background: var(--brand-red);
  color: white;
}
.pill-teal {
  background: var(--brand-teal);
  color: white;
}
.pill-ochre {
  background: var(--brand-ochre);
  color: white;
}
.pill-gold {
  background: var(--brand-gold);
  color: white;
}

/* ========================================
   Audience Pills (Hero)
   ======================================== */
.audience-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}
.audience-pill:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: scale(1.05);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-overlay {
  background: linear-gradient(to top, rgba(28,28,30,0.8) 0%, rgba(28,28,30,0.3) 50%, rgba(28,28,30,0.1) 100%);
}

/* ========================================
   Local Tip Callout
   ======================================== */
.local-tip {
  background: hsl(var(--warm-ochre) / 0.15);
  border-left: 4px solid var(--brand-ochre);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
  margin: 32px 0;
}
.local-tip::before {
  content: "Local tip";
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-charcoal);
  display: block;
  margin-bottom: 8px;
}
.local-tip p {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--brand-charcoal);
  margin: 0;
}

/* ========================================
   Animations
   ======================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-bounce-down {
  animation: bounceDown 2s infinite;
}

/* ========================================
   Mobile Navigation Overlay
   ======================================== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--brand-charcoal);
  overflow-y: auto;
}
.mobile-nav-overlay.active {
  display: block;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}


/* Hide Astra default footer (we use custom footer in page content) */
.site-footer { display: none !important; }

/* Header navigation styling */
.main-header-bar {
  background: var(--ab-charcoal) !important;
  border-bottom: none !important;
}
.main-header-bar .site-branding .site-title { display: none; }
.main-header-bar .site-branding .custom-logo { max-height: 50px; }
.main-header-bar .main-navigation a {
  color: var(--ab-warm-white) !important;
  font-family: var(--font-ui) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}
.main-header-bar .main-navigation a:hover {
  color: var(--ab-gold) !important;
}


/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {

  /* Hero */
  .ab-hero { min-height: 70vh !important; }
  .ab-hero h1 { font-size: 3rem !important; }
  .ab-hero-content { padding: 40px !important; }

  /* Audience Cards: 2x2 grid */
  .ab-audience-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Map: stack vertically */
  .ab-map-grid { grid-template-columns: 1fr !important; min-height: auto !important; }

  /* Featured: stack */
  .ab-featured-grid { grid-template-columns: 1fr !important; }

  /* Tours: 2+1 */
  .ab-tours-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Products: stack */
  .ab-products-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* About Elvis: stack */
  .ab-about-inner { flex-direction: column !important; text-align: center; gap: 32px !important; }
  .ab-about-portrait { margin: 0 auto; }

  /* Footer: 2x2 */
  .ab-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* General section padding */
  section { padding-left: 32px !important; padding-right: 32px !important; }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

  /* Hero */
  .ab-hero { min-height: 80vh !important; }
  .ab-hero h1 { font-size: 2.2rem !important; line-height: 1.15 !important; }
  .ab-hero-content { padding: 30px 20px !important; }
  .ab-hero p { font-size: 1rem !important; }
  .ab-audience-pills { gap: 8px !important; }
  .ab-audience-pill { padding: 8px 14px !important; font-size: 12px !important; }
  .ab-scroll-indicator { display: none !important; }

  /* Section headings */
  .entry-content h2 { font-size: 1.7rem !important; line-height: 1.25 !important; }

  /* Audience Cards: single column */
  .ab-audience-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Featured side: single column */
  .ab-featured-side { grid-template-rows: auto auto !important; gap: 16px !important; }

  /* Tours: single column */
  .ab-tours-grid { grid-template-columns: 1fr !important; }

  /* Community CTA */
  .ab-community-buttons { flex-direction: column !important; align-items: center !important; }
  .ab-community-buttons a { width: 80%; text-align: center; justify-content: center; }

  /* About portrait */
  .ab-about-portrait { width: 150px !important; height: 150px !important; }

  /* Footer: single column */
  .ab-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; text-align: center; }
  .ab-footer-bottom { flex-direction: column !important; text-align: center !important; }

  /* Section padding */
  section { padding-left: 20px !important; padding-right: 20px !important; }
  div[style*="padding: 80px"] { padding: 40px 20px !important; }
  div[style*="padding: 100px"] { padding: 50px 20px !important; }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {

  .ab-hero h1 { font-size: 1.7rem !important; }
  .ab-hero p { font-size: 0.85rem !important; }
  .ab-audience-pill { padding: 6px 12px !important; font-size: 11px !important; }

  .entry-content h2 { font-size: 1.4rem !important; }
  .entry-content h3 { font-size: 1.1rem !important; }

  .btn-primary, .btn-secondary, .btn-gold, .btn-gold-outlined,
  .btn-outlined-white, .btn-white-red {
    padding: 12px 20px !important;
    font-size: 14px !important;
    width: 100%;
    justify-content: center;
  }

  .ab-community-buttons a { width: 90%; }
}
