/*
Theme Name: Spashtvani
Theme URI: https://spashtvani.com
Author: Dev Digi
Author URI: https://spashtvani.com
Description: Fast, accessible, mobile-first custom digital news and media theme for Spashtvani. Zero paid API dependencies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spashtvani
Tags: news, entertainment, blog, custom-menu, featured-images, mobile-first, accessibility-ready
*/

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* Brand Identity */
  --sp-color-primary: #C8102E;
  --sp-color-primary-dark: #9B0B22;
  --sp-color-secondary: #0A192F;
  --sp-color-secondary-light: #172A45;

  /* Accents & Status */
  --sp-color-breaking: #E53E3E;
  --sp-color-whatsapp: #25D366;
  --sp-color-accent: #2B6CB0;

  /* Neutrals & Surfaces */
  --sp-color-bg: #FFFFFF;
  --sp-color-bg-alt: #F7FAFC;
  --sp-color-border: #E2E8F0;
  --sp-color-border-dark: #CBD5E0;

  /* Editorial Typography */
  --sp-color-text: #1A202C;
  --sp-color-text-secondary: #4A5568;
  --sp-color-text-muted: #718096;
  --sp-color-text-inverse: #FFFFFF;

  /* Font Stacks */
  --sp-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Hind", sans-serif;
  --sp-font-serif: "Georgia", "Cambria", "Times New Roman", serif;

  /* Font Sizing */
  --sp-fs-xs: 0.75rem;
  --sp-fs-sm: 0.875rem;
  --sp-fs-base: 1rem;
  --sp-fs-md: 1.125rem;
  --sp-fs-lg: 1.25rem;
  --sp-fs-xl: 1.5rem;
  --sp-fs-2xl: 1.875rem;
  --sp-fs-3xl: 2.25rem;
  --sp-fs-4xl: 3rem;

  --sp-lh-body: 1.7;
  --sp-lh-heading: 1.25;

  /* Layout */
  --sp-container-max: 1200px;
  --sp-header-height: 70px;
  --sp-radius: 4px;
}

/* ==========================================================================
   Base Elements Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--sp-font-sans);
  font-size: 16px;
  line-height: var(--sp-lh-body);
  color: var(--sp-color-text);
  background-color: var(--sp-color-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: var(--sp-color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--sp-color-primary);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--sp-color-primary);
  outline-offset: 2px;
}

/* Skip Navigation */
.sp-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--sp-color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
  border-radius: var(--sp-radius);
  transition: top 0.2s ease;
}

.sp-skip-link:focus {
  top: 1rem;
}
