/* ========== RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== ZMIENNE KOLORÓW ========== */
:root {
  /* Light */
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --color-primary: #1d4ed8;
  --color-primary-soft: #eff6ff;
  --color-accent: #22d3ee;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);

  --radius-card: 1rem;
  --radius-full: 999px;

  --transition-fast: 0.18s ease-out;
  --transition-normal: 0.25s ease-out;
}

/* Dark theme overrides */
body.theme-dark {
  --color-bg: #020617;
  --color-bg-alt: #020617;
  --color-surface: #030712;
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border: #1f2937;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
}

/* ========== GLOBALNE ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Kontener */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sekcje */
section {
  padding: 4rem 0;
}

.alt-section {
  background-color: var(--color-bg-alt);
}

/* ========== PRZYCISKI ========== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.primary-button:hover {
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.secondary-button {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.secondary-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.full-width {
  width: 100%;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

body.theme-dark .header {
  background-color: rgba(2, 6, 23, 0.92);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Nawigacja desktop */
.nav-menu {
  display: none;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.nav-menu a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-text-muted);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Przełącznik motywu */
.theme-toggle {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hamburger */
.menu-toggle {
  border: none;
  background: none;
  font-size: 1.35rem;
  cursor: pointer;
  margin-left: 0.75rem;
}

/* Mobilne menu */
.nav-menu-mobile {
  display: none;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.nav-menu-mobile ul {
  list-style: none;
}

.nav-menu-mobile li {
  border-top: 1px solid var(--color-border);
}

.nav-menu-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
}

.nav-menu-mobile a:hover {
  background-color: rgba(148, 163, 184, 0.15);
}

/* === HERO === /*

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  color: #ffffff;
  overflow: hidden;

  /* Tło hero */
  background-color: #000000;
  background-image: url("../images/divu-hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Delikatne przyciemnienie tła */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0)
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.75),
      rgba(0,0,0,0.4) 40%,
      rgba(0,0,0,0.85)
    ),
    radial-gradient(circle at 50% 35%,
      rgba(0,0,0,0.5),
      transparent 60%
    );
}

/* Layout hero */
.hero-container {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 4rem;
  z-index: 1;
}

/* Teksty */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero-content h1 span {
  background: linear-gradient(90deg, #38bdf8, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.02rem;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
}

/* Tło za tekstem (dla lepszej czytelności) */
.hero-content::before {
  content: "";
  position: absolute;
  inset: -12px -24px -20px -12px;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(0,0,0,0.9) 0,
    rgba(0,0,0,0.6) 40%,
    transparent 75%
  );
  pointer-events: none;
  z-index: -1;
}

/* Przyciski */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero .secondary-button {
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
}

.hero .secondary-button:hover {
  border-color: #3b82f6;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* === URUCHOM DIVU — PREMIUM GLOW BUTTON === */

.hero-buttons .primary-button,
.hero-buttons .hero-cta-primary,
.hero-buttons .button.primary-button {
  padding: 0.85rem 2.2rem;
  border-radius: 999px;

  /* ciemne szkło */
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);

  /* delikatna niebieska obwódka */
  border: 1px solid rgba(56, 189, 248, 0.35);

  /* tekst w kolorze Move Divu */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, #38bdf8, #22d3ee, #6366f1);

  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;

  /* Poświata */  
  box-shadow:
    0 0 12px rgba(56,189,248,0.28),
    0 0 26px rgba(56,189,248,0.20);
  transition: 0.25s ease;
  animation: divuGlowPulse 3s ease-in-out infinite;

}

.hero-buttons .primary-button:hover,
.hero-buttons .hero-cta-primary:hover,
.hero-buttons .button.primary-button:hover {
  animation: none;
  box-shadow:
    0 0 22px rgba(56,189,248,0.55),
    0 0 45px rgba(56,189,248,0.35);
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}


/* Tagi */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #d1d5db;
}

.hero-badges span {
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(8px);
  background-color: rgba(15, 23, 42, 0.5);
}

/* --- HERO CARD nowy styl --- */

.hero-card {
  position: relative;
  padding: 1.6rem 1.8rem;
  border-radius: 1.2rem;

  /* Soft blur jak pod lewym tekstem */
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);

  /* Subtelny cień + glow */
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.45),          /* główny cień */
    0 0 22px rgba(59, 130, 246, 0.20);         /* NIEBIESKI GLOW 20% */

  border: none;

  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: heroCardIn 0.7s ease-out 0.4s forwards;
}

/* zero gradientów, zero bajerów */
.hero-card::before {
  content: none;
}

