/* ==========================================================================
   FLIPER AKADEMIJA LJUBLJANA — Pinball Team Building
   Arkadni / retro-neon dizajn
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  /* Paleta po fotografijah prostora: beton, petrol zavese, topla amber svetloba, nevonski zasloni fliperjev */
  --neon-pink: #ff3d8f;
  --neon-cyan: #2fe0d1;
  --neon-yellow: #ffb340;
  --neon-purple: #1b6f6a;
  --bg-dark: #121316;
  --bg-darker: #0a0b0d;
  --panel-bg: #1c1f21;
  --panel-border: rgba(47, 224, 209, 0.3);
  --text-light: #f1efe9;
  --text-muted: #a9aeb0;
  --wood: #c9a06a;
  --font-display: 'Times New Roman', Times, serif;
  --font-body: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Starfield + grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 60%, #fff, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 90% 15%, #fff, transparent),
    radial-gradient(1px 1px at 55% 45%, #fff, transparent),
    radial-gradient(1px 1px at 10% 90%, #fff, transparent),
    linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 40%, #16211f 100%);
  opacity: 0.55;
}

/* CRT scanline overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    rgba(0, 0, 0, 0) 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

h1, h2, h3, .arcade-font {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
}

a { color: var(--neon-cyan); text-decoration: none; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 4, 23, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 47, 178, 0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px var(--neon-yellow), 0 0 16px rgba(255, 230, 0, 0.5);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 50px;
  border: 2px solid var(--neon-cyan);
  color: var(--bg-darker);
  background: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan), 0 0 35px rgba(0, 255, 242, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 25px var(--neon-cyan), 0 0 55px rgba(0, 255, 242, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 47, 178, 0.5);
}

.btn-outline:hover {
  box-shadow: 0 0 25px var(--neon-pink), 0 0 55px rgba(255, 47, 178, 0.5);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 160%;
  height: 260px;
  transform: translateX(-50%) perspective(300px) rotateX(60deg);
  background-image:
    linear-gradient(var(--neon-purple) 1px, transparent 1px),
    linear-gradient(90deg, var(--neon-purple) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  z-index: -1;
}

.hero .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 26px;
  text-shadow: 0 0 6px var(--neon-yellow);
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.3) inset;
}

.hero h1 {
  font-size: 2.4rem;
  color: #fff;
  text-shadow:
    0 0 10px var(--neon-pink),
    0 0 25px var(--neon-pink),
    0 0 50px var(--neon-purple);
  margin-bottom: 22px;
}

.hero h1 span { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan), 0 0 25px var(--neon-cyan); }

.hero p.lead {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.35rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-secondary-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s;
}

.hero-secondary-link:hover {
  color: var(--neon-cyan);
}

.hero-meta {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-meta div {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-light);
}

.hero-meta span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

/* ---------- Section generic ---------- */
section { padding: 90px 0; position: relative; }

.section-title {
  text-align: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 25px rgba(0, 255, 242, 0.4);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.2rem;
}

.divider {
  width: 120px;
  height: 4px;
  margin: 0 auto 20px;
  background: repeating-linear-gradient(90deg, var(--neon-pink) 0 10px, transparent 10px 20px);
}

/* ---------- O prostoru ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.about-grid p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.2rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.stat-box {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 0 18px rgba(0, 255, 242, 0.08);
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--neon-yellow);
  margin-bottom: 8px;
}

.stat-box small { color: var(--text-muted); font-size: 0.95rem; }

.about-visual {
  aspect-ratio: 4/5;
  border-radius: 18px;
  border: 2px solid var(--neon-pink);
  background:
    linear-gradient(160deg, rgba(255,47,178,0.15), rgba(0,255,242,0.1)),
    var(--panel-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 0 30px rgba(255, 47, 178, 0.35);
}

/* ---------- Kako poteka (cards) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0, 255, 242, 0.3);
}

.card .icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.card p { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Pijača & hrana ---------- */
.food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.food-card {
  background: linear-gradient(145deg, rgba(167,66,255,0.12), rgba(20,9,43,0.6));
  border: 1px solid rgba(167, 66, 255, 0.5);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 0 20px rgba(167, 66, 255, 0.2);
}

.food-card .icon { font-size: 2.4rem; margin-bottom: 14px; }

.food-card h3 {
  font-size: 1.4rem;
  color: var(--neon-yellow);
  margin-bottom: 10px;
}

.food-card p { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Cenik ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 18px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
}

.price-card.featured {
  border-color: var(--neon-pink);
  box-shadow: 0 0 30px rgba(255, 47, 178, 0.35);
  transform: scale(1.04);
}

.price-card .tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 0 12px var(--neon-pink);
}

