/* ══════════════════════════════════════════
   COMUNIDAD PAGE STYLES — DEMONS RACING
   ══════════════════════════════════════════ */

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

body {
  background-color: #070e1d;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  color: #dce2f7;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── ZOOM FIX ─── */
.content-grid > * {
  min-width: 0;
  overflow-wrap: break-word;
}
.events-grid > * { min-width: 0; }
.event-card { min-width: 0; overflow: hidden; }
.event-card h3,
.event-card p,
.cat-list li {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ─── GLASS CARD (shared with home/garage) ─── */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 64, 59, 0.3);
  box-shadow: 0 0 15px rgba(185, 28, 28, 0.05);
  transition: all .35s cubic-bezier(.17, .89, .32, 1.2);
}

.glass-card:hover {
  border-color: #991b1b;
  box-shadow: 0 0 35px rgba(185, 28, 28, 0.18);
  transform: translateY(-4px);
}

/* ─── LAYOUT ─── */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* ─── PAGE HEADER ─── */
.page-header-section {
  padding: 2.5rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.page-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: #b91c1c;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.access-badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: #b91c1c;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.page-title-block h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: #dce2f7;
  text-transform: uppercase;
}

.page-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e3beb7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-subtitle span {
  color: #5b403b;
  margin: 0 0.25rem;
}

/* ─── PUBLISH BUTTON ─── */
.publish-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: #b91c1c;
  color: #590800;
  border: none;
  border-radius: 0.125rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.publish-btn:hover {
  background: #b91c1c;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.3);
  transform: translateY(-2px);
}

.publish-btn-icon {
  font-size: 1rem;
  font-weight: 800;
}

.publish-btn-text strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #590800;
}

.publish-btn-text small {
  display: block;
  font-size: 0.6rem;
  color: rgba(89, 8, 0, 0.7);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ─── GRID ─── */
.content-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(200px, 260px);
  gap: 1.5rem;
  max-width: 1800px;
  margin: auto;
  padding: 1.5rem 2rem 3rem;
}

/* ─── SIDEBAR ─── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.sidebar-section {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 64, 59, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  padding: 1.25rem;
  border-radius: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.sidebar-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e3beb7;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(91, 64, 59, 0.25);
}

/* ─── CATEGORIES ─── */
.cat-list {
  list-style: none;
}

.cat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e3beb7;
  border-radius: 0.125rem;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  user-select: none;
}

.cat-list li:hover {
  color: #dce2f7;
  background: rgba(255, 255, 255, 0.04);
}

.cat-list li.active {
  color: #b91c1c;
  border-left-color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.cat-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.cat-count {
  margin-left: auto;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 2px;
  color: #e3beb7;
}

/* ─── CALENDAR ─── */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dce2f7;
}

.cal-nav {
  background: none;
  border: 1px solid rgba(91, 64, 59, 0.25);
  color: #e3beb7;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 0.125rem;
  transition: all 0.2s;
}

.cal-nav:hover {
  color: #b91c1c;
  border-color: #b91c1c;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-day-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e3beb7;
  padding: 4px 0;
}

.cal-day {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 2px;
  cursor: pointer;
  border-radius: 0.125rem;
  color: #dce2f7;
  transition: all 0.15s;
}

.cal-day:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cal-day.today {
  background: #b91c1c;
  color: white;
}

.cal-day.has-event {
  color: #991b1b;
  font-weight: 800;
}

.cal-day.empty {
  opacity: 0.2;
  pointer-events: none;
}

/* ─── CLUBS ─── */
.club-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.club-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem;
  border-radius: 0.125rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

.club-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0c1322;
  border: 1px solid rgba(91, 64, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.club-info strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dce2f7;
}

.club-info small {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: #e3beb7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── CENTER AREA ─── */
.center-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ─── SEARCH ─── */
.search-bar-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 64, 59, 0.25);
  color: #dce2f7;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  outline: none;
  border-radius: 0.125rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input::placeholder {
  color: #e3beb7;
}

.search-box input:focus {
  border-color: rgba(185, 28, 28, 0.3);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.06);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #e3beb7;
  font-size: 0.85rem;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.sort-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3beb7;
}