/* Label "Przykładowy kurs" też trochę rozświetlimy */
.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cbd5e1;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-card h2 {
  font-size: 1.22rem;
  margin: 0 0 0.4rem;
  color: #fff;
}

.hero-card-meta {
  color: #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.hero-card-driver {
  color: #9ca3af;
  font-size: 0.92rem;
}

.hero-card-driver span,
.hero-card-rating {
  color: #fbbf24;
}

/* ========== SEKCJE TEKSTOWE ========== */
.about-container,
.how-container,
.features-container,
.cta-container {
  text-align: center;
}

.about-container h2,
.how-container h2,
.features-container h2,
.cta-container h2 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
}

.about-container p,
.cta-container p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* Jak działa */
.steps {
  list-style: none;
  text-align: left;
  margin-top: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  padding: 1.1rem 1rem;
  border-radius: 0.9rem;
  background-color: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.steps h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.steps p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Zalety */
.features-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.feature {
  text-align: left;
  padding: 1.3rem 1.2rem;
  border-radius: 1rem;
  background-color: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 99, 235, 0.45);
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* CTA */
.cta {
  text-align: center;
}

.cta-container p {
  margin: 0.75rem auto 1.75rem;
}

/* ========== APP ========== */
.app {
  background: radial-gradient(circle at top, rgba(226, 232, 240, 0.6), transparent 60%);
}

body.theme-dark .app {
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.35), transparent 60%);
}

.app-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.app-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.app-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* Karta / card */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* App shell – mobile: kolumnowo */
.app-shell {
  display: grid;
  gap: 1.25rem;
}

/* Pola */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
}

.field span {
  font-weight: 500;
}

.field input,
.field select {
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.field input:focus,
.field select:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.field textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.field textarea:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.route-summary {
  margin-top: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background-color: var(--color-primary-soft);
  font-size: 0.85rem;
}

.route-summary p {
  margin-bottom: 0.15rem;
}

.route-summary small {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-text-muted);
}

/* Lista kierowców */
.drivers-panel {
  max-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Kontener przycisku + licznika */
.drivers-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Okregły przycisk odświeżania */
.refresh-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;

  border: 1.5px solid #00c4ff;      /* cienka niebieska obwódka */
  background: transparent;          /* ✅ brak czarnego środka */

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 0 12px rgba(0, 196, 255, 0.28),
    0 0 22px rgba(0, 196, 255, 0.20);

  backdrop-filter: blur(6px);
  transition: 0.25s ease;
}

/* jasny „szklany” środek */
.refresh-icon-btn::before {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #e4faff 45%, #def6ff 100%);
  z-index: 1;
}

/* większa ikonka */
.refresh-icon-symbol {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  font-weight: 600;
  color: #00c4ff;
  pointer-events: none;
}

/* hover */
.refresh-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 18px rgba(0, 196, 255, 0.55),
    0 0 28px rgba(0, 196, 255, 0.35);
}

/* active */
.refresh-icon-btn:active {
  transform: scale(0.95);
}

/* animacja obrotu */
@keyframes spin-refresh {
  to {
    transform: rotate(360deg);
  }
}
.refresh-icon-btn.is-rotating .refresh-icon-symbol {
  animation: spin-refresh 0.6s linear infinite;
}

/* ciemny tryb — też bez czarnego środka */
body.theme-dark .refresh-icon-btn {
  background: transparent;
}

.drivers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.drivers-header h3 {
  font-size: 1.05rem;
}

.drivers-count {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.drivers-list {
  margin-top: 0.25rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  display: grid;
  gap: 0.75rem;
}

/* Karta kierowcy */
.driver-card {
  display: grid;
  grid-template-columns: auto 1fr auto; /* avatar | treść | auto */
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.driver-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.driver-card.active {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.18), transparent 70%), var(--color-bg);
}

.driver-car-thumb {
  width: 82px;
  height: 56px;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.driver-car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.85);
}

.driver-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.driver-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem;
}

.driver-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.driver-rating {
  font-size: 0.75rem;
  color: #fbbf24;
}

.driver-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.driver-price {
  font-size: 0.85rem;
  font-weight: 500;
}

.driver-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.driver-tag {
  font-size: 0.7rem;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
}

/* ==== Styl nagłówka pola (Status dostępności) */
.status-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0.55rem 0 0.35rem 0;
  position: relative;
  display: inline-block;
  letter-spacing: -0.2px;
}

