/*
Theme Name:   MonitorFiscal
Theme URI:    https://monitorfiscal.ro
Description:  Curs BNR, convertor valutar, calculatoare financiare.
Author:       MonitorFiscal
Author URI:   https://monitorfiscal.ro
Template:     generatepress
Version:      2.3.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  monitorfiscal
*/

/* ═══════════════════════════════════════════════
   TOKENS — culori, fonturi, spacing
   ═══════════════════════════════════════════════ */
:root {
  --bg:#0D0F15; --bg2:#13161E; --bg3:#1B1F2C; --bg4:#242840;
  --bd:rgba(255,255,255,.08); --bd2:rgba(255,255,255,.16);
  --tx:#EAE5D8; --tx2:#ADA89C; --tx3:#786F64;
  --gold:#D4B05C; --gold-s:rgba(212,176,92,.12); --gold-b:rgba(212,176,92,.40);
  --blue:#6BA8F5; --blue-s:rgba(107,168,245,.11); --blue-b:rgba(107,168,245,.36);
  --green:#4DCB87; --green-s:rgba(77,203,135,.10);
  --red:#EF6A6A;   --red-s:rgba(239,106,106,.10);
  --teal:#38CEC0;  --purple:#A882E8;
  --focus:#F5C842;
  --r:10px; --rl:14px;
  --font:'Nunito',system-ui,sans-serif;
  --serif:'Playfair Display',Georgia,serif;
  --mono:'JetBrains Mono',monospace;
  --tr:.2s ease;
}
[data-theme="light"] {
  --bg:#F2EDE2; --bg2:#FEFCF5; --bg3:#EDE8DC; --bg4:#E0DBC8;
  --bd:rgba(30,20,0,.08); --bd2:rgba(30,20,0,.16);
  --tx:#1A1410; --tx2:#4F4840; --tx3:#80786C;
  --gold:#7A5810; --gold-s:rgba(122,88,16,.08); --gold-b:rgba(122,88,16,.30);
  --blue:#0F5FC0; --blue-s:rgba(15,95,192,.08); --blue-b:rgba(15,95,192,.28);
  --green:#12783A; --green-s:rgba(18,120,58,.08);
  --red:#B82020;   --red-s:rgba(184,32,32,.08);
  --teal:#0B7A70;  --purple:#6428B8; --focus:#0050B8;
}

/* ═══════════════════════════════════════════════
   RESET GP COMPLET
   ═══════════════════════════════════════════════ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:18px; scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  background:var(--bg) !important;
  color:var(--tx) !important;
  font-family:var(--font) !important;
  font-size:1rem; line-height:1.7;
  min-width:320px; overflow-x:hidden;
  transition:background var(--tr),color var(--tr);
}

h1,h2,h3,h4,h5,h6 { font-family:var(--serif) !important; font-weight:500; color:var(--tx); line-height:1.2; }
p   { font-size:1rem; line-height:1.75; }
a   { color:var(--blue); }
a:hover { text-decoration:underline; }
strong  { font-weight:600; }
abbr    { text-decoration:underline dotted; cursor:help; }
button  { font-family:var(--font); cursor:pointer; border:none; background:none; }

/* Ascundem tot ce vine din GeneratePress */
#site-header,.site-header,.main-navigation,.nav-primary,
.top-bar,.footer-widgets,#colophon,.site-info,
.generate-back-to-top,.entry-header,.breadcrumb-trail,
.page-header,.post-navigation,.comments-area,
#site-footer,.site-footer { display:none !important; }

/* ═══════════════════════════════════════════════
   RESET LAYOUT GP — nuclear, full-width forțat
   ═══════════════════════════════════════════════ */
body .site-content,
body #content,
body .content-area,
body #primary {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body #page,
body .site-inner,
body .grid-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Sidebar GP — ascuns complet */
body #secondary,
body .widget-area,
body aside.sidebar,
body .sidebar-container {
  display: none !important;
}

body .entry-content,
body .page-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* ═══════════════════════════════════════════════
   FIX GLOBAL OVERFLOW MOBIL
   ═══════════════════════════════════════════════ */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
img, svg, video { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════
   ACCESIBILITATE
   ═══════════════════════════════════════════════ */
.skip-link {
  position:absolute; top:-100px; left:14px;
  background:var(--gold); color:#0D0F15;
  padding:12px 20px; border-radius:var(--r);
  font-size:1rem; font-weight:700; text-decoration:none;
  z-index:9999; transition:top .15s;
}
.skip-link:focus { top:14px; }
:focus { outline:none; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; border-radius:4px; }
.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
#live-region { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
@media(prefers-contrast:high) {
  :root { --tx:#FFF; --tx2:#EEE; --tx3:#CCC; --bd:rgba(255,255,255,.4); --bd2:rgba(255,255,255,.7); --gold:#FFD700; --blue:#80BFFF; --green:#70FF70; --red:#FF8080; --focus:#FFD700; }
  [data-theme="light"] { --tx:#000; --tx2:#111; --tx3:#333; --gold:#6B4800; --blue:#00008B; --green:#006400; --red:#8B0000; --focus:#0000CC; }
}
