/* --- Begin: Core Styles from Design Manual --- */
:root {
    --bg-1: #000000;
    --bg-2: #0a0a0a;
    --dot: rgba(255, 255, 255, 0.08);
    --text: #e6e6e6;
    --muted: #a9a9a9;
    --primary-blue: #0198D7;
  }
  
  html, body {
    height: 100%;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.3px;
    color: var(--muted);
    background-image:
      radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.6px),
      radial-gradient(120% 140% at 50% -10%, rgba(255,255,255,0.06), rgba(0,0,0,0) 55%),
      linear-gradient(180deg, var(--bg-2), var(--bg-1));
    background-size: 22px 22px, auto, auto;
    background-repeat: repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0 0 16px;
  }
  
  p {
    margin: 0 0 16px;
  }
  
  .container {
    width: min(92vw, 1400px);
    margin: 0 auto;
    padding: 76px 0 24px; /* Adjusted top padding to 76px to match the thinner header height (approx 56px) */
  }
  
  .box {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
  }
  
  .box::before, .box::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 32px;
    height: 32px;
  }
  
  .box::before { /* top-left bracket */
    left: -1px;
    top: -1px;
    background:
      linear-gradient(var(--primary-blue),var(--primary-blue)) 0 0 / 100% 2px no-repeat,
      linear-gradient(var(--primary-blue),var(--primary-blue)) 0 0 / 2px 100% no-repeat;
  }
  
  .box::after { /* bottom-right bracket */
    right: -1px;
    bottom: -1px;
    background:
      linear-gradient(var(--primary-blue),var(--primary-blue)) 100% 100% / 100% 2px no-repeat,
      linear-gradient(var(--primary-blue),var(--primary-blue)) 100% 100% / 2px 100% no-repeat;
  }
  
  .sep-x {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 24px 0;
    width: 100%;
  }
  /* --- End: Core Styles from Design Manual --- */
  
  
  /* --- Begin: New Styles for Mockup --- */
  
  /* Header & Navigation */
  .top-bar {
    padding: 12px 0; /* Reduced padding for a thinner header */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
  }
  .top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
  .top-bar .logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }
  .top-bar .logo {
    height: 32px;
    width: auto;
  }
  .top-bar .site-name {
    font-family: 'Michroma', sans-serif;
    color: #ffffff;
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  .top-bar nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }
  .top-bar nav a:hover {
    color: var(--primary-blue);
  }
  .top-bar nav .btn {
    border: 1px solid var(--primary-blue);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--primary-blue);
  }
  .top-bar nav .btn:hover {
    background: var(--primary-blue);
    color: var(--bg-1);
  }
  
  /* Search & Filters */
  .search-section {
    text-align: center;
    padding: 48px 0;
  }
  .search-section h1 {
      font-family: 'Michroma', sans-serif;
      font-size: clamp(1.5rem, 4vw, 2.5rem);
      letter-spacing: 4px;
      text-transform: uppercase;
      background: linear-gradient(90deg, #ffffff, #e6e6e6);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
  }
  .search-form {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
  }
  .search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: min(100%, 400px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(1, 152, 215, 0.5);
  }
  .search-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .search-btn:hover {
    background: #00e5ff;
    color: var(--bg-1);
  }
  
  /* Event Grid */
  .event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 72px 24px; /* Increase row gap to 48px for more space between rows, keep column gap at 24px */
  }
  .event-card {
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Ensure consistent minimum height for better alignment */
    height: 100%; /* Allow cards to stretch to match the tallest in the row */
  }
  .event-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 24px;
  }
  
  /* Image container with category badge */
  .event-card-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 24px;
  }
  
  .event-card-image-container img {
    margin-bottom: 0;
  }
  
  /* Event card without image - alternative design */
  .event-card-no-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(1, 152, 215, 0.1), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    position: relative;
  }
  
  .no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    opacity: 0.6;
  }
  
  .no-image-placeholder svg {
    width: 48px;
    height: 48px;
  }
  
  /* Category badge in lower right corner */
  .event-card-category-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(1, 152, 215, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    z-index: 1;
  }
  
  .event-card h3 {
    font-size: 1.25rem;
  }
  
  /* New details with icons layout */
  .details-with-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  .detail-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
  }
  
  .detail-item span {
    line-height: 1.4;
  }
  
  /* Event card description */
  .event-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* Legacy details styling - keep for compatibility */
  .event-card .details {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  .event-card .details span {
    display: block;
    margin-bottom: 4px;
  }
  
  .event-card .card-footer {
    margin-top: auto; /* Pushes footer to the bottom */
  }
  .event-card .details-btn {
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid var(--primary-blue);
    padding: 10px 16px;
    display: inline-block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
  }
  .event-card .details-btn:hover {
    background: var(--primary-blue);
    color: var(--bg-1);
  }
  
  /* Footer */
  .site-footer {
    text-align: center;
    padding: 16px 0; /* Reduced padding for a more compact footer */
    margin-top: 32px; /* Reduced margin for compactness */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: var(--muted);
  }
  .site-footer .container {
    /* Optional: add flex if needed, but keeping simple */
  }
  .site-footer .footer-content {
    display: flex;
    justify-content: center; /* Changed to center for centered alignment */
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .site-footer .footer-logo {
    height: 24px;
    width: auto;
  }
  .site-footer p {
    margin: 0;
    flex: 1;
    text-align: center;
  }
  .site-footer .social-links {
    display: flex;
    gap: 12px;
  }
  .site-footer a {
    color: var(--muted);
    text-decoration: none;
  }
  .site-footer a:hover {
    color: var(--primary-blue);
  }
  /* --- End: New Styles for Mockup --- */
  
  /* --- Begin: Login Page Styles --- */
  .login-section {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: calc(100vh - 200px); /* Adjust based on header/footer height for vertical centering */
      padding: 48px 0;
  }
  
  .login-section .box {
      max-width: 400px;
      width: 100%;
      margin: 0 auto;
      text-align: center;
  }
  
  .login-intro {
      margin-bottom: 24px;
      font-size: 0.9rem;
      color: var(--muted);
  }
  
  .login-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
  }
  
  .form-group {
      text-align: left;
  }
  
  .form-group label {
      display: block;
      margin-bottom: 8px;
      color: var(--text);
      font-weight: 400;
  }
  
  .login-input {
      width: 100%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text);
      padding: 12px 16px;
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      border-radius: 4px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      box-sizing: border-box;
  }
  
  .login-input:focus {
      outline: none;
      border-color: var(--primary-blue);
      box-shadow: 0 0 8px rgba(1, 152, 215, 0.5);
  }
  
  .login-btn {
      background: var(--primary-blue);
      color: white;
      border: none;
      padding: 12px 24px;
      font-family: 'Outfit', sans-serif;
      font-size: 1rem;
      cursor: pointer;
      border-radius: 4px;
      transition: background-color 0.2s ease;
      margin-top: 8px;
  }
  
  .login-btn:hover {
      background: #00e5ff;
      color: var(--bg-1);
  }
  
  .login-footer-text {
      margin-top: 16px;
      font-size: 0.9rem;
      color: var(--muted);
  }
  
  .login-footer-text a {
      color: var(--primary-blue);
      text-decoration: none;
      transition: color 0.2s ease;
  }
  
  .login-footer-text a:hover {
      color: #00e5ff;
  }
  /* --- End: Login Page Styles --- */