.status-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 115%;
  height: 160%;

  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.20) 0%,
    rgba(56, 189, 248, 0.07) 45%,
    rgba(56, 189, 248, 0) 80%
  );
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.status-label:hover::after {
  opacity: 0.85;
}

@keyframes softGlowGreen {
  0%   { box-shadow: 0 0 4px rgba(34,197,94,0.25); }
  50%  { box-shadow: 0 0 9px rgba(34,197,94,0.40); }
  100% { box-shadow: 0 0 4px rgba(34,197,94,0.25); }
}

@keyframes softGlowRed {
  0%   { box-shadow: 0 0 4px rgba(239,68,68,0.25); }
  50%  { box-shadow: 0 0 9px rgba(239,68,68,0.40); }
  100% { box-shadow: 0 0 4px rgba(239,68,68,0.25); }
}

.driver-status-helper {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.22rem 0.8rem;
  border-radius: 999px;

  backdrop-filter: blur(5px);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(148,163,184,0.35);

  font-size: 0.85rem;
  font-weight: 600;

  /* gradient Move DIVU */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, #38bdf8, #22d3ee, #6366f1);

  margin-top: 0.15rem;
}

/* Zielony/czerwony glow zależnie od statusu */
.driver-status-helper.online {
  animation: softGlowGreen 2.6s ease-in-out infinite;
}

.driver-status-helper.offline {
  animation: softGlowRed 2.6s ease-in-out infinite;
}

/* kontener tylko dla tego jednego pola */
.field-status .status-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* żeby na mniejszych ekranach mogło się złamać */
}

/* label przy statusie – bez dużego marginesu w dół */
.field-status .status-label {
  margin: 0;
}

/* Przycisk "Zaktualizuj lokalizację" – jak główny CTA */

.driver-location-save-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;

  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;

  font-size: 0.95rem;
  font-weight: 600;

  background: linear-gradient(90deg, #00b4ff, #007bff);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 180, 255, 0.35);

  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease,
    transform 0.15s ease;
}

.driver-location-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 180, 255, 0.45);
}

.driver-location-save-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 180, 255, 0.25);
  opacity: 0.96;
}

body.theme-dark .driver-location-save-btn {
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

/* ===== DIVU DRIVE MODE ===== */

/* ===== DIVU Drive Mode – szkło + niebieska obwódka + lekki glow ===== */

/* ===== DIVU Drive Mode – szkło + subtelna niebieska obwódka ===== */

.driver-drive-mode-section {
  position: relative;
  text-align: center;
  margin: 2rem 0 2rem;

  padding: 1.8rem 1.4rem;
  border-radius: 1.4rem;

  /* szkło – półprzezroczyste, ale BEZ kolorów */
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  /* subtelna niebieska obwódka */
  border: 1.8px solid rgba(0, 180, 255, 0.55);

  /* delikatny glow DIVU */
  box-shadow:
    0 0 22px rgba(0, 180, 255, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.06);

  /* bardzo delikatna animacja „oddychania” */
  animation: driveModeSoftGlow 5s ease-in-out infinite alternate;
}

/* animacja glow – bardzo subtelna */
@keyframes driveModeSoftGlow {
  0% {
    box-shadow:
      0 0 16px rgba(0, 180, 255, 0.20),
      0 6px 14px rgba(0, 0, 0, 0.04);
  }
  100% {
    box-shadow:
      0 0 26px rgba(0, 180, 255, 0.32),
      0 10px 20px rgba(0, 0, 0, 0.06);
  }
}

/* tytuł */
.driver-drive-mode-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

/* podtytuł */
.driver-drive-mode-subtitle {
  font-size: 0.96rem;
  color: #4b5563;
}

/* ===== Tryb ciemny ===== */

body.theme-dark .driver-drive-mode-section {
  background: rgba(15, 23, 42, 0.45);           /* ciemne mleczne szkło */
  border-color: rgba(56, 189, 248, 0.55);       /* neonowy turkus */

  box-shadow:
    0 0 32px rgba(56, 189, 248, 0.42),
    0 14px 28px rgba(0, 0, 0, 0.55);
}

body.theme-dark .driver-drive-mode-title {
  color: #e5e7eb;
}

body.theme-dark .driver-drive-mode-subtitle {
  color: #9ca3af;
}

/* == Mapa == */
.map-panel h3 {
  margin-bottom: 0.65rem;
}

.map {
  width: 100%;
  height: 260px;
  border-radius: 0.9rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.map-hint {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ========== MODALE ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 3rem 1rem;
  width: 100%;
  max-width: 640px;          /* było 480px – trochę więcej miejsca */
  max-height: 90vh;          /* nie wyjdzie poza ekran */
  overflow-y: auto;          /* jeśli treści jest dużo, przewijamy wewnątrz */
  background-color: var(--color-surface);
  border-radius: 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.55);
  animation: slideUp 0.23s ease-out;
}

@media (max-width: 640px) {
  .modal-content {
    margin: 1.5rem 1rem;
    border-radius: 1rem;
  }
}

.modal-body {
  padding: 1.4rem 1.35rem 1.3rem;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
}

/* === HERO MODAL === */

.modal-hero {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 1.2rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.modal-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68);
}

