/*
 Theme Name:   GetDogVerdict - Astra Child
 Theme URI:    https://getdogverdict.com
 Description:  Professional pet product review theme for GetDogVerdict.com - Amazon Affiliate optimized
 Author:       GetDogVerdict Team
 Author URI:   https://getdogverdict.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* ============================================================
   DESIGN SYSTEM - CSS Custom Properties
   ============================================================ */
:root {
  /* Primary Palette */
  --primary: #0f2b46;
  --primary-light: #1a3a5c;
  --primary-dark: #091d30;
  --accent: #d4912a;
  --accent-hover: #b8791f;
  --accent-light: #f5deb3;

  /* Surface & Background */
  --surface: #f8fafb;
  --surface-card: #ffffff;
  --surface-elevated: #ffffff;

  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-on-dark: #e2e8f0;
  --text-on-primary: #ffffff;

  /* Semantic */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;

  /* Borders & Shadows */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15,43,70,0.05);
  --shadow-md: 0 4px 12px rgba(15,43,70,0.08);
  --shadow-lg: 0 8px 30px rgba(15,43,70,0.12);
  --shadow-xl: 0 20px 60px rgba(15,43,70,0.15);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================================
   GLOBAL RESET & BASE STYLES
   ============================================================ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-hover);
}

/* ============================================================
   AMAZON AFFILIATE DISCLOSURE TOP BAR
   ============================================================ */
.gdv-disclosure-bar {
  background: var(--primary-dark);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gdv-disclosure-bar a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212,145,42,0.3);
}
.gdv-disclosure-bar a:hover {
  text-decoration-color: var(--accent);
}

/* ============================================================
   HEADER STYLES
   ============================================================ */
.ast-primary-header-bar,
.ast-primary-header,
.ast-primary-header .ast-builder-grid-row {
  background-color: var(--primary) !important;
}

.site-header .site-title,
.site-header .site-title a {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-on-primary) !important;
  font-size: 22px !important;
  letter-spacing: -0.02em;
}

/* Golden paw accent on "Dog" */
.site-header .site-title a .gdv-highlight {
  color: var(--accent);
}

/* Navigation Links */
.ast-primary-header .menu-link,
.ast-header-break-point .ast-button-wrap .menu-toggle,
.ast-primary-header-bar .main-navigation a,
.ast-primary-header-bar .ast-builder-menu a,
.main-header-menu > .menu-item > a,
.main-header-menu .menu-item a {
  color: var(--text-on-dark) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  padding: 8px 14px !important;
  transition: color var(--transition-fast), background var(--transition-fast) !important;
  border-radius: var(--radius-sm);
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu .menu-item a:hover,
.main-header-menu > .menu-item.current-menu-item > a {
  color: var(--accent) !important;
  background: rgba(212,145,42,0.08) !important;
}

/* Dropdown Sub-menu */
.main-header-menu .sub-menu,
.ast-primary-header .sub-menu {
  background: var(--surface-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 8px 0 !important;
  min-width: 220px !important;
}
.main-header-menu .sub-menu .menu-item a {
  color: var(--text-primary) !important;
  padding: 10px 20px !important;
  font-size: 13.5px !important;
}
.main-header-menu .sub-menu .menu-item a:hover {
  background: var(--surface) !important;
  color: var(--accent) !important;
}

/* Mobile menu toggle */
.ast-mobile-menu-trigger-minimal {
  color: var(--text-on-primary) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.gdv-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3b5e 40%, #145a78 100%);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gdv-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,145,42,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.gdv-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20,90,120,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.gdv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.gdv-hero h1 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--text-on-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}
.gdv-hero h1 .gdv-gold {
  color: var(--accent);
  display: inline;
}
.gdv-hero .gdv-subtitle {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-on-dark);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  opacity: 0.9;
}
.gdv-hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.gdv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}
.gdv-btn-primary {
  background: var(--accent);
  color: var(--text-on-primary);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(212,145,42,0.35);
}
.gdv-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,145,42,0.45);
}
.gdv-btn-outline {
  background: transparent;
  color: var(--text-on-primary);
  border-color: rgba(255,255,255,0.3);
}
.gdv-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--text-on-primary);
  transform: translateY(-2px);
}

/* ============================================================
   FEATURE CARDS SECTION
   ============================================================ */
.gdv-features {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}
.gdv-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .gdv-features-grid {
    grid-template-columns: 1fr;
  }
}
.gdv-feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.gdv-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e8a840);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.gdv-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.gdv-feature-card:hover::before {
  opacity: 1;
}
.gdv-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212,145,42,0.12), rgba(212,145,42,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 24px;
}
.gdv-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.gdv-feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.gdv-section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}
.gdv-section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.gdv-section-header h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.gdv-section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}
.gdv-section-header .gdv-divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto 0;
}

/* ============================================================
   REVIEW / PRODUCT CARDS
   ============================================================ */
.gdv-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 992px) {
  .gdv-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gdv-reviews-grid {
    grid-template-columns: 1fr;
  }
}
.gdv-review-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}
.gdv-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gdv-review-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--surface), var(--border-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 40px;
}
.gdv-review-card-body {
  padding: var(--space-lg);
}
.gdv-review-card-category {
  display: inline-block;
  background: var(--info-bg);
  color: var(--info);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}
