/*
Theme Name: Axadle Times Pro
Theme URI: https://www.axadletimes.com/
Author: Axadle Times
Author URI: https://www.axadletimes.com/
Description: Premium WordPress newsroom theme for Axadle Times with React components, Tailwind CSS, SEO metadata, election coverage, video, live updates, and performance-first templates.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: axadle-times-pro
Domain Path: /languages
Tags: news, blog, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, translation-ready
*/

:root {
  --atp-primary: #07111f;
  --atp-black: #05070a;
  --atp-red: #e11d48;
  --atp-gold: #f5b841;
  --atp-blue: #38bdf8;
  --atp-gray: #f3f4f6;
  --atp-border: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111827;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.dark-mode {
  background: var(--atp-black);
  color: #f9fafb;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.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;
  width: 1px;
}

.screen-reader-text:focus {
  background: #ffffff;
  clip: auto;
  clip-path: none;
  color: #111827;
  height: auto;
  left: 1rem;
  padding: .75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.atp-container {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 1rem;
}

.atp-topline {
  background: var(--atp-red);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atp-site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dark-mode .atp-site-header {
  background: rgba(5,7,10,.94);
  border-bottom-color: var(--atp-border);
}

.atp-header-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-height: 76px;
}

.atp-brand {
  color: var(--atp-primary);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.dark-mode .atp-brand {
  color: #ffffff;
}

.atp-nav {
  display: none;
  gap: 1.1rem;
  margin-inline: auto;
}

.atp-nav a {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.atp-header-actions {
  align-items: center;
  display: flex;
  gap: .5rem;
  margin-left: auto;
}

.atp-icon-button,
.atp-button {
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: .55rem .8rem;
}

.atp-icon-button {
  background: transparent;
  color: inherit;
  width: 40px;
}

.atp-button {
  background: var(--atp-primary);
  border-color: var(--atp-primary);
  color: #ffffff;
}

.atp-main {
  min-height: 60vh;
}

.atp-section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.atp-section-title {
  align-items: center;
  border-top: 3px solid var(--atp-primary);
  display: flex;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0;
  margin: 0 0 1.25rem;
  padding-top: .75rem;
}

.dark-mode .atp-section-title {
  border-color: var(--atp-blue);
}

.atp-grid {
  display: grid;
  gap: 1rem;
}

.atp-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.atp-card:hover {
  box-shadow: 0 18px 45px rgba(7,17,31,.12);
  transform: translateY(-2px);
}

.dark-mode .atp-card {
  background: #0b1220;
  border-color: var(--atp-border);
}

.atp-card-body {
  padding: 1rem;
}

.atp-kicker,
.atp-meta {
  color: var(--atp-red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atp-meta {
  color: #6b7280;
}

.atp-card-title {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.18;
  margin: .35rem 0 .5rem;
}

.atp-hero {
  display: grid;
  gap: 1rem;
}

.atp-hero-main {
  min-height: 380px;
  position: relative;
}

.atp-hero-main img,
.atp-hero-tile img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.atp-hero-overlay {
  background: linear-gradient(180deg, rgba(5,7,10,0), rgba(5,7,10,.9));
  bottom: 0;
  color: #ffffff;
  left: 0;
  padding: 1.25rem;
  position: absolute;
  right: 0;
}

.atp-hero-title {
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: .98;
  margin: .5rem 0;
  max-width: 820px;
}

.atp-hero-side {
  display: grid;
  gap: 1rem;
}

.atp-hero-tile {
  min-height: 180px;
  position: relative;
}

.atp-layout {
  display: grid;
  gap: 2rem;
}

.atp-sidebar {
  align-self: start;
}

.atp-list {
  display: grid;
  gap: .75rem;
}

.atp-list-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .75rem;
}

.dark-mode .atp-list-item {
  border-color: var(--atp-border);
}

.atp-article-header {
  background: var(--atp-primary);
  color: #ffffff;
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.atp-article-title {
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 950;
  line-height: .98;
  margin: .75rem 0 1rem;
  max-width: 980px;
}

.atp-article-content {
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.85;
}

.atp-article-content h2,
.atp-article-content h3 {
  font-family: Inter, Manrope, sans-serif;
  line-height: 1.2;
}

.atp-callout {
  background: #f8fafc;
  border-left: 4px solid var(--atp-red);
  border-radius: 6px;
  margin: 1.5rem 0;
  padding: 1rem;
}

.dark-mode .atp-callout {
  background: #0b1220;
}

.atp-footer {
  background: var(--atp-primary);
  color: #ffffff;
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
}

.atp-footer-grid {
  display: grid;
  gap: 1.5rem;
}

.atp-footer a {
  color: #dbeafe;
}

.atp-search-overlay {
  background: rgba(5,7,10,.95);
  color: #ffffff;
  display: none;
  inset: 0;
  padding: 5rem 1rem;
  position: fixed;
  z-index: 100;
}

.atp-search-overlay.is-open {
  display: block;
}

.atp-search-field {
  background: transparent;
  border: 0;
  border-bottom: 2px solid #ffffff;
  color: #ffffff;
  font-size: clamp(1.5rem, 5vw, 3rem);
  outline: 0;
  padding: .75rem 0;
  width: 100%;
}

.atp-mobile-menu {
  display: none;
}

.atp-mobile-menu.is-open {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: .75rem;
  padding: 1rem;
}

.dark-mode .atp-mobile-menu.is-open {
  background: var(--atp-black);
  border-color: var(--atp-border);
}

@media (min-width: 760px) {
  .atp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atp-footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .atp-nav { display: flex; }
  .atp-menu-toggle { display: none; }
  .atp-hero { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
  .atp-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