.modal-hero-overlay {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 1rem;
}

.modal-avatar-large {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff80;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin: 0 auto 0.6rem;
  margin-top: 12px;
  display: block;
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.1rem 0;
  color: white;
}

.modal-rating-line {
  color: #ffd54f;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.modal-car {
  color: #d1d5db;
  font-size: 0.95rem;
  margin: 0;
}

/* Opis */
.modal-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

/* Grid */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.modal-grid p {
  font-size: 0.9rem;
}

/* Opinie */
.modal-reviews h4 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.modal-reviews li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

/* Stopka */
.footer {
  background-color: #020617;
  color: #9ca3af;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.footer a {
  color: #e5e7eb;
  text-decoration: underline;
}

/* Utility */
.hidden {
  display: none;
}

/* Lokalizacja */

/* Kontener input + ikonka */
.field-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Input zajmuje całą szerokość, obok mały przycisk */
.field-with-icon input {
  flex: 1;
}

/* Okrągły przycisk lokalizacji */
.location-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid #00c4ff;              /* kolor jak poświata */
  background: rgba(0, 0, 0, 0.9);           /* ciemne tło jak przy „Uruchom DIVU” */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 196, 255, 0.45); /* lekka poświata */
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* SVG w środku – dwukolorowe */
.location-icon {
  width: 18px;
  height: 18px;
}

/* obwódka ikony = kolor poświaty, środek ciemny */
.location-icon circle {
  stroke: #00c4ff;
}

.location-icon path {
  fill: #00c4ff;   /* wypełnienie w kolorze poświaty */
  stroke: #000000; /* czarny kontur */
}

/* hover / focus */
.location-btn:hover,
.location-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 196, 255, 0.7);
}

/* w trybie ciemnym – trochę jaśniejsze tło, żeby obrys był widoczny */
body.theme-dark .location-btn {
  background: radial-gradient(circle at 30% 30%, #111827, #020617);
}

/* w trybie jasnym – delikatne tło, dalej neonowe obramowanie */
body:not(.theme-dark) .location-btn {
  background: radial-gradient(circle at 30% 30%, #f9fafb, #e5f3ff);
}

/* ========== BOX TRASY ========== */

/* Bazowy wygląd boxa z trasą */
.route-summary {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(234,242,255,0.92));
  font-size: 0.9rem;
}

/* Tekst w jasnym trybie */
.route-summary p,
.route-summary strong,
.route-summary span {
  color: #0f172a;
}

/* DARK MODE – czytelne tło + tekst */
body.theme-dark .route-summary {
  background: radial-gradient(circle at 0 0, #1e293b, #020617);
  border: 1px solid rgba(56, 189, 248, 0.4); /* lekki niebieski border */
  box-shadow: 0 0 20px rgba(15, 118, 255, 0.35);
}

body.theme-dark .route-summary p,
body.theme-dark .route-summary strong,
body.theme-dark .route-summary span {
  color: #e5f0ff;
  opacity: 0.95;
}

/* ========== AUTH PANEL ========== */

#auth-panel h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.auth-form h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.auth-form .field {
  margin-bottom: 0.6rem;
}

#auth-message {
  font-size: 0.85rem;
  min-height: 1rem;
}

#user-panel p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ====== Driver status toggle (panel kierowcy) ====== */

.driver-status-group {
  display: inline-flex;
  gap: 0.55rem;
  margin: 0.5rem 0 0.4rem;
}

/* „Pigułka” z napisem Dostępny / Niedostępny */
.driver-status-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  padding: 0.32rem 0.85rem;
  border-radius: 999px;

  border: 1px solid var(--color-border);

  font-size: 0.9rem;
  cursor: pointer;

  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    color 0.2s ease;
}

/* standardowe radio – zostawiamy, ale można też ukryć */
.driver-status-option input[type="radio"] {
  accent-color: var(--color-primary);
}

/* hover – delikatne podświetlenie */
.driver-status-option:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.25);
}