.sort-select {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 64, 59, 0.25);
  color: #dce2f7;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.7rem 2rem 0.7rem 0.75rem;
  outline: none;
  cursor: pointer;
  border-radius: 0.125rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aa8982' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.results-info {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #e3beb7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.results-info span {
  color: #b91c1c;
}

/* ─── EVENTS GRID ─── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* ─── EVENT CARD ─── */
.event-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 64, 59, 0.25);
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: all .35s cubic-bezier(.17, .89, .32, 1.2);
  position: relative;
  overflow: hidden;
  animation: fadeUp .4s ease both;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #991b1b;
  box-shadow: 0 0 35px rgba(185, 28, 28, 0.18);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.event-card-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(91, 64, 59, 0.2);
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.event-card:hover .event-card-img img {
  transform: scale(1.05);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.img-piques { background: linear-gradient(135deg, #1a0a05 0%, #3d0f05 40%, #1a0a05 100%); }
.img-rodada { background: linear-gradient(135deg, #05101a 0%, #0a2a3d 40%, #05101a 100%); }
.img-expos { background: linear-gradient(135deg, #050510 0%, #0d0a2a 40%, #050510 100%); }
.img-expo { background: linear-gradient(135deg, #050510 0%, #0d0a2a 40%, #050510 100%); }
.img-encuentros { background: linear-gradient(135deg, #080510 0%, #1a0a2a 40%, #080510 100%); }
.img-encuentro { background: linear-gradient(135deg, #080510 0%, #1a0a2a 40%, #080510 100%); }
.img-nocturno { background: linear-gradient(135deg, #050510 0%, #0d0520 40%, #050510 100%); }
.img-ruta { background: linear-gradient(135deg, #050a05 0%, #0a1a05 40%, #050a05 100%); }
.img-otros { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #0a0a0a 100%); }

.card-event-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

.card-event-title .big-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #f0f0f0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.card-event-title .date-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
  line-height: 1.5;
  text-align: center;
}

.card-real-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.event-card:hover .card-real-img {
  transform: scale(1.05);
}

.card-img-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 14, 29, 0.92) 0%, rgba(7, 14, 29, 0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
}

.card-img-caption .big-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.card-img-caption .date-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.category-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 0.125rem;
  background: #b91c1c;
  color: white;
  z-index: 2;
}

.category-tag.rodadas { background: #1a6ef0; }
.category-tag.expos { background: #8850ff; }
.category-tag.encuentros { background: #b91c1c; }
.category-tag.otros { background: #555a72; }

.event-card-body {
  padding: 0.75rem;
}

.event-card-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #dce2f7;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.event-card-club {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3beb7;
  margin-bottom: 0.5rem;
}

.event-card-club span {
  color: #991b1b;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #e3beb7;
}

.event-meta-row .meta-icon {
  font-size: 0.65rem;
  opacity: 0.7;
}

.event-card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(91, 64, 59, 0.2);
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #e3beb7;
  font-weight: 600;
}

.stat .stat-icon {
  font-size: 0.7rem;
}

.like-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(91, 64, 59, 0.3);
  color: #e3beb7;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 0.125rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.like-btn:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

.like-btn.liked {
  border-color: #b91c1c;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

/* ─── EMPTY STATE ─── */
.empty-events {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: #e3beb7;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
}

.empty-events .empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
}

/* ─── RIGHT SIDEBAR ─── */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 107, 107, 0.18);
  border-radius: 1rem;
  width: min(980px, 88vw);
  max-height: 92vh;
  overflow: hidden;
  margin: auto;
  box-shadow:
    0 0 0 1px rgba(185, 28, 28, .08),
    0 0 25px rgba(185, 28, 28, .08);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(91, 64, 59, 0.2);
  background: #0c1322;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 1rem 1rem 0 0;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e3beb7;
}

.modal-header-left::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: #b91c1c;
  border-radius: 50%;
}

.modal-close {
  background: none;
  border: 1px solid rgba(91, 64, 59, 0.3);
  color: #e3beb7;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

.modal-body {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  justify-content: center;
  gap: 1.5rem;
  align-items: start;
  padding: 1rem 1.5rem;
  max-height: calc(92vh - 80px);
  overflow-y: auto;
}

.modal-flyer {
  padding: 0;
  border-right: 1px solid rgba(91, 64, 59, 0.2);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modal-flyer-img {
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(185, 28, 28, 0.25);
  box-shadow: 0 0 25px rgba(185, 28, 28, 0.1);
  background: #060606;
  position: relative;
}

.modal-flyer-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.75rem;
}

.modal-flyer-img .img-placeholder {
  border-radius: 0.75rem;
  min-height: 350px;
}

.modal-info {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-event-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #dce2f7;
  margin-bottom: 0.25rem;
}

.modal-location-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b91c1c;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.meta-box {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(91, 64, 59, 0.25);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
}

.meta-box-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3beb7;
  margin-bottom: 4px;
}

.meta-box-icon {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.meta-box-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #dce2f7;
}

.modal-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b91c1c;
  margin-bottom: 0.5rem;
}

.modal-description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e3beb7;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #e3beb7;
}

.info-list li .info-icon {
  font-size: 0.7rem;
  opacity: 0.7;
  width: 16px;
  text-align: center;
}

.organizer-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(91, 64, 59, 0.25);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.organizer-logo {
  width: 40px;
  height: 40px;
  background: #0c1322;
  border: 1px solid rgba(185, 28, 28, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.organizer-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dce2f7;
}

.organizer-handle {
  font-size: 0.7rem;
  color: #e3beb7;
  margin-top: 2px;
}

.share-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #b91c1c;
  color: #dce2f7;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.share-btn:hover {
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.2);
  border-color: #b91c1c;
}

.share-btn span {
  position: relative;
}

/* ─── SUBMIT FORM MODAL ─── */
.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.form-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.form-modal {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: 1rem;
  width: min(980px, 88vw);
  max-height: 92vh;
  overflow: hidden;
  margin: auto;
  box-shadow: 0 0 25px rgba(185, 28, 28, 0.08);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 64, 59, 0.3) transparent;
}

.form-overlay.open .form-modal {
  transform: translateY(0);
}

.form-modal .modal-body {
  padding: 1rem 1.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(25, 31, 47, 0.8);
  border: 1px solid rgba(91, 64, 59, 0.25);
  color: #dce2f7;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

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

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3beb7;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-submit {
  background: #b91c1c;
  border: none;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0.5rem;
}

.form-submit:hover {
  background: #b91c1c;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.3);
}

/* Image upload zone */
.img-upload-zone {
  position: relative;
  background: rgba(25, 31, 47, 0.8);
  border: 2px dashed rgba(185, 28, 28, 0.25);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.img-upload-zone:hover {
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.04);
}

.img-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3beb7;
  line-height: 2.2;
  pointer-events: none;
}

.upload-preview {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  border-radius: 0.25rem;
  margin: 0 auto;
  display: none;
  object-fit: contain;
}

.img-upload-zone.has-image .upload-label {
  display: none;
}

.img-upload-zone.has-image .upload-preview {
  display: block;
}

.img-upload-zone.has-image {
  padding: 0.5rem;
}

/* ─── NAV MOBILE MENU ─── */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(7, 14, 29, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 64, 59, 0.25);
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  z-index: 99;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  padding: 0.9rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3beb7;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: #b91c1c;
  border-left-color: #b91c1c;
  background: rgba(185, 28, 28, 0.05);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 200px 1fr;
  }

  .right-sidebar {
    display: none;
  }

  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-body {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding-top: 64px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .sidebar,
  .right-sidebar {
    display: none;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header-section {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1rem 0;
  }

  .publish-btn {
    width: 100%;
  }

  .modal {
    max-height: 95vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-flyer {
    border-right: none;
    border-bottom: 1px solid rgba(91, 64, 59, 0.2);
  }

  .modal-flyer-img {
    max-width: 300px;
    margin: auto;
  }

  .modal-flyer-img .img-placeholder {
    min-height: 200px;
  }

  .modal-info {
    padding: 0.5rem;
    gap: 0.75rem;
  }

  .modal-event-name {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .events-grid {
    grid-template-columns: 1fr;
  }

  .page-title-block h1 {
    font-size: 1.5rem;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-bar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-box {
    justify-content: flex-start;
  }
}
