/* theme_military.css — tema vizuala aviatie militara pentru landing + docs
   Paleta: olive drab + aviation gold + parchment + warning amber
   @author Claude Code
   @version 1.0
   @changes
     v1.0 2026-05-03 — creat initial */
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Stardos+Stencil:wght@400;700&family=Roboto+Slab:wght@300;400;500;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --mil-bg:        #0a1612;
  --mil-bg2:       #050a08;
  --mil-panel:     #1a2a1f;
  --mil-panel2:    #243024;
  --mil-panel3:    #2e3a2c;
  --mil-border:    #4a5a3a;
  --mil-border2:   #6a7a5a;
  --mil-text:      #d8dccd;
  --mil-dim:       #98a486;
  --mil-muted:     #6a7860;
  --mil-gold:      #c9a649;
  --mil-gold-d:    #8e7530;
  --mil-amber:     #d68a00;
  --mil-red:       #b03030;
  --mil-red-l:     #d65454;
  --mil-blue:      #4a6e8e;
  --mil-olive:     #5e7240;
  --mil-olive-d:   #3a4828;
  --mil-cream:     #e8e2c8;
  --mil-parchment: #d4c89a;
}

* { box-sizing: border-box; }
html { background: var(--mil-bg); }
body {
  margin: 0;
  font-family: 'Roboto Slab', Georgia, serif;
  background: var(--mil-bg);
  color: var(--mil-text);
  font-size: 15px;
  line-height: 1.65;
  /* Camo grain — subtle SVG noise */
  background-image:
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(74,90,58,0.04) 6px 7px),
    radial-gradient(ellipse at top, rgba(74,90,58,0.18), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0,0,0,0.4), transparent 70%);
}

h1, h2, h3, h4 {
  font-family: 'Stardos Stencil', 'Black Ops One', 'Impact', sans-serif;
  letter-spacing: 0.04em;
  color: var(--mil-gold);
  text-transform: uppercase;
}
h1 { font-weight: 700; font-size: 2.0em; margin: 0 0 8px; }
h2 { font-weight: 700; font-size: 1.45em; margin: 28px 0 12px; border-bottom: 1px solid var(--mil-olive); padding-bottom: 6px; }
h3 { font-weight: 400; font-size: 1.15em; color: var(--mil-amber); margin: 22px 0 10px; }
h4 { font-weight: 400; font-size: 0.98em; color: var(--mil-parchment); margin: 16px 0 8px; }

a { color: var(--mil-gold); text-decoration: none; border-bottom: 1px dashed var(--mil-gold-d); }
a:hover { color: var(--mil-cream); border-bottom-style: solid; }

code, pre, kbd, .mono {
  font-family: 'Roboto Mono', ui-monospace, Consolas, monospace;
}
code {
  background: var(--mil-bg2);
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid var(--mil-olive-d);
  color: var(--mil-amber);
  font-size: 0.88em;
}
pre {
  background: var(--mil-bg2);
  border: 1px solid var(--mil-olive);
  border-left: 3px solid var(--mil-gold);
  border-radius: 3px;
  padding: 14px 18px;
  overflow-x: auto;
  font-size: 0.86em;
  color: var(--mil-parchment);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* === BANDA TOP "service ribbon" === */
.mil-ribbon {
  background:
    repeating-linear-gradient(135deg,
      var(--mil-olive) 0 14px,
      var(--mil-olive-d) 14px 28px);
  height: 6px;
  border-bottom: 2px solid var(--mil-gold);
}

/* === HEADER === */
.mil-header {
  padding: 32px 28px 20px;
  background:
    linear-gradient(180deg, rgba(10,22,18,0.92) 0%, rgba(20,32,24,0.88) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="180" viewBox="0 0 600 180"><g fill="none" stroke="%234a5a3a" stroke-width="0.3" opacity="0.4"><circle cx="300" cy="90" r="80"/><circle cx="300" cy="90" r="60"/><circle cx="300" cy="90" r="40"/><line x1="0" y1="90" x2="600" y2="90"/><line x1="300" y1="0" x2="300" y2="180"/></g></svg>');
  background-size: cover;
  border-bottom: 2px solid var(--mil-olive);
  position: relative;
}
.mil-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--mil-gold) 0 10px, transparent 10px 20px);
}
.mil-classification {
  font-family: 'Roboto Mono', monospace;
  text-align: center;
  color: var(--mil-amber);
  font-size: 0.75em;
  letter-spacing: 0.3em;
  border: 1px solid var(--mil-amber);
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 14px;
}
.mil-header h1 .icon { color: var(--mil-cream); }
.mil-header .subtitle { color: var(--mil-parchment); font-size: 0.95em; margin-top: 6px; }
.mil-meta { color: var(--mil-dim); font-size: 0.82em; margin-top: 8px; font-family: 'Roboto Mono', monospace; }
.mil-meta code { background: transparent; border: 0; color: var(--mil-gold); padding: 0; }

/* === CONTAINERE === */
.mil-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 22px 80px; }
.mil-wrap.narrow { max-width: 800px; }

