/* =========================================================
   AVTO JERENKO — POPRAVKI
   ========================================================= */

/* ── Spacing ─────────────────────────────────────────────── */

.section { padding: 72px 0; }
.hero { padding: 56px 0 72px; }
.page-hero { padding: 70px 0; }

h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3.2rem); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.8rem); }

/* ── Logo ────────────────────────────────────────────────── */

.site-header .logo { filter: none; transition: filter 0.25s ease; }

body.dark-mode .site-header .logo {
  filter: none;
  content: url("../slike/logo-light.svg");
}

body.dark-mode .footer-logo {
  filter: none;
  content: url("../slike/logo-light.svg");
}

.page-hero .logo {
  filter: none !important;
  content: url("../slike/logo.svg") !important;
}

/* ── Hero kartica ────────────────────────────────────────── */

.hero-image-card {
  padding: 4px;
  border-radius: 36px;
  transform: rotate(0deg);
  border-width: 1px;
}

.hero-image-card img {
  aspect-ratio: 6 / 4;
  object-position: center 25%;
}

/* ── Form status stran ───────────────────────────────────── */

.form-status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.form-status-card {
  max-width: 500px;
  width: 100%;
  padding: 48px 42px;
  text-align: center;
  border-radius: 34px;
}

.form-status-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin-top: 16px;
  letter-spacing: -0.03em;
}

.form-status-card p:not(.eyebrow) { margin-top: 12px; font-size: 1rem; }
.status-icon { width: 58px; height: 58px; margin: 0 auto 20px; font-size: 1.5rem; }

.status-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.status-actions .btn { min-height: 46px; padding: 0 20px; font-size: 0.94rem; }

/* ── Admin tabela ────────────────────────────────────────── */

.admin-thumb {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
}

.admin-no-img {
  display: inline-block;
  width: 72px; height: 52px;
  border-radius: 10px;
  background: rgba(0,0,0,.05);
  color: #6e6e73;
  text-align: center;
  line-height: 52px;
}

