/* ============================================================================
 * andebe_carduri.css - pagina de carduri a unui meniu: cardurile pe jumatate, cate 8 pe rand pe ecranul lat
 * (6 sub 1500px, 4 sub 1150px, 2 sub 700px). Fiecare card: pictograma, numele cu litera subliniata, litera in colt,
 * descrierea taiata la 2 randuri, starea („de construit”, „hotarat, in plan”) si sageata.
 * Totul in tonul paginii: --pg / --pg1 / --sc / --sp / --sb (andebe_cmm.css); culorile proprii ale cardurilor (--c1, --c2)
 * raman numai pe pictograma, litera si sageata.
 *
 * MARCAJUL (il scrie aplicatia; vezi andebe_meniu_carduri() in andebe_meniu.php):
 *   <div class="mc">
 *     <div class="gc-hero"><div class="gc-hero-ic">SVG</div><div><h1>Nume cu <u>l</u>itera</h1>
 *       <span class="gc-hero-nr">22 pagini + 11 Plus</span><span class="kbd-l"><kbd>Alt</kbd>+<kbd>O</kbd>, apoi litera cardului</span></div></div>
 *     <div class="gc-grila"> CARD... </div>
 *     <div class="gc-sec"><i></i>Titlul unui bloc</div><div class="gc-grila"> CARD... </div>
 *     <div class="gc-sec plus" id="plus"><i></i>Plus</div><div class="gc-grila"> CARD... </div>
 *   </div>
 *   CARD = <div class="gc-t gc-cN [lips]">                                        (N = 0..27, culoarea cardului)
 *            <a class="gc-a" href="..." data-l="A">  (sau <div class="gc-a" aria-disabled="true"> la „de construit”)
 *              <span class="gc-k">A</span><div class="gc-ic">SVG</div><div class="gc-n"><u>A</u>rticole</div>
 *              <div class="gc-d">descrierea</div> [<span class="gc-lips [dec]">de construit</span>] [<span class="gc-fk">F9</span>]
 *              <div class="gc-f"><span class="gc-go">Deschide</span><span class="gc-sag">SVG</span></div>
 *            </a></div>
 *   Pictogramele: desen colorat (svg.an-ic-c, cu culorile lui) sau linie (orice alt svg, colorat din --c2).
 * Toate regulile au :root .mc in fata, ca sa treaca peste stilurile vechi ale cardurilor (.gc-*) din aplicatie.
 * ========================================================================== */

/* --- titlul --- */
:root .mc .gc-hero{ display:flex; align-items:center; gap:16px; padding:4px 4px 18px; margin:0 0 18px; border-bottom:1px solid var(--an-hair, rgba(0,0,0,.08)); }
:root .mc .gc-hero-ic, :root[data-theme="dark"] .mc .gc-hero-ic{ width:58px; height:58px; flex:0 0 auto; display:flex; align-items:center; justify-content:center;
	background:transparent; box-shadow:none; border-radius:0; color:var(--sc); }