/* === CARDURI === */
.mil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.mil-card {
  display: block;
  background: linear-gradient(135deg, var(--mil-panel) 0%, var(--mil-panel2) 100%);
  border: 1px solid var(--mil-border);
  border-left: 4px solid var(--mil-gold);
  border-radius: 4px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.mil-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 100px; height: 100px;
  background: radial-gradient(ellipse, rgba(201,166,73,0.06), transparent 70%);
  pointer-events: none;
}
.mil-card:hover {
  border-color: var(--mil-gold);
  border-left-color: var(--mil-amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,166,73,0.2);
}
.mil-card .icon {
  font-size: 2.4em;
  display: block;
  margin-bottom: 10px;
  color: var(--mil-gold);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.mil-card h2 {
  font-size: 1.1em;
  margin: 0 0 8px;
  color: var(--mil-gold);
  border: 0;
  padding: 0;
}
.mil-card p { color: var(--mil-text); margin: 0 0 10px; font-size: 0.92em; line-height: 1.55; }
.mil-card .meta { color: var(--mil-dim); font-size: 0.78em; font-family: 'Roboto Mono', monospace; }
.mil-card .flow { color: var(--mil-amber); font-size: 0.78em; font-style: italic; margin-top: 8px; }
.mil-card.alt { border-left-color: var(--mil-amber); }
.mil-card.alt .icon, .mil-card.alt h2 { color: var(--mil-amber); }
.mil-card.warn { border-left-color: var(--mil-red); }
.mil-card.warn .icon, .mil-card.warn h2 { color: var(--mil-red-l); }

/* === SECTIUNI INFORMATIVE === */
.mil-section {
  background: var(--mil-panel);
  border: 1px solid var(--mil-border);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 24px 0;
}
.mil-section h3 { margin-top: 0; }
.mil-section ol, .mil-section ul { color: var(--mil-text); }
.mil-section.briefing {
  border-left: 4px solid var(--mil-blue);
  background:
    linear-gradient(90deg, rgba(74,110,142,0.08) 0%, transparent 30%),
    var(--mil-panel);
}
.mil-section.classified {
  border: 1px dashed var(--mil-amber);
  position: relative;
}
.mil-section.classified::before {
  content: "RESTRICTED USE";
  position: absolute; top: -10px; left: 14px;
  background: var(--mil-bg);
  padding: 0 8px;
  color: var(--mil-amber);
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 0.78em;
  letter-spacing: 0.2em;
}

/* === FOOTER === */
.mil-footer {
  margin-top: 60px;
  padding: 22px 28px 18px;
  border-top: 2px solid var(--mil-olive);
  position: relative;
  color: var(--mil-dim);
  font-size: 0.82em;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
}
.mil-footer::before {
  content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--mil-gold) 0 10px, transparent 10px 20px);
}
.mil-footer .roundel {
  display: inline-block; margin: 0 6px;
  color: var(--mil-gold);
}

/* === BADGE / STATUS === */
.mil-badge {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.74em;
  padding: 2px 10px;
  border-radius: 2px;
  background: var(--mil-olive-d);
  border: 1px solid var(--mil-olive);
  color: var(--mil-cream);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mil-badge.gold  { background: rgba(201,166,73,0.15); border-color: var(--mil-gold);  color: var(--mil-gold); }
.mil-badge.red   { background: rgba(176,48,48,0.18);  border-color: var(--mil-red);   color: var(--mil-red-l); }
.mil-badge.amber { background: rgba(214,138,0,0.15);  border-color: var(--mil-amber); color: var(--mil-amber); }
.mil-badge.live  {
  background: rgba(80,160,80,0.18); border-color: #5aa05a; color: #8eda8e;
}
.mil-badge.live::before {
  content: "● "; color: #ff5a5a; animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100% {opacity:1;} 50% {opacity:0.3;} }

/* === ASCII DIAGRAMS === */
.mil-ascii {
  background: var(--mil-bg2);
  border: 1px solid var(--mil-olive);
  border-left: 3px solid var(--mil-gold);
  border-radius: 3px;
  padding: 16px 20px;
  margin: 18px 0;
  font-family: 'Roboto Mono', ui-monospace, Consolas, monospace;
  font-size: 0.82em;
  line-height: 1.45;
  color: var(--mil-parchment);
  overflow-x: auto;
  white-space: pre;
}

/* === TABELE === */
table.mil { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.9em; }
table.mil th, table.mil td { border: 1px solid var(--mil-olive); padding: 7px 11px; text-align: left; vertical-align: top; }
table.mil th { background: var(--mil-olive-d); color: var(--mil-gold); font-family: 'Stardos Stencil', sans-serif; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85em; }
table.mil tr:nth-child(even) td { background: rgba(74,90,58,0.08); }
table.mil code { font-size: 0.86em; }

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .mil-header { padding: 22px 18px 16px; }
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }
  .mil-wrap { padding: 18px 14px 60px; }
  .mil-card { padding: 16px 18px; }
}

/* === PRINT === */
@media print {
  body { background: white; color: #1a1a1a; font-size: 11pt; line-height: 1.4; }
  h1, h2, h3, h4 { color: #2a3a1c; page-break-after: avoid; }
  h1 { font-size: 18pt; }
  h2 { font-size: 14pt; border-bottom: 1px solid #6a7a5a; }
  h3 { font-size: 12pt; color: #5a3a1a; }
  a { color: #2a4a6a; text-decoration: underline; }
  pre, code, .mil-ascii { background: #f4f1e8; color: #1a1a1a; border-color: #6a7a5a; }
  .mil-card, .mil-section { background: white; color: #1a1a1a; border-color: #6a7a5a; page-break-inside: avoid; }
  .mil-card .icon { color: #5a3a1a; }
  table.mil th { background: #d4c89a; color: #1a1a1a; }
  table.mil tr:nth-child(even) td { background: #f8f4e6; }
  .mil-ribbon, .mil-footer::before { display: none; }
  .mil-header { background: white; border-bottom: 2px solid #6a7a5a; padding: 10pt 0; }
}