.admin-sub { display: block; margin-top: 4px; font-size: .84rem; color: #6e6e73; }
.admin-row-actions { display: flex; align-items: center; gap: 8px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }

.btn-danger {
  background: rgba(176,0,32,.10);
  color: #b00020;
  border: 1px solid rgba(176,0,32,.18);
}
.btn-danger:hover { background: #b00020; color: #fff; }

.admin-empty { padding: 32px; text-align: center; color: #6e6e73; }
.admin-empty a { font-weight: 700; color: #111; text-decoration: underline; }

/* ── Admin prodano badge ─────────────────────────────────── */

.admin-sold-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.admin-sold-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.badge-sold {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(176, 0, 32, 0.12);
  color: #b00020;
  border: 1px solid rgba(176, 0, 32, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-available {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 128, 70, 0.10);
  color: #007a3d;
  border: 1px solid rgba(0, 128, 70, 0.20);
  font-size: 0.82rem;
  font-weight: 800;
}

/* ── Vehicle preview grid — 2 stolpca ───────────────────── */

.vehicle-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.vehicle-card.small,
.vehicle-card.small.second,
.vehicle-card.small.third {
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
}

.vehicle-card {
  overflow: hidden !important;
}

.vehicle-card img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

@media (max-width: 980px) {
  .vehicle-preview-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Zaloga vozil — rdeč gumb v navigaciji ──────────────── */

.nav-links a[href*="avto.net"] {
  background: #ea3237;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(234, 50, 55, 0.35);
}

.nav-links a[href*="avto.net"]:hover {
  background: #c8282d;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .nav-links a[href*="avto.net"] {
    background: #ea3237 !important;
    color: #fff !important;
    border-radius: 999px;
  }
}

/* ── Servis slider ───────────────────────────────────────── */

.servis-slider {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
}

.slider-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: zoom-in;
  border-radius: 0 !important;
}

.slider-track img.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.slider-btn:hover { background: rgba(0,0,0,0.8); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active { background: #ea3237; }

@media (max-width: 700px) {
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .slider-btn.prev { left: 6px; }
  .slider-btn.next { right: 6px; }
}

/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.04), transparent 34%),
    linear-gradient(135deg, #0a0a0c 0%, #0f0f12 50%, #080809 100%);
}

body.dark-mode .site-header {
  background: rgba(8,8,10,.88);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(28px);
}

body.dark-mode .site-footer {
  background: #18181c;
  border-top: 1px solid rgba(255,255,255,.08);
}

body.dark-mode .footer-bottom { border-top-color: rgba(255,255,255,.08); }

body.dark-mode .nav-links {
  background: rgba(12,12,15,.96);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

body.dark-mode .eyebrow { color: rgba(255,255,255,.55); }
body.dark-mode .eyebrow::before { background: rgba(255,255,255,.55); }

body.dark-mode .btn-secondary {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
body.dark-mode .btn-secondary:hover { background: rgba(255,255,255,.16); }
body.dark-mode .btn-ghost { color: #fff; border-color: rgba(255,255,255,.20); }

body.dark-mode .nav-links a[href*="avto.net"] {
  background: #ea3237 !important;
  color: #fff !important;
}

body.dark-mode .form-status-card {
  background: #252529;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
body.dark-mode .form-status-card h1 { color: #fff; }
body.dark-mode .status-icon.success { background: #fff; color: #111; }

body.dark-mode .contact-form-card,
body.dark-mode .contact-info-card,
body.dark-mode .content-copy,
body.dark-mode .premium-contact-card,
body.dark-mode .stock-info-card,
body.dark-mode .stock-vehicle-card,
body.dark-mode .why-card,
body.dark-mode .document-card,
body.dark-mode .service-feature-card,
body.dark-mode .parts-card,
body.dark-mode .service-card,
body.dark-mode .location-info,
body.dark-mode .loading-card,
body.dark-mode .empty-state,
body.dark-mode .admin-table-card,
body.dark-mode .admin-form-card,
body.dark-mode .admin-login-card,
body.dark-mode .hero-stats div,
body.dark-mode .hero-image-card,
body.dark-mode .image-panel,
body.dark-mode .stock-tools,
body.dark-mode .vehicle-main-image,
body.dark-mode .vehicle-detail-info,
body.dark-mode .map-card,
body.dark-mode .process-steps div,
body.dark-mode .vehicle-thumb {
  background: #252529 !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 40px rgba(0,0,0,.5) !important;
  color: #fff;
}

body.dark-mode .service-card.featured,
body.dark-mode .document-card.wide,
body.dark-mode .service-feature-card.dark,
body.dark-mode .service-feature-card.wide,
body.dark-mode .parts-card.dark,
body.dark-mode .parts-card.wide {
  background: #32323a !important;
  border-color: rgba(255,255,255,.22) !important;
}

body.dark-mode .vehicle-thumb.active { border-color: rgba(255,255,255,.85) !important; }

body.dark-mode .detail-spec-grid div {
  background: #252529 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

body.dark-mode .quick-contact-list a {
  background: #252529 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
body.dark-mode .quick-contact-list a:hover {
  background: #32323a !important;
  border-color: rgba(255,255,255,.24) !important;
}

body.dark-mode .vehicle-specs span {
  background: #252529 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.80);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea,
body.dark-mode .stock-tools input,
body.dark-mode .stock-tools select {
  background: #1e1e22 !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder,
body.dark-mode .stock-tools input::placeholder {
  color: rgba(255,255,255,.35) !important;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: rgba(255,255,255,.42) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08) !important;
}

body.dark-mode .contact-info-item { border-bottom-color: rgba(255,255,255,.08); }
body.dark-mode .admin-table th,
body.dark-mode .admin-table td { border-bottom-color: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
body.dark-mode .admin-table th { color: rgba(255,255,255,.42); }

body.dark-mode .stock-vehicle-title-row strong { background: #fff !important; color: #111 !important; }
body.dark-mode .detail-price { background: #fff; color: #111; }


.vehicle-card div h3,
.vehicle-card div p,
.vehicle-card div strong {
  color: #111 !important;
}