.price-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin: 18px 0;
  text-shadow: 0 0 10px var(--neon-cyan);
}

.price-card ul {
  list-style: none;
  margin: 22px 0;
  text-align: left;
  color: var(--text-muted);
}

.price-card ul li { margin-bottom: 10px; padding-left: 26px; position: relative; }
.price-card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--neon-yellow); }

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 30px;
  font-size: 1.05rem;
}

/* ---------- Galerija ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  border: 1px dashed var(--panel-border);
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 14px;
  gap: 8px;
  overflow: hidden;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.gallery-item .icon { font-size: 2.2rem; }

/* ---------- Lightbox (povečava fotografij ob kliku) ---------- */
.lightbox-img { cursor: zoom-in; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lightbox-img:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(47, 224, 209, 0.35); }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 3, 10, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  cursor: zoom-out;
  touch-action: none;
}

.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Video ---------- */
.video-wrap {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 242, 0.35);
  aspect-ratio: 16/9;
  position: relative;
  background: var(--panel-bg);
}

.video-wrap iframe, .video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.video-placeholder .icon { font-size: 3rem; }

/* ---------- Reference ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 30px;
}

.testimonial p.quote {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial .stars { color: var(--neon-yellow); margin-bottom: 12px; letter-spacing: 3px; }

.testimonial .author {
  font-weight: 700;
  color: var(--neon-cyan);
  font-size: 1rem;
}

.placeholder-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 14px;
}

/* ---------- Kontakt info + Obrazec ---------- */
.contact-section { background: var(--bg-darker); border-top: 2px solid var(--neon-purple); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.contact-info .item .icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px var(--neon-pink));
}

.contact-info .item h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.contact-info .item p, .contact-info .item a { color: var(--text-muted); font-size: 1.1rem; }

.form-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 0 30px rgba(0, 255, 242, 0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 242, 0.4);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-msg {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-weight: 600;
}

.form-msg.success {
  background: rgba(0, 255, 150, 0.12);
  border: 1px solid #00ff96;
  color: #a6ffe0;
}

.form-msg.error {
  background: rgba(255, 47, 90, 0.12);
  border: 1px solid #ff2f5a;
  color: #ffc2cf;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--panel-border);
  padding: 34px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer .arcade-font { font-size: 1.1rem; color: var(--neon-pink); display: block; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid, .food-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cards-3, .testimonial-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }

  /* Izklop GPU-intenzivnih efektov, ki so na mobilnih napravah povzročali sesutje brskalnika ob pinch-zoomu */
  body::after { display: none; }
  .navbar { backdrop-filter: none; background: rgba(10, 4, 23, 0.97); }
}

@media (max-width: 560px) {
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 1.6rem; }
  .cards-3, .testimonial-grid, .gallery-grid { grid-template-columns: 1fr; }
  .navbar .container { justify-content: center; }
  .logo { width: 100%; text-align: center; }
  .nav-links { justify-content: center; width: 100%; }
  .hero-meta { gap: 24px; }
}

/* ---------- Pravilnik / Rules list (home stran) ---------- */
.rules-list {
  list-style: none;
  counter-reset: rule-counter;
  max-width: 760px;
  margin: 0 auto;
}

.rules-list li {
  counter-increment: rule-counter;
  position: relative;
  padding: 22px 26px 22px 72px;
  margin-bottom: 22px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.rules-list li::before {
  content: counter(rule-counter);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--neon-cyan);
  color: var(--bg-darker);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.rules-list.alt li::before {
  background: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink);
}

.rules-list.alt {
  margin-top: 8px;
}

.rules-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.cta-banner {
  max-width: 760px;
  margin: 64px auto 0;
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 61, 143, 0.15), rgba(47, 224, 209, 0.1));
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 46px 36px;
}

.cta-banner h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.15rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .rules-list li { padding: 16px 18px 16px 58px; }
  .rules-list li::before { left: 12px; width: 28px; height: 28px; font-size: 0.9rem; }
}
