/*
Theme Name: AXIOM 2026 Pro
Theme URI: https://jalnarnews.com/axiom-2026
Description: Modern Astra child theme with glassmorphic design, blue color system (TT Hoves + Unbounded fonts), zero jQuery, 99%+ PageSpeed optimization
Author: Sandeep Patekar
Author URI: https://jalnarnews.com
Template: astra
Version: 1.0.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axiom-2026
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
*/

/* ===================================
   CSS VARIABLES: Color System 2026
   =================================== */

:root {
  /* Primary Blue Palette (Modern 2026) */
  --color-primary: #1455FE;           /* Electric Blue - Main CTA, accents */
  --color-primary-dark: #0D3AD4;      /* Deep Navy Blue - Dark mode primary */
  --color-primary-light: #E5EBFF;     /* Pale Blue - Light backgrounds */
  
  /* Secondary Palette */
  --color-secondary: #090F20;         /* Almost Black - Text, dark backgrounds */
  --color-secondary-light: #F8FAFB;   /* Off-white - Light backgrounds */
  --color-secondary-muted: #64748B;   /* Slate Gray - Secondary text */
  
  /* Accent Colors (Marathi Brand) */
  --color-saffron: #F5A623;           /* Warm saffron for highlights */
  --color-emerald: #10B981;           /* Fresh green for success states */
  --color-ember: #E34C26;             /* Warm red for alerts/featured */
  
  /* Glassmorphic Elements */
  --color-glass-light: rgba(255, 255, 255, 0.08);    /* Light glass overlay */
  --color-glass-medium: rgba(255, 255, 255, 0.12);   /* Medium glass overlay */
  --color-glass-dark: rgba(20, 85, 254, 0.08);       /* Blue-tinted glass */
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* Typography Variables */
  --font-primary: 'TT Hoves', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'TT Hoves', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing Scale */
  --spacing-xs: 0.25rem;        /* 4px */
  --spacing-sm: 0.5rem;         /* 8px */
  --spacing-md: 1rem;           /* 16px */
  --spacing-lg: 1.5rem;         /* 24px */
  --spacing-xl: 2rem;           /* 32px */
  --spacing-2xl: 3rem;          /* 48px */
  --spacing-3xl: 4rem;          /* 64px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;        /* 6px */
  --radius-md: 0.5rem;          /* 8px */
  --radius-lg: 1rem;            /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Color Overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #1455FE;           /* Keep bright blue for dark mode */
    --color-secondary: #F8FAFB;         /* Flip to light text */
    --color-secondary-light: #0F1419;   /* Flip to dark background */
    --color-secondary-muted: #9CA3AF;   /* Lighter gray for dark mode */
  }
}

/* ===================================
   BASE TYPOGRAPHY & RESET
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-secondary);
  background-color: var(--color-secondary-light);
  transition: background-color var(--transition-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: var(--color-secondary);
}

h1 { font-size: var(--font-size-5xl); margin-bottom: var(--spacing-lg); }
h2 { font-size: var(--font-size-4xl); margin-bottom: var(--spacing-lg); }
h3 { font-size: var(--font-size-3xl); margin-bottom: var(--spacing-md); }
h4 { font-size: var(--font-size-2xl); margin-bottom: var(--spacing-md); }
h5 { font-size: var(--font-size-xl); margin-bottom: var(--spacing-sm); }
h6 { font-size: var(--font-size-lg); margin-bottom: var(--spacing-sm); }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

button, .btn {
  font-family: var(--font-primary);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--spacing-sm) var(--spacing-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-secondary-muted);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-secondary);
}

/* ===================================
   LAYOUT & STRUCTURE
   =================================== */

.site-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.site-header {
  background: var(--color-secondary-light);
  border-bottom: 1px solid var(--color-glass-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.site-content {
  min-height: 100vh;
  padding: var(--spacing-3xl) 0;
}

.site-footer {
  background: var(--color-secondary);
  color: var(--color-secondary-light);
  padding: var(--spacing-3xl) 0;
  margin-top: var(--spacing-3xl);
}

/* ===================================
   RESPONSIVE GRID
   =================================== */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: 1fr; }
  .grid-cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid { gap: var(--spacing-md); }
  .grid-cols-1,
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   GLASSMORPHIC COMPONENTS
   =================================== */

.glass {
  background: var(--color-glass-light);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-medium);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.glass:hover {
  background: var(--color-glass-medium);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

@media (prefers-color-scheme: dark) {
  .card {
    background: #1A1F2E;
    color: var(--color-secondary);
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary-muted); }
.bg-primary { background-color: var(--color-primary); color: white; }
.bg-secondary-light { background-color: var(--color-secondary-light); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fadeIn {
  animation: fadeIn var(--transition-base) ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft var(--transition-base) ease-out;
}

.animate-slideInRight {
  animation: slideInRight var(--transition-base) ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .no-print {
    display: none;
  }
}