:root .mc .gc-hero-ic svg{ width:56px; height:56px; }
:root .mc .gc-hero-ic svg:not(.an-ic-c){ fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
:root .mc .gc-hero h1{ margin:0; font-size:26px; font-weight:650; letter-spacing:-.03em; color:var(--an-text); }
:root .mc .gc-hero h1 u{ text-decoration-color:var(--sc); text-decoration-thickness:2px; text-underline-offset:4px; }
:root .mc .gc-hero-nr, :root[data-theme="dark"] .mc .gc-hero-nr{ display:inline-flex; align-items:center; margin-top:6px; padding:3px 10px; border-radius:999px;
	font-size:11.5px; font-weight:650; color:var(--sc); background:var(--sp); box-shadow:inset 0 0 0 1px var(--sb); }
:root .mc .kbd-l{ margin-left:8px; font-size:11.5px; color:var(--an-text-dim); }
:root .mc kbd{ font:inherit; font-size:10.5px; font-weight:700; padding:1px 5px; border-radius:5px; color:var(--an-text);
	background:var(--an-card); box-shadow:inset 0 0 0 1px var(--an-border-strong, rgba(0,0,0,.18)), 0 1px 0 var(--an-border-strong, rgba(0,0,0,.18)); }

/* --- grila: 8 / 6 / 4 / 2 pe rand --- */
:root .mc .gc-grila{ display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:12px; }
@media (max-width:1500px){ :root .mc .gc-grila{ grid-template-columns:repeat(6, minmax(0, 1fr)); } }
@media (max-width:1150px){ :root .mc .gc-grila{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (max-width:700px){ :root .mc .gc-grila{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; } }

/* titlul unui bloc (de ex. „Operatii pe stocuri”) si al blocului Plus */
:root .mc .gc-sec{ display:flex; align-items:center; gap:10px; margin:24px 2px 12px; font-size:11px; font-weight:780; letter-spacing:.8px;
	text-transform:uppercase; color:var(--an-text-dim); scroll-margin-top:calc(var(--fx-h, 0px) + 16px); }
:root .mc .gc-sec::after{ content:""; flex:1 1 auto; height:1px; background:var(--an-hair, rgba(0,0,0,.08)); }
:root .mc .gc-sec i{ width:9px; height:9px; border-radius:50%; background:var(--sc); }
:root .mc .gc-sec.plus i{ background:linear-gradient(90deg, #0da9d0, #9333ea); }

/* --- culorile cardurilor: vecinii din grila cat mai diferiti --- */
.mc .gc-c0{ --c1:#60a5fa; --c2:#2563eb; --cb:rgba(37,99,235,.30); --cs:rgba(37,99,235,.45); }
.mc .gc-c1{ --c1:#a3e635; --c2:#65a30d; --cb:rgba(101,163,13,.30); --cs:rgba(101,163,13,.45); }
.mc .gc-c2{ --c1:#f87171; --c2:#dc2626; --cb:rgba(220,38,38,.30); --cs:rgba(220,38,38,.45); }
.mc .gc-c3{ --c1:#14b8a6; --c2:#115e59; --cb:rgba(17,94,89,.30); --cs:rgba(17,94,89,.45); }
.mc .gc-c4{ --c1:#fbbf24; --c2:#d97706; --cb:rgba(217,119,6,.30); --cs:rgba(217,119,6,.45); }
.mc .gc-c5{ --c1:#e879f9; --c2:#c026d3; --cb:rgba(192,38,211,.30); --cs:rgba(192,38,211,.45); }
.mc .gc-c6{ --c1:#3b82f6; --c2:#1e3a8a; --cb:rgba(30,58,138,.30); --cs:rgba(30,58,138,.45); }
.mc .gc-c7{ --c1:#84cc16; --c2:#3f6212; --cb:rgba(63,98,18,.30); --cs:rgba(63,98,18,.45); }
.mc .gc-c8{ --c1:#e11d48; --c2:#7f1d1d; --cb:rgba(127,29,29,.30); --cs:rgba(127,29,29,.45); }
.mc .gc-c9{ --c1:#a8a29e; --c2:#57534e; --cb:rgba(87,83,78,.30); --cs:rgba(87,83,78,.45); }
.mc .gc-c10{ --c1:#fb923c; --c2:#ea580c; --cb:rgba(234,88,12,.30); --cs:rgba(234,88,12,.45); }
.mc .gc-c11{ --c1:#2dd4bf; --c2:#0d9488; --cb:rgba(13,148,136,.30); --cs:rgba(13,148,136,.45); }
.mc .gc-c12{ --c1:#c084fc; --c2:#9333ea; --cb:rgba(147,51,234,.30); --cs:rgba(147,51,234,.45); }
.mc .gc-c13{ --c1:#38bdf8; --c2:#0284c7; --cb:rgba(2,132,199,.30); --cs:rgba(2,132,199,.45); }
.mc .gc-c14{ --c1:#f472b6; --c2:#db2777; --cb:rgba(219,39,119,.30); --cs:rgba(219,39,119,.45); }
.mc .gc-c15{ --c1:#c9b458; --c2:#7a6a1c; --cb:rgba(122,106,28,.30); --cs:rgba(122,106,28,.45); }
.mc .gc-c16{ --c1:#ea580c; --c2:#9a3412; --cb:rgba(154,52,18,.30); --cs:rgba(154,52,18,.45); }
.mc .gc-c17{ --c1:#4ade80; --c2:#16a34a; --cb:rgba(22,163,74,.30); --cs:rgba(22,163,74,.45); }
.mc .gc-c18{ --c1:#a855f7; --c2:#6b21a8; --cb:rgba(107,33,168,.30); --cs:rgba(107,33,168,.45); }
.mc .gc-c19{ --c1:#3fc6e6; --c2:#0da9d0; --cb:rgba(13,169,208,.30); --cs:rgba(13,169,208,.45); }
.mc .gc-c20{ --c1:#94a3b8; --c2:#475569; --cb:rgba(71,85,105,.30); --cs:rgba(71,85,105,.45); }
.mc .gc-c21{ --c1:#e2c08d; --c2:#a07a3c; --cb:rgba(160,122,60,.30); --cs:rgba(160,122,60,.45); }
.mc .gc-c22{ --c1:#b4a7f5; --c2:#6d5bd0; --cb:rgba(109,91,208,.30); --cs:rgba(109,91,208,.45); }
.mc .gc-c23{ --c1:#34d399; --c2:#059669; --cb:rgba(5,150,105,.30); --cs:rgba(5,150,105,.45); }
.mc .gc-c24{ --c1:#a3b18a; --c2:#56654a; --cb:rgba(86,101,74,.30); --cs:rgba(86,101,74,.45); }
.mc .gc-c25{ --c1:#7fa7c9; --c2:#36648b; --cb:rgba(54,100,139,.30); --cs:rgba(54,100,139,.45); }
.mc .gc-c26{ --c1:#818cf8; --c2:#4f46e5; --cb:rgba(79,70,229,.30); --cs:rgba(79,70,229,.45); }
.mc .gc-c27{ --c1:#c8956b; --c2:#7c4a1e; --cb:rgba(124,74,30,.30); --cs:rgba(124,74,30,.45); }

/* --- cardul: trepte ale fundalului paginii --- */
:root .mc .gc-t{ position:relative; display:flex; flex-direction:column; min-height:128px; border-radius:16px; overflow:hidden; isolation:isolate;
	background:linear-gradient(180deg, #ffffff 0, color-mix(in srgb, var(--pg) 50%, #ffffff) 100%);
	box-shadow:inset 0 0 0 1.5px var(--cb), 0 1px 2px rgba(40,20,80,.05);
	transition:transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, background .5s ease; }
:root .mc .gc-t:hover{ transform:translateY(-2px); box-shadow:inset 0 0 0 1.5px var(--c2), 0 14px 24px -16px var(--cs); }
:root[data-theme="dark"] .mc .gc-t{ background:linear-gradient(180deg, color-mix(in srgb, var(--pg1) 84%, #ffffff) 0, color-mix(in srgb, var(--pg1) 92%, #ffffff) 100%);
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 22px -16px rgba(0,0,0,.75); }
:root[data-theme="dark"] .mc .gc-t:hover{ background:linear-gradient(180deg, color-mix(in srgb, var(--pg1) 78%, #ffffff) 0, color-mix(in srgb, var(--pg1) 88%, #ffffff) 100%);
	box-shadow:inset 0 0 0 1px var(--cb), 0 16px 28px -16px rgba(0,0,0,.85); }
:root .mc .gc-t::before{ content:none; }

:root .mc .gc-a, :root .mc a.gc-a:hover{ position:relative; flex:1 1 auto; display:flex; flex-direction:column; padding:12px 12px 10px; border-radius:16px;
	color:var(--an-text); text-decoration:none; border-bottom:0; }
:root .mc a.gc-a:focus{ outline:0; }
:root .mc a.gc-a:focus-visible{ outline:2px solid var(--sc); outline-offset:-2px; }

/* litera in colt */
:root .mc .gc-k{ position:absolute; right:10px; top:10px; z-index:1; min-width:22px; height:22px; padding:0 6px; border-radius:7px; box-sizing:border-box;
	display:inline-flex; align-items:center; justify-content:center; font-size:11.5px; font-weight:800;
	color:var(--c2); background:color-mix(in srgb, var(--c1) 16%, transparent); box-shadow:inset 0 0 0 1px var(--cb); }
:root[data-theme="dark"] .mc .gc-k{ color:var(--c1); }

/* pictograma */
:root .mc .gc-ic, :root[data-theme="dark"] .mc .gc-ic{ width:36px; height:36px; margin:0 0 8px; flex:0 0 auto; display:flex; align-items:center; justify-content:flex-start;
	background:transparent; box-shadow:none; border-radius:0; color:var(--c2); transition:transform .22s cubic-bezier(.2,.8,.3,1); }
:root[data-theme="dark"] .mc .gc-ic{ color:var(--c1); }
:root .mc .gc-ic svg{ width:34px; height:34px; display:block; }
:root .mc .gc-ic svg:not(.an-ic-c){ width:28px; height:28px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
:root .mc .gc-t:hover .gc-ic{ transform:translateY(-1px) rotate(-4deg) scale(1.06); }

/* textul */
:root .mc .gc-n{ font-size:13px; font-weight:700; line-height:1.25; letter-spacing:-.1px; padding-right:22px; }
:root .mc .gc-n u{ text-decoration-color:var(--c2); text-decoration-thickness:1.5px; text-underline-offset:2px; }
:root .mc .gc-d{ margin-top:3px; font-size:11px; line-height:1.4; color:var(--an-text-dim);
	display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
:root .mc .gc-lips{ align-self:flex-start; display:inline-block; margin-top:5px; padding:1px 8px; border-radius:999px; font-size:9.5px; font-weight:750; letter-spacing:.3px;
	background:var(--an-hover); color:var(--an-text-dim); }
:root .mc .gc-lips.dec{ background:rgba(217,119,6,.14); color:#a35a05; }
:root[data-theme="dark"] .mc .gc-lips.dec{ background:rgba(251,191,36,.13); color:#fbbf24; }
:root .mc .gc-fk{ align-self:flex-start; margin-top:5px; font-size:10px; font-weight:700; color:var(--an-text-dim); }

/* josul: „Deschide” si sageata */
:root .mc .gc-f{ margin-top:auto; padding-top:8px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
:root .mc .gc-go{ font-size:10.5px; font-weight:650; letter-spacing:.2px; color:var(--an-text-dim); transition:color .15s; }
:root .mc .gc-sag{ width:24px; height:24px; flex:0 0 auto; border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
	color:var(--c2); background:color-mix(in srgb, var(--c1) 16%, transparent); transition:background .18s, color .18s, transform .18s; }
:root[data-theme="dark"] .mc .gc-sag{ color:var(--c1); }
:root .mc .gc-sag svg{ width:13px; height:13px; display:block; fill:none; stroke:currentColor; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; }
:root .mc .gc-t:hover .gc-go{ color:var(--c2); }
:root[data-theme="dark"] .mc .gc-t:hover .gc-go{ color:var(--c1); }
:root .mc .gc-t:hover .gc-sag{ color:#ffffff; background:linear-gradient(180deg, var(--c1) 0, var(--c2) 100%); transform:translateX(2px); }

/* „de construit” / „hotarat, in plan”: estompat, ca butoanele inactive */
:root .mc .gc-t.lips{ opacity:.58; }
:root .mc .gc-t.lips .gc-ic{ filter:grayscale(.85); }
:root .mc .gc-t.lips:hover{ transform:none; }

@media (max-width:700px){ :root .mc .gc-hero h1{ font-size:21px; } :root .mc .kbd-l{ display:none; } }
@media (prefers-reduced-motion:reduce){ :root .mc .gc-t, :root .mc .gc-t *{ transition:none !important; } }
@media print{ :root .mc .gc-t{ box-shadow:inset 0 0 0 1px #999; background:#fff; } }