/* Tekst w pigułce – żeby płynnie zmieniał kolor / grubość */
.driver-status-option span {
  transition: color 0.2s ease, font-weight 0.2s ease;
}

/* ====== STAN AKTYWNY – radio zaznaczone ====== */
/* Wymaga :has(), działa w nowoczesnych przeglądarkach */

.driver-status-option:has(input[type="radio"]:checked) {
  border-color: rgba(56, 189, 248, 0.9);
  background-color: rgba(240, 249, 255, 0.95);
  box-shadow:
    0 0 8px rgba(56, 189, 248, 0.30),
    0 0 15px rgba(56, 189, 248, 0.20);
}

.driver-status-option:has(input[type="radio"]:checked) span {
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== DARK MODE – poprawa czytelności etykiet w panelu kierowcy ===== */

body.theme-dark #driver-panel .status-label,
body.theme-dark #driver-panel .field > span {
  color: #e5e7eb;            /* jasny, ale nie oślepiający */
}

/* Podpisy / małe opisy pod polami (np. "Możesz wpisać adres ręcznie...") */
body.theme-dark #driver-panel small,
body.theme-dark #driver-panel .driver-location-helper,
body.theme-dark #driver-panel .driver-location-hint {
  color: #9ca3af;            /* szary jak w reszcie dark UI */
}

/* Sam tekst w inputach też lekko rozjaśnij, jeśli jest za ciemny */
body.theme-dark #driver-panel input,
body.theme-dark #driver-panel textarea {
  color: #e5e7eb;
}

/* Placeholder w dark mode – delikatnie jaśniejszy */
body.theme-dark #driver-panel input::placeholder,
body.theme-dark #driver-panel textarea::placeholder {
  color: #6b7280;
}

/* ========== ANIMACJE ========== */
@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ANIMACJA WEJŚCIA KARTY HERO === */
@keyframes heroCardIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* === MIKRO-ANIMACJA GLOW DLA URUCHOM DIVU === */
@keyframes divuGlowPulse {
  0% {
    box-shadow:
      0 0 10px rgba(56,189,248,0.22),
      0 0 22px rgba(56,189,248,0.16);
  }
  50% {
    box-shadow:
      0 0 16px rgba(56,189,248,0.33),
      0 0 32px rgba(56,189,248,0.24);
  }
  100% {
    box-shadow:
      0 0 12px rgba(56,189,248,0.28),
      0 0 26px rgba(56,189,248,0.20);
  }
}

/* Desktop glow */
@keyframes heroGlow {
  0% { box-shadow: 0 0 18px 6px rgba(59,130,246,0.45); }
  50% { box-shadow: 0 0 28px 10px rgba(59,130,246,0.75); }
  100% { box-shadow: 0 0 18px 6px rgba(59,130,246,0.45); }
}

/* Mobile glow – lżejszy, żeby działał */
@keyframes heroGlowMobile {
  0% { box-shadow: 0 0 10px 3px rgba(59,130,246,0.25); }
  50% { box-shadow: 0 0 16px 5px rgba(59,130,246,0.45); }
  100% { box-shadow: 0 0 10px 3px rgba(59,130,246,0.25); }
}


/* ========== MEDIA QUERIES ========== */
@media (min-width: 768px) {
  .nav-menu {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu-mobile {
    display: none !important;
  }

  .hero-container {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }

  .hero-card {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .features-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    grid-template-areas:
      "search map"
      "drivers map";
    gap: 1.3rem;
  }

  .search-panel {
    grid-area: search;
  }

  .drivers-panel {
    grid-area: drivers;
  }

  .map-panel {
    grid-area: map;
  }

  .map {
    height: 100%;
    min-height: 360px;
  }

  .modal-content {
    margin-top: 5rem;
  }
}

/* ===== HERO – MOBILE FIX v2 (dużo jaśniejsze tło) ===== */
@media (max-width: 768px) {

  .hero {
    padding: 3.5rem 0 3.2rem;
    background-size: 200%;
    background-position: center 18%;
  }

  /* mocno rozjaśniony overlay */
  .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.20) 40%,
        rgba(0,0,0,0.45)
      ),
      radial-gradient(
        circle at 50% 35%,
        rgba(0,0,0,0.15),
        transparent 65%
      );
  }

  .hero-content::before {
    background: radial-gradient(
      circle at 30% 20%,
      rgba(0,0,0,0.35) 0,
      rgba(0,0,0,0.25) 40%,
      transparent 75%
    );
  }

  .hero-cta-primary {
    animation: heroGlowMobile 3.5s ease-in-out infinite;
  }
}