/* karateka.lt temos (app/themes.php): fonas su peizažu, kortelės lieka šviesios ir aiškiai skaitomos.
   Tamsiose temose (theme-dark) - tamsi viršutinė juosta, šviesūs užrašai ant fono. */
body[data-theme]:not([data-theme="light"]){background-attachment:fixed;}
body[data-theme="nature"]   {background:url("../img/temos/gamta.svg") center bottom / cover fixed no-repeat, #F2E8D8;}
body[data-theme="dunes"]    {background:url("../img/temos/kopos.svg") center bottom / cover fixed no-repeat, #FBE3B8;}
body[data-theme="dojo"]     {background:url("../img/temos/dojo.svg") center bottom / cover fixed no-repeat, #F1E7D2;}
body[data-theme="aurora"]   {background:url("../img/temos/pasvaiste.svg") center bottom / cover fixed no-repeat, #071A2B;}
body[data-theme="mountains"]{background:url("../img/temos/kalnai.svg") center bottom / cover fixed no-repeat, #EEF3F8;}
body[data-theme="sea"]      {background:url("../img/temos/jura.svg") center bottom / cover fixed no-repeat, #E6F6FC;}
body[data-theme="sakura"]   {background:url("../img/temos/sakura.svg") center bottom / cover fixed no-repeat, #FFF6F8;}
body[data-theme="autumn"]   {background:url("../img/temos/ruduo.svg") center bottom / cover fixed no-repeat, #FCEBD2;}
body[data-theme="winter"]   {background:url("../img/temos/ziema.svg") center bottom / cover fixed no-repeat, #F4F8FC;}
body[data-theme="dark"]     {background:radial-gradient(ellipse 70% 45% at 15% 10%, rgba(120,96,160,.35), transparent 60%), radial-gradient(ellipse 60% 40% at 85% 80%, rgba(47,107,90,.3), transparent 60%), #14121A fixed;}
body[data-theme="space"]    {background:url("../img/temos/kosmosas.svg") center / cover fixed no-repeat, #050816;}
body[data-theme="volcano"]  {background:url("../img/temos/vulkanas.svg") center bottom / cover fixed no-repeat, #140806;}

/* Kortelės ant peizažo - šiek tiek tankesnės, kad tekstas būtų aiškus */
body[data-theme]:not([data-theme="light"]) .panel{background:rgba(255,255,255,0.8);}
body[data-theme="nature"]   {--accent:#2F7D4F; --accent-dark:#24653F;}
body[data-theme="mountains"]{--accent:#2F5D8A; --accent-dark:#244A70;}
body[data-theme="sea"]      {--accent:#1E6F9E; --accent-dark:#175A80;}
body[data-theme="sakura"]   {--accent:#B4436F; --accent-dark:#8E3357;}
body[data-theme="autumn"]   {--accent:#B5541F; --accent-dark:#8E4118;}
body[data-theme="winter"]   {--accent:#2F5263; --accent-dark:#233F4C;}
body[data-theme="dunes"]    {--accent:#B4572E; --accent-dark:#8E4220;}
body[data-theme="dojo"]     {--accent:#7A4E2C; --accent-dark:#5E3B20;}
body[data-theme="aurora"]   {--accent:#2E9C7A; --accent-dark:#237A5F;}

/* ---------- Tamsios temos: juosta, antraštės ir užrašai ant fono ---------- */
body.theme-dark .site-header{background:rgba(20,18,26,0.92); border-bottom-color:rgba(255,255,255,0.08); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);}
body.theme-dark .site-header .nav-link, body.theme-dark .site-header .nav-page, body.theme-dark .site-header .nav-login, body.theme-dark .site-header .logout-btn{color:#ECE8F4;}
body.theme-dark .site-header .nav-group{background:rgba(255,255,255,0.08);}
body.theme-dark .lang-switch{background:rgba(255,255,255,0.1);}
body.theme-dark .lang-switch a{color:#C9C3D6;}
body.theme-dark .lang-switch a.active{background:#ECE8F4; color:#3E2C55;}
body.theme-dark .tp-btn, body.theme-dark .fp-btn{background:rgba(255,255,255,0.12); color:#ECE8F4;}
body.theme-dark h1.styled, body.theme-dark .section-head h2.styled, body.theme-dark h2.styled-dark, body.theme-dark .chooser-title, body.theme-dark .about-sub-head h3{
  background:linear-gradient(90deg, #FFFFFF 0%, #D9C9F2 100%); -webkit-background-clip:text; background-clip:text;}
body.theme-dark .section-head p, body.theme-dark main > p, body.theme-dark main > .muted, body.theme-dark main > a, body.theme-dark main > .small,
body.theme-dark .page-head, body.theme-dark .page-head .muted, body.theme-dark main > h1, body.theme-dark main > h2{color:#E4DFEE; text-shadow:0 1px 2px rgba(0,0,0,.45);}
body.theme-dark .footer-bottom{color:#C9C3D6; border-top-color:rgba(255,255,255,0.14);}
body.theme-dark .footer-bottom a{color:#ECE8F4;}
body.theme-dark .panel{background:rgba(255,255,255,0.88);}
@media (max-width:1100px){ body.theme-dark .site-header .nav-menu, body.theme-dark .nav-menu{background:#1A1722;} }
body.theme-dark .view-switch > summary{color:#ECE8F4; background:rgba(255,255,255,0.1);}
body.theme-dark .site-header .logo img{background:rgba(255,255,255,0.92); border-radius:12px; padding:2px 6px;}

/* ---------- v1.31: viršutinė juosta ir meniu pagal temą (ne visada rožinė) ---------- */
body[data-theme]:not([data-theme="light"]) .site-header a.nav-page.is-current,
body[data-theme]:not([data-theme="light"]) .sub-nav a.active,
body[data-theme]:not([data-theme="light"]) .lang-switch a.active{color:var(--accent);}
body[data-theme]:not([data-theme="light"]) .site-header a.nav-page::after{color:var(--accent);}
body[data-theme]:not([data-theme="light"]) .site-header .nav-login.is-current{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); box-shadow:0 6px 16px rgba(0,0,0,0.18);}
body[data-theme="nature"]    .site-header{background:linear-gradient(180deg, #CFE3EE 0%, #E4EEF0 100%);}
body[data-theme="nature"]    .sub-nav{background:linear-gradient(90deg, #E2EEDD 0%, #D6E8D2 100%); border-top-color:rgba(47,125,79,0.15);}
body[data-theme="mountains"] .site-header{background:linear-gradient(180deg, #D6E3EF 0%, #E9EFF6 100%);}
body[data-theme="mountains"] .sub-nav{background:linear-gradient(90deg, #E2EAF3 0%, #D8E3EF 100%); border-top-color:rgba(47,93,138,0.15);}
body[data-theme="sea"]       .site-header{background:linear-gradient(180deg, #CDEBF6 0%, #E4F5FA 100%);}
body[data-theme="sea"]       .sub-nav{background:linear-gradient(90deg, #DDF0F6 0%, #CFE8F2 100%); border-top-color:rgba(30,111,158,0.15);}
body[data-theme="dunes"]     .site-header{background:linear-gradient(180deg, #F6D7C0 0%, #FBE7D3 100%);}
body[data-theme="dunes"]     .sub-nav{background:linear-gradient(90deg, #FCEBD8 0%, #F8DFC6 100%); border-top-color:rgba(180,87,46,0.15);}
body[data-theme="sakura"]    .site-header{background:linear-gradient(180deg, #FBE4EC 0%, #FDF0F4 100%);}
body[data-theme="sakura"]    .sub-nav{background:linear-gradient(90deg, #FBE6EE 0%, #F8DCE7 100%);}
body[data-theme="autumn"]    .site-header{background:linear-gradient(180deg, #F8DEC0 0%, #FCECD8 100%);}
body[data-theme="autumn"]    .sub-nav{background:linear-gradient(90deg, #FBE6CF 0%, #F6DABD 100%); border-top-color:rgba(181,84,31,0.15);}
body[data-theme="winter"]    .site-header{background:linear-gradient(180deg, #E1ECF5 0%, #F3F7FB 100%);}
body[data-theme="winter"]    .sub-nav{background:linear-gradient(90deg, #E8F0F6 0%, #DDE8F1 100%); border-top-color:rgba(47,82,99,0.15);}
body[data-theme="dojo"]      .site-header{background:linear-gradient(180deg, #F3E9D5 0%, #EFE3CB 100%); border-bottom:3px solid #7A4E2C;}
body[data-theme="dojo"]      .sub-nav{background:linear-gradient(90deg, #EDE1C9 0%, #E5D6B8 100%); border-top-color:rgba(122,78,44,0.2);}
body.theme-dark .sub-nav{background:rgba(26,23,34,0.92); border-top-color:rgba(255,255,255,0.08);}
body.theme-dark .sub-nav a{color:#D9D4E4;}
body.theme-dark .sub-nav a:hover{background:rgba(255,255,255,0.08); color:#fff;}
body.theme-dark .sub-nav a.active{background:#ECE8F4; color:#3E2C55;}
body[data-theme="aurora"] .site-header{background:rgba(6,20,32,0.94);}
body[data-theme="aurora"] .sub-nav{background:rgba(8,28,40,0.92);}
/* v1.45: tamsiose temose - be šviesaus ruoželio viršuje (#112), matoma kalba (LT) */

body.theme-dark .lang-dd > summary{background:rgba(255,255,255,0.12); color:#ECE8F4;}
body.theme-dark .site-switch > summary{background:rgba(255,255,255,.92);}
/* v1.45 (#112): tamsiose temose meniu - dizaino dalis: permatoma „stiklo“ juosta, fonas (planeta, žvaigždės) matosi ir po juo, niekas nenusikerpa */
body.theme-dark .site-header{background:linear-gradient(180deg, rgba(10,10,24,.55), rgba(10,10,24,.28)); border-bottom-color:rgba(255,255,255,.10); backdrop-filter:blur(10px) saturate(1.3); -webkit-backdrop-filter:blur(10px) saturate(1.3);}
body.theme-dark .sub-nav{background:rgba(10,10,24,.30); border-top-color:rgba(255,255,255,.08);}
body.theme-dark .sub-nav-2{background:rgba(10,10,24,.18);}
body.theme-dark .progress-wrap{background-color:transparent;}

/* ---------- v1.95: gražesnės temos - kiekviena tema turi savo paletę (Deividas: „per daug paprastos“) ----------
   --accent / --accent-dark - mygtukai, nuorodos; --t-2 - antra spalva (antraštės pabraukimas, mygtukų gradientas);
   --t-panel / --t-border / --t-shadow - kortelės su temos atspalviu; --t-glow - švelnus švytėjimas virš peizažo; --t-chip - datų kvadratėliai. */
body[data-theme="nature"]   {--accent:#2F7D4F; --accent-dark:#1F5C38; --t-2:#8DBF5A; --t-panel:rgba(250,253,247,.84); --t-border:rgba(47,125,79,.18); --t-shadow:rgba(31,92,56,.16); --t-glow:rgba(255,236,160,.45); --t-chip:#1F5C38;}
body[data-theme="mountains"]{--accent:#2F5D8A; --accent-dark:#1E4166; --t-2:#7FA7CF; --t-panel:rgba(248,251,255,.85); --t-border:rgba(47,93,138,.18); --t-shadow:rgba(30,65,102,.16); --t-glow:rgba(190,220,255,.45); --t-chip:#1E4166;}
body[data-theme="sea"]      {--accent:#1E6F9E; --accent-dark:#145579; --t-2:#2EC4C4; --t-panel:rgba(245,252,255,.84); --t-border:rgba(30,111,158,.18); --t-shadow:rgba(20,85,121,.16); --t-glow:rgba(120,220,230,.4); --t-chip:#145579;}
body[data-theme="dunes"]    {--accent:#B4572E; --accent-dark:#8E4220; --t-2:#E8A04A; --t-panel:rgba(255,250,243,.85); --t-border:rgba(180,87,46,.18); --t-shadow:rgba(142,66,32,.16); --t-glow:rgba(255,200,120,.45); --t-chip:#8E4220;}
body[data-theme="sakura"]   {--accent:#B4436F; --accent-dark:#8E3357; --t-2:#F08DB0; --t-panel:rgba(255,248,250,.85); --t-border:rgba(180,67,111,.18); --t-shadow:rgba(142,51,87,.16); --t-glow:rgba(255,180,205,.45); --t-chip:#8E3357;}
body[data-theme="autumn"]   {--accent:#B5541F; --accent-dark:#8A3B12; --t-2:#D9A13B; --t-panel:rgba(255,249,240,.85); --t-border:rgba(181,84,31,.18); --t-shadow:rgba(138,59,18,.16); --t-glow:rgba(255,190,110,.4); --t-chip:#8A3B12;}
body[data-theme="winter"]   {--accent:#2F5263; --accent-dark:#1F3A47; --t-2:#7FB3D0; --t-panel:rgba(250,253,255,.87); --t-border:rgba(47,82,99,.18); --t-shadow:rgba(31,58,71,.16); --t-glow:rgba(210,235,255,.55); --t-chip:#1F3A47;}
body[data-theme="dojo"]     {--accent:#7A4E2C; --accent-dark:#5A361C; --t-2:#B5281F; --t-panel:rgba(255,251,242,.88); --t-border:rgba(122,78,44,.22); --t-shadow:rgba(90,54,28,.18); --t-glow:rgba(255,215,150,.35); --t-chip:#5A361C;}
body[data-theme="dark"]     {--accent:#7E6BC4; --accent-dark:#5D4C9E; --t-2:#E28BB5; --t-panel:rgba(246,244,252,.93); --t-border:rgba(160,140,220,.4); --t-shadow:rgba(0,0,0,.4); --t-glow:rgba(126,107,196,.28); --t-chip:#2A2440; --t-side:rgba(34,29,52,.86);}
body[data-theme="aurora"]   {--accent:#2E9C7A; --accent-dark:#1F7A5E; --t-2:#7FE0C0; --t-panel:rgba(244,252,250,.93); --t-border:rgba(46,156,122,.42); --t-shadow:rgba(0,0,0,.4); --t-glow:rgba(80,230,180,.2); --t-chip:#0F3B3A; --t-side:rgba(8,36,44,.86);}
body[data-theme="space"]    {--accent:#6B5BD6; --accent-dark:#4C3FB0; --t-2:#F2A541; --t-panel:rgba(244,242,255,.93); --t-border:rgba(140,120,255,.42); --t-shadow:rgba(0,0,0,.45); --t-glow:rgba(120,100,255,.22); --t-chip:#1E1A40; --t-side:rgba(20,18,48,.86);}
body[data-theme="volcano"]  {--accent:#D9480F; --accent-dark:#A8370B; --t-2:#FFB347; --t-panel:rgba(255,246,240,.93); --t-border:rgba(217,72,15,.42); --t-shadow:rgba(0,0,0,.45); --t-glow:rgba(255,90,30,.22); --t-chip:#3A120A; --t-side:rgba(40,14,8,.86);}

/* Švelnus švytėjimas virš peizažo (už turinio) */
body[data-theme]:not([data-theme="light"])::before{content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse 55% 40% at 12% 8%, var(--t-glow, transparent), transparent 70%),
             radial-gradient(ellipse 45% 35% at 92% 92%, var(--t-glow, transparent), transparent 70%);}
/* Kortelės - stiklas su temos atspalviu, plonas spalvotas kraštas ir šešėlis */
body[data-theme]:not([data-theme="light"]) .panel{background:linear-gradient(90deg, var(--accent), var(--t-2, var(--accent))) top / 100% 3px no-repeat, var(--t-panel, rgba(255,255,255,.8));
  border-color:var(--t-border, rgba(255,255,255,.55)); box-shadow:0 18px 42px var(--t-shadow, rgba(23,20,15,.1)), inset 0 1px 0 rgba(255,255,255,.7);}
/* Antraštė ir jos pabraukimas - temos spalvomis */
body[data-theme]:not([data-theme="light"]):not(.theme-dark) h1.styled{background-image:linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);}
body[data-theme]:not([data-theme="light"]) h1.styled::after{background:linear-gradient(90deg, var(--accent), var(--t-2, var(--accent)));}
body.theme-dark[data-theme]:not([data-theme="light"]) h1.styled{background-image:linear-gradient(90deg, #FFFFFF 0%, var(--t-2, #D9C9F2) 100%);}
/* Mygtukai - gradientas su švelniu šešėliu */
body[data-theme]:not([data-theme="light"]) .btn-primary{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); box-shadow:0 6px 16px var(--t-shadow, rgba(0,0,0,.15));}
body[data-theme]:not([data-theme="light"]) .btn-primary:hover{background:linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-dark) 100%);}
/* Datų kvadratėliai ir Valdymo šoninis meniu */
body[data-theme]:not([data-theme="light"]) .event-date{background:linear-gradient(160deg, var(--t-chip, var(--ink)) 0%, var(--accent-dark) 140%);}
body[data-theme]:not([data-theme="light"]):not(.theme-dark) .adm-side{background:var(--t-panel, rgba(255,255,255,.72)); border-color:var(--t-border, rgba(23,20,15,.07)); box-shadow:0 10px 30px var(--t-shadow, rgba(23,20,15,.07));}
body[data-theme]:not([data-theme="light"]):not(.theme-dark) .am-row.active{background:color-mix(in srgb, var(--accent) 14%, transparent); color:var(--accent-dark) !important;}
body.theme-dark[data-theme]:not([data-theme="light"]) .adm-side{background:var(--t-side, rgba(26,23,34,.82)); border-color:var(--t-border, rgba(255,255,255,.08));}
body.theme-dark[data-theme]:not([data-theme="light"]) .am-row.active{background:color-mix(in srgb, var(--t-2) 26%, transparent);}
/* Dojo - raudonas antspaudo akcentas */
body[data-theme="dojo"] h1.styled::after{height:5px; background:linear-gradient(90deg, #B5281F, #7A4E2C);}
body[data-theme="dojo"] .panel{background:linear-gradient(90deg, #B5281F, #7A4E2C) top / 100% 4px no-repeat, var(--t-panel);}
/* Temų paveikslėliai pasirinkime - su temos spalvos juostele */
.tp-prev{position:relative; overflow:hidden;}
.tp-prev::after{content:""; position:absolute; left:6px; right:6px; bottom:6px; height:8px; border-radius:4px; background:var(--sw, transparent); box-shadow:0 1px 3px rgba(0,0,0,.25);}
