/*
Theme Name: ADJDEV News
Theme URI: https://adjdev.com/themes/adjdev-news
Author: ADJDEV Team
Author URI: https://adjdev.com
Description: Premium, lightweight, ultra-fast, and modular WordPress theme designed for high-traffic news portals, magazines, tech portals, lifestyle publications, and editorial platforms. Features an extensible Template Library, comprehensive 36-tab Theme Options, Gutenberg native block patterns, Schema.org SEO, multi-layout headers, and full compatibility with the upcoming ADJDEV Builder.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
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: adjdev-news
Domain Path: /languages/
Tags: news, magazine, blog, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, accessibility-ready, grid-layout, one-column, two-columns, three-columns
*/

/**
 * ==============================================================================
 * ADJDEV NEWS DESIGN TOKENS & CSS VARIABLES
 * Optimized for lightning-fast rendering & zero layout shifts (CLS < 0.01)
 * ==============================================================================
 */
:root {
  /* Brand & Accents */
  --adjdev-primary: #1062fe;
  --adjdev-primary-hover: #004fe8;
  --adjdev-primary-subtle: rgba(16, 98, 254, 0.08);
  --adjdev-secondary: #0f172a;
  --adjdev-accent: #f43f5e;
  --adjdev-success: #10b981;
  --adjdev-warning: #f59e0b;

  /* Typography Colors */
  --adjdev-text: #181d27;
  --adjdev-text-heading: #090d16;
  --adjdev-text-muted: #535862;
  --adjdev-text-subtle: #717680;
  --adjdev-link: #1062fe;
  --adjdev-link-hover: #004fe8;

  /* Backgrounds & Surfaces */
  --adjdev-background: #ffffff;
  --adjdev-surface: #f8fafc;
  --adjdev-surface-elevated: #ffffff;
  --adjdev-surface-card: #ffffff;

  /* Borders & Dividers */
  --adjdev-border: #e4e7ec;
  --adjdev-border-subtle: #f2f4f7;
  --adjdev-border-strong: #d0d5dd;

  /* Layout & Spacing */
  --adjdev-container: 1240px;
  --adjdev-container-narrow: 840px;
  --adjdev-container-wide: 1400px;
  --adjdev-header-height: 72px;
  --adjdev-topbar-height: 40px;
  --adjdev-radius-sm: 4px;
  --adjdev-radius: 8px;
  --adjdev-radius-lg: 12px;
  --adjdev-radius-xl: 16px;
  --adjdev-radius-pill: 9999px;

  /* Shadows */
  --adjdev-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --adjdev-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
  --adjdev-shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --adjdev-shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);

  /* Fonts */
  --adjdev-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --adjdev-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --adjdev-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --adjdev-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"],
.dark-mode {
  --adjdev-text: #e6edf3;
  --adjdev-text-heading: #ffffff;
  --adjdev-text-muted: #9aa4b2;
  --adjdev-text-subtle: #667085;
  --adjdev-background: #0b0f19;
  --adjdev-surface: #121826;
  --adjdev-surface-elevated: #1a2234;
  --adjdev-surface-card: #141b2d;
  --adjdev-border: #232d42;
  --adjdev-border-subtle: #1a2234;
  --adjdev-border-strong: #334155;
  --adjdev-primary-subtle: rgba(16, 98, 254, 0.2);
  --adjdev-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --adjdev-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--adjdev-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--adjdev-text);
  background-color: var(--adjdev-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--adjdev-link);
  text-decoration: none;
  transition: var(--adjdev-transition);
}

a:hover {
  color: var(--adjdev-link-hover);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--adjdev-font-heading);
  color: var(--adjdev-text-heading);
  font-weight: 700;
  line-height: 1.25;
}

.adjdev-container {
  width: 100%;
  max-width: var(--adjdev-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.adjdev-container-narrow {
  max-width: var(--adjdev-container-narrow);
}

.adjdev-container-wide {
  max-width: var(--adjdev-container-wide);
}

/* Screen reader text for Accessibility (a11y) */
.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;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
