﻿/*
Theme Name: Smart Maharashtra
Theme URI: https://smartmaharashtra.com
Author: Smart Maharashtra Architecture Team
Author URI: https://smartmaharashtra.com
Description: Premium, production-ready, ultra-secure Marathi News, Public Schemes, District Affairs & Editorial Portal WordPress Theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smart-maharashtra
Domain Path: /languages
Tags: news, magazine, blog, two-columns, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready, accessibility-ready
*/

/* Design Tokens & CSS Custom Properties */
:root {
  --sm-primary: #b91c1c;
  --sm-primary-dark: #881337;
  --sm-primary-light: #fee2e2;
  --sm-primary-text: #ffffff;
  
  --sm-secondary: #ea580c;
  --sm-secondary-dark: #c2410c;
  --sm-secondary-light: #ffedd5;
  
  --sm-accent: #0284c7;
  --sm-accent-light: #e0f2fe;
  
  --sm-live: #ef4444;
  --sm-gold: #f59e0b;
  --sm-success: #16a34a;
  
  --sm-bg: #f8fafc;
  --sm-surface: #ffffff;
  --sm-surface-elevated: #ffffff;
  --sm-surface-muted: #f1f5f9;
  
  --sm-text-main: #0f172a;
  --sm-text-secondary: #334155;
  --sm-text-muted: #64748b;
  --sm-text-inverse: #ffffff;
  
  --sm-border: #e2e8f0;
  --sm-border-light: #f1f5f9;
  --sm-divider: #cbd5e1;
  
  --sm-font-devanagari: 'Noto Sans Devanagari', 'Yantramanav', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sm-font-heading: 'Rozha One', 'Noto Serif Devanagari', 'Yantramanav', Georgia, serif;
  --sm-font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --sm-font-size-base: 16px;
  --sm-font-size-xs: 0.75rem;
  --sm-font-size-sm: 0.875rem;
  --sm-font-size-md: 1rem;
  --sm-font-size-lg: 1.125rem;
  --sm-font-size-xl: 1.25rem;
  --sm-font-size-2xl: 1.5rem;
  --sm-font-size-3xl: 1.875rem;
  --sm-font-size-4xl: 2.25rem;
  --sm-font-size-5xl: 3rem;
  
  --sm-line-height-tight: 1.35;
  --sm-line-height-normal: 1.65;
  --sm-line-height-relaxed: 1.8;
  
  --sm-spacing-1: 0.25rem;
  --sm-spacing-2: 0.5rem;
  --sm-spacing-3: 0.75rem;
  --sm-spacing-4: 1rem;
  --sm-spacing-5: 1.25rem;
  --sm-spacing-6: 1.5rem;
  --sm-spacing-8: 2rem;
  --sm-spacing-10: 2.5rem;
  --sm-spacing-12: 3rem;
  --sm-spacing-16: 4rem;
  
  --sm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --sm-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --sm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --sm-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --sm-radius-sm: 4px;
  --sm-radius-md: 8px;
  --sm-radius-lg: 12px;
  --sm-radius-xl: 16px;
  --sm-radius-full: 9999px;
  
  --sm-container-max: 1280px;
  --sm-header-height: 74px;
  --sm-transition-fast: 0.15s ease;
  --sm-transition-base: 0.25s ease;
}

[data-theme="dark"] {
  --sm-bg: #090d16;
  --sm-surface: #131b2e;
  --sm-surface-elevated: #1e293b;
  --sm-surface-muted: #0f172a;
  
  --sm-text-main: #f1f5f9;
  --sm-text-secondary: #cbd5e1;
  --sm-text-muted: #94a3b8;
  
  --sm-border: #1e293b;
  --sm-border-light: #334155;
  --sm-divider: #1e293b;
  
  --sm-primary-light: rgba(185, 28, 28, 0.25);
  --sm-secondary-light: rgba(234, 88, 12, 0.2);
  --sm-accent-light: rgba(2, 132, 199, 0.2);
}

html[data-font-size="small"] { --sm-font-size-base: 14px; }
html[data-font-size="normal"] { --sm-font-size-base: 16px; }
html[data-font-size="large"] { --sm-font-size-base: 18px; }

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

html {
  font-size: var(--sm-font-size-base);
  line-height: var(--sm-line-height-normal);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sm-font-devanagari);
  font-size: 1rem;
  font-weight: 400;
  color: var(--sm-text-main);
  background-color: var(--sm-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--sm-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sm-secondary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sm-font-devanagari);
  font-weight: 700;
  line-height: var(--sm-line-height-tight);
  color: var(--sm-text-main);
  margin-bottom: var(--sm-spacing-3);
}

.sm-container {
  width: 100%;
  max-width: var(--sm-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sm-spacing-4);
  padding-right: var(--sm-spacing-4);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
}
