/*
Theme Name: Aerovia
Theme URI: https://aerovia.lat
Author: wsaico
Author URI: https://wsaico.com
Description: Portal de aviacion profesional para LATAM con aeronaves, aeropuertos, noticias y herramientas operacionales de ground handling.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aerovia
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, news
*/

:root {
  --av-night: #080B12;
  --av-surface: #101621;
  --av-surface2: #151E2C;
  --av-faint: #1E2A3C;
  --av-border: #243247;
  --av-border2: #33455F;

  --av-blue: #38BDF8;
  --av-blue-light: #7DD3FC;
  --av-blue-dim: rgba(56, 189, 248, .12);
  --av-blue-ring: rgba(56, 189, 248, .34);
  --av-amber: #F59E0B;
  --av-amber-light: #FCD34D;
  --av-amber-dim: rgba(245, 158, 11, .12);
  --av-green: #22C55E;
  --av-green-light: #86EFAC;
  --av-green-dim: rgba(34, 197, 94, .12);
  --av-red: #F43F5E;

  --av-text: #F8FAFC;
  --av-muted: #93A4BA;
  --av-faint-text: #607086;

  --av-font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --av-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --av-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --av-container: 1240px;
  --av-sidebar-w: 300px;
  --av-transition: 180ms ease;
  --av-shadow-card: 0 18px 50px rgba(0, 0, 0, .18);
}

html[data-theme="light"] {
  --av-night: #F5F7FB;
  --av-surface: #FFFFFF;
  --av-surface2: #EEF3F8;
  --av-faint: #E4EAF2;
  --av-border: #D5DFEA;
  --av-border2: #B9C7D7;
  --av-text: #111827;
  --av-muted: #536276;
  --av-faint-text: #738197;
  --av-shadow-card: 0 16px 38px rgba(15, 23, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--av-night);
  color: var(--av-text);
  font-family: var(--av-font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  color: var(--av-text);
  font-family: var(--av-font-sans);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}
p { margin: 0 0 1rem; }
a { color: var(--av-blue); transition: color var(--av-transition), background var(--av-transition), border-color var(--av-transition); }
a:hover { color: var(--av-blue-light); }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.alignwide { max-width: var(--av-container); }
.alignfull { width: 100%; max-width: none; }
.wp-caption,
.gallery-caption,
.bypostauthor { color: inherit; }

/* GLOBAL LIGHT MODE PALETTE */
:root[data-theme="light"] {
  --av-night: #F1F5F9;
  --av-surface: #FFFFFF;
  --av-surface2: #E2E8F0;
  --av-faint: #CBD5E1;
  --av-border: #E2E8F0;
  --av-border2: #94A3B8;

  --av-text: #0F172A;
  --av-muted: #475569;
  --av-faint-text: #64748B;
  
  --av-blue-dim: rgba(56, 189, 248, 0.2);
  --av-blue-ring: rgba(56, 189, 248, 0.5);
}

/* Theme Toggle Button Logic */
[data-theme="light"] .av-theme-toggle .av-icon-sun { transform: translateY(-150%); opacity: 0; }
[data-theme="light"] .av-theme-toggle .av-icon-moon { transform: translateY(0); opacity: 1; }

:root:not([data-theme="light"]) .av-theme-toggle .av-icon-moon { transform: translateY(-150%); opacity: 0; }
:root:not([data-theme="light"]) .av-theme-toggle .av-icon-sun { transform: translateY(0); opacity: 1; }
