/* ================== Reset & Base ================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

/* ================== Typography ================== */

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: zpx;
  color: #fff;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.6rem;
}

p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 25px;
}

/* ================== Colors & Highlights ================== */

.highlight {
  color: #ff5722;
}

/* ================== Header ================== */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1a1a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 9999;
  padding: 14px 0;
  user-select: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.logo a {
  font-size: 1.7rem;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  user-select: none;
}

.site-nav a {
  margin-left: 22px;
  color: #ccc;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  user-select: none;
  font-size: 1rem;
  padding: 10px 12px;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ff5722;
  outline: none;
}

/* Fix section scroll position due to fixed header */
section {
  scroll-margin-top: 100px;
}

/* ================== Hero Section ================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f1f1f 60%, #212121);
  position: relative;
  z-index: 1;
  padding-top: 100px;
  text-align: center;
}

.hero h1 {
  text-shadow: 0 0 12px #ff5722;
  margin-bottom: 10px;
}

.hero p {
  color: #ccc;
  font-size: 1.3rem;
}

/* City Selector */
#citySelector {
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 20px;
  border: none;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

#citySelector:focus {
  box-shadow: 0 0 10px #ff5722;
}

/* ================== Buttons ================== */

.btn, .btn-small {
  display: inline-block;
  background-color: #ff5722;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  user-select: none;
  border: none;
}

.btn:hover, .btn:focus,
.btn-small:hover, .btn-small:focus {
  background-color: #e64a19;
  outline: none;
}

.btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

/* ================== Sections ================== */

.about, .features, .events, .cta {
  background-color: #181818;
  padding-bottom: 70px;
}

.features ul {
  list-style: none;
  font-size: 1.2rem;
  color: #ddd;
  max-width: 500px;
  margin: 0 auto;
}

.features ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.features ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ff5722;
}

/* ================== Event Cards ================== */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.event-card {
  background: #222;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  outline-offset: 4px;
}

.event-card:hover,
.event-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 0 30px #ff5722;
  outline: none;
}

.event-card h3 {
  margin-bottom: 8px;
}

/* ===== Responsive: Tablets ===== */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .site-nav a {
    margin-left: 15px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .event-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 600px) {
  .container {
    padding: 40px 15px;
  }

  .logo a {
    font-size: 1.5rem;
  }

  .site-nav a {
    margin-left: 10px;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  #citySelector {
    width: 100%;
    max-width: 250px;
    margin: 15px auto 0;
    display: block;
  }

  .btn, .btn-small {
    width: 100%;
    max-width: 250px;
    padding: 12px 0;
  }
}

/* Accessibility: Visible focus outline */
.site-nav a:focus-visible,
.btn:focus-visible,
.btn-small:focus-visible,
.event-card:focus-visible {
  outline: 3px solid #ff5722;
  outline-offset: 3px;
}

/* Make clickable cards keyboard navigable */
.event-card {
  cursor: pointer;
}

.event-card:focus {
  outline: none;
}

/* ===== Modal Styles ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #222;
  border-radius: 15px;
  padding: 30px 40px;
  max-width: 600px;
  width: 100%;
  color: #eee;
  box-shadow: 0 0 30px #ff5722;
  position: relative;
  text-align: left;
}

.modal-content h2 {
  margin-bottom: 12px;
  color: #ff5722;
}

.modal-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #ccc;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #ff5722;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.modal-close:hover,
.modal-close:focus {
  color: #e64a19;
  outline: none;
}
/* ================== Admin Panel ================== */

.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #121212;
  padding: 20px;
}

.admin-login-box {
  background: #1e1e1e;
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
}

.admin-login-box h2 {
  margin-bottom: 25px;
  color: #ff5722;
  text-align: center;
}

.admin-login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  background: #2a2a2a;
  color: #f0f0f0;
}

.admin-login-box input:focus {
  outline: 2px solid #ff5722;
}

.admin-login-box button {
  width: 100%;
  padding: 12px;
  background-color: #ff5722;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.admin-login-box button:hover {
  background-color: #e64a19;
}

.admin-error {
  color: #ff4444;
  margin-bottom: 10px;
  text-align: center;
}
