/* ===== e3ev.com — Główny arkusz stylów ===== */
/* Czcionki */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ===== CSS Variables ===== */
:root {
  --bg:         #090c10;
  --bg2:        #0f1318;
  --bg3:        #161b24;
  --surface:    #1a2030;
  --border:     #1e2d3d;
  --accent:     #00d4ff;
  --accent2:    #39ff6e;
  --accent3:    #ff6a00;
  --text:       #cdd8e8;
  --text-muted: #566a80;
  --text-head:  #e8f0fc;
  --card-glow:  0 0 30px rgba(0,212,255,.08);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

body.light {
  --bg:         #f0f4f8;
  --bg2:        #e4eaf2;
  --bg3:        #dbe3ed;
  --surface:    #ffffff;
  --border:     #c5d0de;
  --accent:     #006fa6;
  --accent2:    #1a8a3c;
  --accent3:    #d95400;
  --text:       #2d3a4a;
  --text-muted: #7a8fa8;
  --text-head:  #0f1c2e;
  --card-glow:  0 4px 24px rgba(0,111,166,.08);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Exo 2', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { opacity: .8; }

img { max-width: 100%; height: auto; display: block; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Orbitron', monospace;
  color: var(--text-head);
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
li { margin-bottom: .4rem; }

strong { color: var(--text-head); font-weight: 600; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: .8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--bg3);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ===== Layout ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,12,16,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

body.light #site-header {
  background: rgba(240,244,248,.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  outline: none;
}

/* ── Inline SVG logo ── */
.logo-svg {
  display: block;
  height: 44px;
  width: auto;
  overflow: visible;
}

/* Błyskawica */
.logo-bolt {
  fill: var(--accent2);
  transition: fill var(--transition);
}
/* Linia akcentu pod błyskawicą */
.logo-line {
  fill: var(--accent);
  transition: fill var(--transition);
}
/* Pierwsza litera "e" */
.logo-l1 {
  fill: var(--accent);
  transition: fill var(--transition);
}
/* Środkowe "3e" */
.logo-l2 {
  fill: var(--accent2);
  transition: fill var(--transition);
}
/* Ostatnia litera "v" */
.logo-l3 {
  fill: var(--accent);
  transition: fill var(--transition);
}
/* Tagline */
.logo-tag {
  fill: var(--text-muted);
  font-family: 'Exo 2', sans-serif;
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 1.8px;
}

/* Hover – początek i koniec → pomarańczowy */
.logo:hover .logo-l1,
.logo:focus  .logo-l1,
.logo:hover .logo-l3,
.logo:focus  .logo-l3 {
  fill: var(--accent3);
}
.logo:hover .logo-bolt,
.logo:focus  .logo-bolt {
  fill: var(--accent3);
}
.logo:hover .logo-line,
.logo:focus  .logo-line {
  fill: var(--accent3);
}

/* Tryb dzienny – subtelna korekta kontrastu */
body.light .logo-bolt { filter: brightness(.85); }
body.light .logo-l1,
body.light .logo-l2,
body.light .logo-l3  { filter: brightness(.75) saturate(1.2); }

/* Stopka – mniejsza wersja */
.footer-brand .logo-svg { height: 36px; }

nav { display: flex; align-items: center; gap: 1.5rem; }

nav a {
  font-family: 'Orbitron', monospace;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color var(--transition);
}

nav a:hover, nav a.active { color: var(--accent); opacity: 1; }

/* ===== Theme Toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg3);
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle .icon { font-size: 1rem; }

.theme-toggle .label {
  font-family: 'Orbitron', monospace;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0,212,255,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(57,255,110,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Orbitron', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent2);
  border: 1px solid rgba(57,255,110,.3);
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  background: rgba(57,255,110,.05);
}

.hero-badge::before { content: '⚡'; }

.hero-title {
  margin-bottom: 1.2rem;
}

.hero-title .line1 { display: block; color: var(--text-muted); font-size: clamp(.9rem, 2vw, 1.1rem); font-weight: 300; letter-spacing: .2em; margin-bottom: .3rem; }
.hero-title .line2 { display: block; color: var(--text-head); }
.hero-title .line3 { display: block; color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 520px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover { background: #00b8e0; color: #000; opacity: 1; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,212,255,.3); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-diagram {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ===== Section ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg2); }

.section-header { margin-bottom: 2.5rem; }
.section-kicker {
  font-family: 'Orbitron', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: .5rem;
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(0,212,255,.3);
  box-shadow: var(--card-glow);
  transform: translateY(-3px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-family: 'Orbitron', monospace;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: .6rem;
  letter-spacing: .02em;
}

.card-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ===== Article Cards ===== */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.article-card:hover { border-color: rgba(0,212,255,.3); box-shadow: var(--card-glow); transform: translateY(-3px); }

.article-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.article-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .8rem;
  flex-wrap: wrap;
}

.article-cat {
  font-family: 'Orbitron', monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  padding: .2rem .6rem;
  border-radius: 4px;
}

.article-date { font-size: .75rem; color: var(--text-muted); }

.article-card-title {
  font-family: 'Orbitron', monospace;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: .7rem;
  line-height: 1.4;
}

.article-card-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }

.read-more {
  font-family: 'Orbitron', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.read-more::after { content: '→'; }

/* Article header strip */
.article-header-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* ===== Feature List ===== */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  font-size: .875rem;
  color: var(--text);
  margin: 0;
}

.feature-list li::before {
  content: '▸';
  color: var(--accent2);
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ===== Privacy Banner ===== */
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform .5s ease;
}

.privacy-banner.visible { transform: translateY(0); }

.privacy-banner p { font-size: .82rem; color: var(--text-muted); margin: 0; flex: 1; min-width: 200px; }
.privacy-banner a { color: var(--accent); }

.privacy-btns { display: flex; gap: .5rem; flex-shrink: 0; }

.btn-cookie {
  padding: .5rem 1rem;
  border-radius: 5px;
  font-family: 'Orbitron', monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}

.btn-cookie-accept {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-cookie-accept:hover { background: #00b8e0; }
.btn-cookie:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Footer ===== */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: .8rem; }
.footer-brand p { font-size: .82rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-legal {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  border-left: 2px solid var(--border);
  padding-left: .75rem;
  margin-bottom: .8rem;
  opacity: .75;
}

.footer-col h4 {
  font-family: 'Orbitron', monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .82rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: .75rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { font-size: .75rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); opacity: 1; }

/* ===== Article Page ===== */
.article-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.article-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.05) 0%, transparent 70%);
  pointer-events: none;
}

