/* --------------------------
   Alap stílusok – Csimpi Büfé (Sötét téma)
--------------------------- */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0b0b0b;
  color: #f0f0f0;
}

.navbar {
  background: #111;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

.navbar a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: gold;
}

.navbar a.active {
  color: gold;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 10px;
}

.title {
  text-align: center;
  color: gold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.card {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.btn {
  background: gold;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s;
}

.btn:hover {
  background: #ffea70;
  transform: scale(1.05);
}

.btn.outline {
  background: transparent;
  border: 2px solid gold;
  color: gold;
}

.btn.outline:hover {
  background: gold;
  color: black;
}

.btn.green {
  background: #37b24d;
  color: #fff;
}

.btn.green:hover {
  background: #4dd168;
}

.input {
  width: 100%;
  padding: 7px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  margin-top: 4px;
  font-size: 15px;
}

.input::placeholder {
  color: #aaa;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
}

.hr {
  border-bottom: 1px solid #333;
  margin: 8px 0;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.right {
  text-align: right;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.menu-grid .btn {
  font-size: 13px;
}

.loginwrap {
  max-width: 300px;
  margin: 100px auto;
  text-align: center;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* --------------------------
   SPLASH képernyő (majomfejes logóval)
--------------------------- */

#splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #000000 60%, #1a1a1a);
  color: gold;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.8s ease;
  font-family: 'Segoe UI', sans-serif;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  animation: popIn 1.4s ease;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#splash .logo-img {
  width: 110px;
  height: 110px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 2px solid gold;
  box-shadow: 0 0 25px rgba(255,215,0,0.5);
  object-fit: cover;
}

#splash .logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 0 10px gold, 0 0 30px rgba(255,215,0,0.3);
}

#splash .loading {
  font-size: 0.8rem;
  margin-top: 6px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --------------------------
   Mobil és Tablet optimalizálás (kompakt verzió)
--------------------------- */

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px;
    gap: 8px;
  }

  .navbar a {
    flex: 1 1 45%;
    text-align: center;
    margin: 2px 0;
    font-size: 14px;
  }

  .container {
    width: 95%;
    margin: 0 auto;
  }

  .title {
    font-size: 1.4rem;
  }

  .card {
    padding: 10px;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 0 4px;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar a {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 14px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  }

  .title {
    font-size: 1.2rem;
  }

  .card {
    margin: 8px 0;
    padding: 10px;
  }

  .btn {
    width: 100%;
    padding: 8px;
    font-size: 13px;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }

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

  .input {
    font-size: 14px;
    padding: 6px;
  }

  #splash .logo-img {
    width: 90px;
    height: 90px;
  }

  #splash .logo {
    font-size: 1.5rem;
  }
}