.gdv-review-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.gdv-review-card h3 a {
  color: var(--text-primary);
}
.gdv-review-card h3 a:hover {
  color: var(--accent);
}
.gdv-review-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}
.gdv-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
}
.gdv-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--success);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.gdv-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .gdv-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gdv-category-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}
.gdv-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.gdv-category-card .gdv-cat-icon {
  font-size: 36px;
  margin-bottom: var(--space-md);
  display: block;
}
.gdv-category-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.gdv-category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   PROS / CONS BOXES (for review posts)
   ============================================================ */
.gdv-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
@media (max-width: 600px) {
  .gdv-pros-cons {
    grid-template-columns: 1fr;
  }
}
.gdv-pros, .gdv-cons {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.gdv-pros {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}
.gdv-cons {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}
.gdv-pros h4 {
  color: var(--success);
  margin-top: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gdv-cons h4 {
  color: var(--danger);
  margin-top: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gdv-pros ul, .gdv-cons ul {
  margin: 0;
  padding-left: 20px;
}
.gdv-pros li { color: #15803d; }
.gdv-cons li { color: #b91c1c; }

/* ============================================================
   AMAZON PRODUCT TABLE
   ============================================================ */
.gdv-product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.gdv-product-table thead tr {
  background: var(--primary);
  color: var(--text-on-primary);
}
.gdv-product-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gdv-product-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  vertical-align: middle;
}
.gdv-product-table tbody tr {
  background: var(--surface-card);
  transition: background var(--transition-fast);
}
.gdv-product-table tbody tr:hover {
  background: var(--surface);
}
.gdv-product-table tbody tr:last-child td {
  border-bottom: none;
}
.gdv-amazon-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text-on-primary) !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}
.gdv-amazon-btn:hover {
  background: var(--accent-hover);
  color: var(--text-on-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(212,145,42,0.3);
}

/* ============================================================
   ARTICLE DISCLOSURE BOX
   ============================================================ */
.gdv-article-disclosure {
  background: var(--info-bg);
  border-left: 4px solid var(--info);
  padding: 14px 20px;
  margin-bottom: var(--space-xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.gdv-article-disclosure strong {
  color: var(--text-primary);
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */
.site-footer,
.ast-footer,
.ast-primary-footer,
.ast-primary-footer .ast-builder-grid-row,
footer.site-footer {
  background-color: var(--primary) !important;
  color: var(--text-on-dark) !important;
}
.ast-primary-footer .widget-title,
.ast-footer .widget-title,
footer .widget-title,
.site-footer .widget-title {
  color: var(--text-on-primary) !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: var(--space-md) !important;
  padding-bottom: var(--space-sm) !important;
  border-bottom: 2px solid var(--accent) !important;
  display: inline-block !important;
}
.ast-primary-footer a,
.ast-footer a,
footer a,
.site-footer a {
  color: var(--text-muted) !important;
  transition: color var(--transition-fast) !important;
}
.ast-primary-footer a:hover,
.ast-footer a:hover,
footer a:hover,
.site-footer a:hover {
  color: var(--accent) !important;
}
.ast-primary-footer .widget li,
.ast-footer .widget li,
.site-footer .widget li {
  padding: 5px 0 !important;
  border: none !important;
}

/* Footer bottom bar / copyright */
.ast-footer-copyright,
.ast-small-footer,
.ast-small-footer .ast-footer-html-inner,
.site-below-footer-wrap {
  background: var(--primary-dark) !important;
  color: var(--text-muted) !important;
  font-size: 13px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

.gdv-footer-disclosure {
  background: rgba(0,0,0,0.15);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-lg);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   BLOG / ARCHIVE GRID CARDS
   ============================================================ */
.ast-separate-container .ast-article-post {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.ast-separate-container .ast-article-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ast-separate-container .ast-article-post .post-content .entry-title a {
  color: var(--text-primary);
  font-weight: 700;
}
.ast-separate-container .ast-article-post .post-content .entry-title a:hover {
  color: var(--accent);
}
.ast-separate-container .ast-article-post .entry-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Read more button */
.ast-read-more-container .ast-button,
.read-more a,
a.more-link {
  background: var(--accent) !important;
  color: var(--text-on-primary) !important;
  border: none !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
}
.ast-read-more-container .ast-button:hover,
.read-more a:hover,
a.more-link:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px) !important;
}

/* ============================================================
   SIDEBAR STYLES
   ============================================================ */
.sidebar-main .widget {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.sidebar-main .widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
#ast-scroll-top {
  background: var(--accent) !important;
  color: var(--text-on-primary) !important;
  border-radius: var(--radius-full) !important;
  box-shadow: var(--shadow-md) !important;
}
#ast-scroll-top:hover {
  background: var(--accent-hover) !important;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gdv-animate-in {
  animation: fadeInUp 0.5s ease forwards;
}
.gdv-delay-1 { animation-delay: 0.1s; }
.gdv-delay-2 { animation-delay: 0.2s; }
.gdv-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .gdv-hero {
    padding: var(--space-2xl) var(--space-md);
  }
  .gdv-section {
    padding: var(--space-2xl) var(--space-md);
  }
  .gdv-features-grid {
    gap: var(--space-md);
  }
}