.article-content {
  padding: 3rem 0;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.article-content h3 { margin-top: 2rem; margin-bottom: .75rem; }

.article-content p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.2rem; }

.article-content ul, .article-content ol {
  margin-bottom: 1.4rem;
}

.article-content li { margin-bottom: .5rem; font-size: 1rem; line-height: 1.7; }

.tip-box {
  background: rgba(57,255,110,.05);
  border: 1px solid rgba(57,255,110,.2);
  border-left: 3px solid var(--accent2);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.tip-box .tip-label {
  font-family: 'Orbitron', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.tip-box p { margin: 0; font-size: .92rem; color: var(--text); }

.warning-box {
  background: rgba(255,106,0,.05);
  border: 1px solid rgba(255,106,0,.2);
  border-left: 3px solid var(--accent3);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.warning-box .tip-label { color: var(--accent3); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}

.info-table th {
  background: var(--bg3);
  color: var(--text-head);
  font-family: 'Orbitron', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--accent);
}

.info-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.info-table tr:hover td { background: var(--bg3); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-family: 'Orbitron', monospace;
  letter-spacing: .05em;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); opacity: 1; }
.breadcrumb .sep { color: var(--border); }

/* ===== Related Articles ===== */
.related-section { padding: 3rem 0; background: var(--bg2); border-top: 1px solid var(--border); }

/* ===== Hamburger (mobile) ===== */
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: .4rem; }
.hamburger span { width: 22px; height: 2px; background: var(--text); display: block; transition: all var(--transition); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: fixed; inset: 60px 0 0 0; background: var(--bg); z-index: 99; padding: 2rem; gap: 1.5rem; align-items: flex-start; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .info-table { display: block; overflow-x: auto; }
}

/* ===== Utility ===== */
.text-accent { color: var(--accent); }
.text-accent2 { color: var(--accent2); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-2 { gap: 1rem; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== AdSense ===== */
.ad-wrapper {
  margin: 2rem 0;
  text-align: center;
  min-height: 90px;
}

.ad-label {
  font-size: .6rem;
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