/* --- Begin: Profile Page Styles --- */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px); /* Adjust for header/footer */
    padding: 48px 0;
}

.profile-section .box {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Space between items */
    margin-bottom: 24px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between label and value */
}

.profile-item strong {
    color: var(--text);
    font-weight: 600;
    min-width: 120px; /* Consistent label width for alignment */
}

.profile-item span {
    color: var(--muted);
    font-size: 1rem;
}

.profile-photo {
    max-width: 80px; /* Smaller, more subtle */
    height: auto;
    border-radius: 8px; /* Slightly rounded for a softer look */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-photo {
    font-style: italic;
    color: var(--muted);
}

.profile-footer {
    text-align: center;
    margin-top: 24px;
}

.logout-link {
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid var(--primary-blue);
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

.logout-link:hover {
    background: var(--primary-blue);
    color: var(--bg-1);
}
/* --- End: Profile Page Styles --- */

/* --- End: Profile Page Styles --- */

/* --- Begin: Admin Page Styles --- */
.admin-section {
  padding: 48px 0;
}

.admin-section .box {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.category-list {
  margin-bottom: 32px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-item:last-child {
  border-bottom: none;
}

.category-info {
  flex-grow: 1;
}

.category-actions {
  display: flex;
  gap: 8px;
}

.category-actions .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--primary-blue);
  border-radius: 4px;
  background: transparent;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-actions .btn:hover {
  background: var(--primary-blue);
  color: var(--bg-1);
}

.category-actions .btn.delete {
  border-color: #ff4444;
  color: #ff4444;
}

.category-actions .btn.delete:hover {
  background: #ff4444;
  color: white;
}

.add-category-form {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-inline {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.form-inline .form-group {
  flex: 1;
  min-width: 200px;
}

.message {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.message.success {
  background: rgba(0, 128, 0, 0.1);
  border: 1px solid rgba(0, 128, 0, 0.3);
  color: #4ade80;
}

.message.error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff6b6b;
}
/* --- End: Admin Page Styles --- */

/* --- Begin: Event View Modern Layout --- */
.event-page {
  width: 100%;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--primary-blue); }

.event-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 8px 0 12px;
}

.event-subtitle {
  color: var(--text);
  opacity: 0.95;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.03);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
  margin-top: 12px;
}
.meta-grid .meta-item { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: baseline; }
.meta-grid dt {
  color: var(--text);
  font-weight: 600;
}
.meta-grid dd {
  margin: 0;
  color: var(--muted);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(1,152,215,0.12);
  border: 1px solid rgba(1,152,215,0.35);
  color: #9be7ff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--primary-blue); color: var(--bg-1); }

.btn-primary {
  color: #fff;
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}
.btn-primary:hover {
  background: #00e5ff;
  border-color: #00e5ff;
  color: var(--bg-1);
}

/* Tweak existing event image for hero look */
.event-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

/* Small screen adjustments */
@media (max-width: 768px) {
  .meta-grid .meta-item { grid-template-columns: 80px 1fr; }
  .event-subtitle { font-size: 1rem; }
}
/* --- End: Event View Modern Layout --- */

/* --- Begin: Event View Redesign Styles --- */
.event-page-redesign {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.event-page-redesign .back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}
.event-page-redesign .back-link:hover {
  color: var(--primary-blue);
}

/* Unified Event Box */
.event-unified-box {
  padding: 0;
  overflow: hidden;
}

/* Hero Section Integrated into Box */
.event-hero-integrated {
  width: 100%;
}

.event-hero-image-bg {
  position: relative;
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.event-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  pointer-events: none;
}

.event-hero-content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 1;
}

.event-hero-title {
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.event-hero-organizers {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 4px 0 10px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.event-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-hero-no-image-integrated {
  padding: 64px 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-hero-no-image-integrated .event-hero-title {
  text-shadow: none;
  line-height: 1.1;
  margin-bottom: 0;
}

.event-hero-no-image-integrated .event-hero-organizers {
  color: var(--muted);
  text-shadow: none;
  line-height: 1.3;
  margin: 4px 0 12px 0;
}

.event-hero-no-image-integrated .event-hero-badges {
  justify-content: center;
}

/* Category and Tags Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.badge-category {
  background: rgba(1, 152, 215, 0.25);
  border-color: rgba(1, 152, 215, 0.5);
  color: #ffffff;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* Description */
.event-description {
  padding: 32px;
}

.event-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

/* Date and Location Info Grid */
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 32px 32px 32px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  background: rgba(1, 152, 215, 0.1);
  border-radius: 8px;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-content {
  flex-grow: 1;
}

.info-value {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.info-sublabel {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Separator inside unified box */
.event-unified-box .sep-x {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Additional Information Section */
.event-additional {
  padding: 32px;
}

.additional-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .event-hero-image-bg {
    height: 350px;
  }

  .event-hero-content {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }

  .event-hero-title {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 0;
  }

  .event-hero-organizers {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 3px 0 8px 0;
  }

  .event-description,
  .event-additional,
  .event-info-grid {
    padding-left: 24px;
    padding-right: 24px;
  }

  .event-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .event-hero-image-bg {
    height: 300px;
  }

  .event-hero-content {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .event-hero-no-image-integrated {
    padding: 48px 24px;
  }

  .info-card {
    padding: 16px;
  }

  .event-description,
  .event-additional,
  .event-info-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* --- End: Event View Redesign Styles --- */

/* --- Begin: External Links in Event View --- */
.event-external-links {
  padding: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.external-links-title {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 20px 0;
  font-weight: 600;
}

.external-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.external-link-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.external-link-provider {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.external-link-content {
  font-size: 0.95rem;
  color: var(--text);
}

.external-link-content a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.external-link-content a:hover {
  color: #00e5ff;
  text-decoration: underline;
}

/* Mobile adjustments for external links */
@media (max-width: 768px) {
  .event-external-links {
    padding-left: 24px;
    padding-right: 24px;
  }

  .external-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .event-external-links {
    padding-left: 20px;
    padding-right: 20px;
  }

  .external-link-card {
    padding: 16px;
  }
}
/* --- End: External Links in Event View --- */

.image-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  position: relative;
}

.image-drop-zone.dragover {
  border-color: var(--primary-blue);
  background: rgba(1, 152, 215, 0.1);
}

.image-drop-zone p {
  margin: 0 0 8px;
  font-size: 1rem;
}

.drop-zone-hint {
  font-size: 0.9rem !important;
  color: var(--muted) !important;
  margin-bottom: 16px !important;
}

.current-image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  margin-top: 16px;
}

.upload-status {
  margin-top: 8px;
  font-size: 0.9rem;
  padding: 8px;
  border-radius: 4px;
}

.upload-status.success {
  background: rgba(0, 128, 0, 0.1);
  color: #4ade80;
}

.upload-status.error {
  background: rgba(255, 68, 68, 0.1);
  color: #ff6b6b;
}

.event-hero-actions {
    margin-top: 16px;
}

/* Position edit button in top-right corner for image hero */
.event-hero-image-bg .event-hero-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    margin-top: 0;
}

/* Mobile adjustments for hero actions */
@media (max-width: 768px) {
    .event-hero-actions {
        margin-top: 12px;
    }

    .event-hero-actions .btn {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    .event-hero-image-bg .event-hero-actions {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .event-hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .event-hero-image-bg .event-hero-actions {
        top: 8px;
        right: 8px;
        position: static; /* Stack below content on very small screens for better UX */
        margin-top: 12px;
    }
}

/* --- Begin: Edit Event Page Styles --- */
.edit-event-section {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 100px;
}

.back-link-wrapper {
    margin-bottom: 24px;
}

.edit-event-header {
    text-align: center;
    margin-bottom: 40px;
}

.edit-event-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 12px;
}

.edit-event-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
}

.edit-event-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
}

.edit-event-card::before,
.edit-event-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 32px;
    height: 32px;
}

.edit-event-card::before {
    left: -1px;
    top: -1px;
    background:
        linear-gradient(var(--primary-blue), var(--primary-blue)) 0 0 / 100% 2px no-repeat,
        linear-gradient(var(--primary-blue), var(--primary-blue)) 0 0 / 2px 100% no-repeat;
}

.edit-event-card::after {
    right: -1px;
    bottom: -1px;
    background:
        linear-gradient(var(--primary-blue), var(--primary-blue)) 100% 100% / 100% 2px no-repeat,
        linear-gradient(var(--primary-blue), var(--primary-blue)) 100% 100% / 2px 100% no-repeat;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
}

.card-description {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    margin: 24px 0 16px;
}

.edit-event-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-row .full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Enhanced Image Drop Zone */
.image-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.image-drop-zone:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.image-drop-zone.dragover {
    border-color: var(--primary-blue);
    background: rgba(1, 152, 215, 0.1);
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.drop-zone-text {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.drop-zone-hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0;
}

.current-image-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.current-image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.upload-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.upload-status.success {
    background: rgba(0, 200, 100, 0.1);
    border: 1px solid rgba(0, 200, 100, 0.3);
    color: #4ade80;
}

.upload-status.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .edit-event-section {
        padding-top: 80px;
    }
    
    .edit-event-card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .edit-event-header h1 {
        font-size: 1.75rem;
    }
    
    .edit-event-card {
        padding: 20px;
    }
    
    .drop-zone-icon {
        font-size: 2.5rem;
    }
}
/* --- End: Edit Event Page Styles --- */

/* Provider Management Section */
.provider-section {
    margin-top: 8px;
}

.provider-form-container {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.provider-form-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.provider-form-title {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
}

.provider-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.existing-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.no-links-message {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    padding: 20px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.link-info {
    flex-grow: 1;
}

.link-provider {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.link-url {
    color: var(--text);
    font-size: 0.95rem;
    word-break: break-all;
}

.link-actions {
    display: flex;
    gap: 8px;
}

.link-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-danger {
    border-color: #ff4444;
    color: #ff4444;
}

.btn-danger:hover {
    background: #ff4444;
    color: white;
}

/* Select dropdown styling */
select.login-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a9a9a9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Responsive adjustments for provider section */
@media (max-width: 768px) {
    .link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .link-actions {
        width: 100%;
    }
    
    .link-actions .btn {
        flex: 1;
    }
}

.link-display {
    margin: 8px 0;
    font-size: 0.95rem;
}

.link-display a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-display a:hover {
    color: #00e5ff;
    text-decoration: underline;
}

.link-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--muted);
    margin-left: 8px;
}

.link-error {
    color: #ff6b6b;
    font-style: italic;
}

.existing-links-title {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 16px;
}

.link-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Begin: Category Bubbles Styles --- */
.categories-section {
  margin: 32px 0;
  text-align: center;
}

.categories-section h2 {
  font-size: 1.75rem;
  margin-bottom: 32px;
  color: #ffffff;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.category-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 100px;
  text-align: center;
}

.category-bubble:hover {
  border-color: var(--primary-blue);
  background: rgba(1, 152, 215, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 152, 215, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-grid {
    gap: 12px;
  }
  
  .category-bubble {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .categories-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  
  .category-bubble {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
/* --- End: Category Bubbles Styles --- */

