/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0f172a;
  --text-color: #f8f9fa;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 5px 15px -5px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Glow Elements */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-purple {
  top: -200px;
  right: -100px;
  background-color: var(--accent-purple);
}

.bg-glow-cyan {
  bottom: -200px;
  left: -100px;
  background-color: var(--accent-cyan);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  -webkit-text-fill-color: initial;
  color: var(--accent-purple);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-pink);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem 3rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-color);
  margin-bottom: 0;
}

@keyframes neonPulse {
  0% { filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 5px rgba(139, 92, 246, 0.2)); }
  100% { filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.8)) drop-shadow(0 0 10px rgba(234, 179, 8, 0.5)); }
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero-title .neon-text {
  display: inline-block;
  position: relative;
  font-size: 5rem;
  background: linear-gradient(to right, #8b5cf6, #06b6d4, #eab308, #ec4899, #8b5cf6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite, neonPulse 2s alternate infinite ease-in-out;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 900;
}

.hero-title .neon-text::after {
  content: '';
  position: absolute;
  left: -5%;
  bottom: 0px;
  width: 110%;
  height: 8px;
  background: linear-gradient(to right, #8b5cf6, #06b6d4, #eab308, #ec4899, #8b5cf6);
  background-size: 200% auto;
  border-radius: 10px;
  animation: shine 4s linear infinite;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.6), 0 0 25px rgba(236, 72, 153, 0.4);
}

.hero p {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Static Pages Typography */
.content-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.content-box h2 {
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-box p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.content-box ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.content-box ul li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.content-box a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.content-box a:hover {
  color: var(--accent-pink);
}

/* Search & Filter */
.filter-section {
    max-width: 950px;
    margin: 0 auto 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .search-input-wrapper {
    grid-column: span 3;
    position: relative;
  }

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-purple);
  font-size: 1.1rem;
  z-index: 10;
  pointer-events: none;
}

.filter-section input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.filter-section input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.filter-section select {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  
/* Add a custom arrow to replace the native one we hid */
.search-input-wrapper::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-purple);
    pointer-events: none;
    font-size: 0.9rem;
}
/* Disable the dropdown arrow for the search input wrapper specifically */
.search-input-wrapper:first-child::after {
    display: none;
}

.filter-section select:focus {
  border-color: var(--accent-purple);
}

/* Event Grid */
.event-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.event-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.event-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-tag {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.1));
  color: var(--accent-purple);
}

.event-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.event-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.event-info i {
  color: var(--accent-pink);
}

.event-desc {
  color: #64748b;
  margin: 1rem 0;
  font-size: 0.95rem;
  flex: 1;
}

.event-btn {
  display: inline-block;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
}

.event-btn:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-color);
}

.copyright {
  font-size: 0.9rem;
  color: #94a3b8;
}

.powered-by {
  font-weight: 600;
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-title .neon-text {
    font-size: 3.5rem;
  }
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  header .logo img {
    max-height: 90px !important;
  }
  nav ul {
    gap: 1rem;
  }
  .filter-section {
    grid-template-columns: 1fr 1fr;
  }
  .search-input-wrapper {
    grid-column: span 2;
  }
  .content-box {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .filter-section {
    grid-template-columns: 1fr;
  }
  .search-input-wrapper {
    grid-column: span 1;
  }
  .event-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 5rem;
    gap: 1.5rem;
  }
  .button, .btn {
    width: 100%;
    padding: 1rem;
    text-align: center;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

.cookie-content {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-content h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.cookie-content p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }
  .cookie-text {
    flex-grow: 1;
    margin-right: 2rem;
  }
  .cookie-content h3 {
    margin-bottom: 0.25rem;
  }
  .cookie-content p {
    margin-bottom: 0;
    max-width: 450px;
  }
  .cookie-buttons {
    flex-shrink: 0;
    margin-left: 2rem;
  }
}

/* Premium Form Styling */
form:not(.search-form) {
  background: transparent;
  padding: 1rem 0;
  margin-top: 1rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

form:not(.search-form) .form-input, 
form:not(.search-form) input[type="text"], 
form:not(.search-form) input[type="password"], 
form:not(.search-form) input[type="email"], 
form:not(.search-form) select, 
form:not(.search-form) textarea {
  width: 100%;
  padding: 0.8rem 1.2rem !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 2rem !important;
  background: rgba(0, 0, 0, 0.02) !important;
  color: var(--text-color) !important;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

form:not(.search-form) .form-input:focus, 
form:not(.search-form) input[type="text"]:focus, 
form:not(.search-form) input[type="password"]:focus, 
form:not(.search-form) input[type="email"]:focus, 
form:not(.search-form) select:focus, 
form:not(.search-form) textarea:focus {
  outline: none;
  border-color: var(--accent-cyan) !important;
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

form:not(.search-form) textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 1rem !important; /* textareas look better not fully pill-shaped */
}

form:not(.search-form) select option {
  background: white;
  color: var(--text-color);
}

.buttons, .form-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button, .btn {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: white !important;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(188, 19, 254, 0.3);
}

/* Grav Login/Register specific */
#grav-login {
  max-width: 500px;
  margin: 0 auto;
}

/* Fix Chrome Autofill in Light Mode */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #f8f9fa inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

@keyframes redBreathing {
  0% {
    color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
  }
  50% {
    color: #ff3366;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.9), 0 0 25px rgba(255, 0, 0, 0.6);
  }
  100% {
    color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
  }
}

.breathing-red {
  display: inline;
  animation: redBreathing 3s infinite ease-in-out;
  font-weight: 900;
}
