/*
Theme Name: Astra Child alatishop
Template: astra
Version: 1.0.0
*/

:root {
  /* Brand */
  --accent: #D72638;
  --accent-hover: #FF3A4D;
  /* Light surface sistem (DEFAULT svuda osim home hero / footer) */
  --bg: #ffffff;
  --bg-soft: #f5f5f4;
  --surface-card: #ffffff;
  --text: #1a1a1d;
  --text-muted: #5b5b61;
  --border: #e6e6e3;
  /* Dark izuzeci (hero / footer) */
  --dark-bg: #0A0A0A;
  --dark-text: #ffffff;
  /* Legacy (dark-context klase: .alatishop-hero/-cta/-tagline) */
  --bg-primary: #0A0A0A;
  --bg-secondary: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
}

/* DEFAULT površina = SVETLA. Home forsira dark preko sopstvenog inline <style> (front-page.php). */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Svetli solid header (svuda osim home — home override u front-page.php inline) ── */
.ast-primary-header-bar,
.main-header-bar,
#masthead .main-header-bar { background: #ffffff !important; border-bottom: 1px solid var(--border); }
.site-title, .site-title a { color: var(--text) !important; }
.main-header-bar .main-navigation .menu-link,
.ast-builder-menu .menu-link { color: var(--text) !important; font-weight: 600; }
.main-header-bar .main-navigation .menu-link:hover,
.ast-builder-menu .menu-item:hover > .menu-link,
.ast-builder-menu .current-menu-item > .menu-link { color: var(--accent) !important; }
/* dropdown (Prodavnica) — bela, crn tekst */
.ast-builder-menu .sub-menu { background: #fff !important; border: 1px solid var(--border); }
.ast-builder-menu .sub-menu .menu-link { color: var(--text) !important; }
.ast-builder-menu .sub-menu .menu-link:hover { color: var(--accent) !important; background: var(--bg-soft); }

.alatishop-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.alatishop-cta {
  background: var(--accent);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.alatishop-cta:hover {
  background: var(--accent-hover);
}

/* Category section + inner grid */
.alatishop-categories {
  padding: 48px 24px;
}

.alatishop-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.alatishop-category-card {
  transition: transform 0.2s ease, border 0.2s ease;
  border: 1px solid transparent;
}

.alatishop-category-card:hover {
  transform: translateY(-4px);
  border: 1px solid var(--accent);
}

/* Hero typography helpers */
.alatishop-hero-content {
  max-width: 900px;
  text-align: center;
  padding: 24px;
}

.alatishop-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
}

.alatishop-hero-tagline {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 24px 0 32px;
}

/* ── Standardne content stranice (legal / O nama / Kontakt / blog) ──
   body{color:#fff} je za dark L3 home/shop; ovde Astra daje belu pozadinu,
   pa bi beli tekst bio nevidljiv. .entry-content imaju SAMO standardne stranice
   (custom L3 templejti koriste .als-l3), pa je scope bezbedan. */
.entry-content {
  color: #2a2a2e;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 820px;
}
.entry-content p,
.entry-content li,
.entry-content ul,
.entry-content ol,
.entry-content strong,
.entry-content em { color: #2a2a2e; }
.entry-content h2 { color: #0A0A0A; font-weight: 900; margin-top: 1.6em; }
.entry-content h3 { color: #0A0A0A; font-weight: 700; margin-top: 1.3em; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content a:hover { color: var(--accent-hover); }
/* Naslov stranice (Astra entry-title) takođe taman na beloj */
.ast-single-post .entry-title,
.page .entry-title,
.ast-archive-description .ast-archive-title { color: #0A0A0A; }

/* Mobile-first responsive */
@media (max-width: 768px) {
  .alatishop-hero {
    min-height: 60vh;
    padding: 24px;
    text-align: center;
  }
  .alatishop-categories-grid {
    grid-template-columns: 1fr;
  }
  .alatishop-cta {
    display: block;
    text-align: center;
    margin: 8px auto;
    max-width: 320px;
  }
}
