/* ============================================================
   GLOBAL
============================================================ */

body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333;
}

#searchInput {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 900;
}

/* ============================================================
   TABLE VIEW
============================================================ */

#eventsTable {
  width: 100%;
  border-collapse: collapse;
}

#eventsTable th,
#eventsTable td {
  padding: 10px;
  border: 1px solid black;
}

#eventsTable th {
  background: #b30000;
  text-align: left;
  color: white;
}

#eventsTable tbody tr:nth-child(odd) {
  background-color: #e9e50e;
}

#eventsTable tbody tr:nth-child(even) {
  background-color: #ffffff;
}

#eventsTable tbody tr:hover {
  background-color: #f0f7ff;
}

#eventsTable thead th {
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   TOGGLE BUTTON
============================================================ */

#toggleViewBtn {
  padding: 8px 14px;
  background: red;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

#toggleViewBtn:hover {
  background: #004c99;
}

/* ============================================================
   CARD VIEW CONTAINER
============================================================ */

#card-view {
  display: none; /* shown by JS */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* ============================================================
   CARD COMPONENT
============================================================ */

.event-card {
  background: #e9e50e !important; /* your intended card color */
  border: 1px solid #2a2a2a;
  border-left: 4px solid #e63946;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 6px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.event-card:hover {
  background: #1f1f1f;
  border-left-color: #ff4d5a;
}

.event-date {
  font-size: 20px;
  font-weight: 600;
  color: #e63946;
  min-width: 70px;
  text-align: center;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-venue {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.event-artist {
  font-size: 16px;
  color: #ccc;
}

.event-time {
  font-size: 14px;
  color: #999;
}

.event-card a {
  color: #0073e6;
  text-decoration: none;
  font-weight: 600;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.event-card a:hover {
  color: #005bb5;
  text-shadow: 0 0 4px rgba(0, 115, 230, 0.4);
}

/* Header row: date + area */
.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.event-date {
  color: #333;
}

.event-area {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  background: #0073e6;
}

/* Body: performer + venue + time */
.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-performer {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

.event-venue {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

/* Ensure links are clickable */
.event-performer a,
.event-venue a {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
  color: #0073e6;
  text-decoration: none;
  font-weight: 600;
}

.event-performer a:hover,
.event-venue a:hover {
  text-decoration: underline;
}

.event-performer {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

.event-venue {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

/* Area badge colors */
.area-mt {
  background: #3b82f6;
} /* Manhattan */
.area-bk {
  background: #ef4444;
} /* Brooklyn */
.area-wt {
  background: #10b981;
} /* Westchester */
.area-nj {
  background: #8b5cf6;
} /* New Jersey */
.area-li {
  background: #f59e0b;
} /* Long Island */
.area-nyc {
  background: #6366f1;
} /* NYC general */
.area-qs {
  background: #2ecc40;
} /* Queens */
.area-bx {
  background: #ff851b;
} /* Bronx */
.area-si {
  background: #b10dc9;
} /* Staten Island */
.area-rk {
  background: #39cccc;
} /* Rockland */
.area-ct {
  background: #001f3f;
} /* Connecticut */
.area-pa {
  background: #7fdbff;
} /* Pennsylvania */

/* Make the banner image centered and responsive */
.site-header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #b00000;
}

th[data-sort] {
  cursor: pointer;
  user-select: none;
}

th.asc::after {
  content: " ▲";
  font-size: 0.8em;
}

th.desc::after {
  content: " ▼";
  font-size: 0.8em;
}

/* Style the red TEST SITE banner */
.site-header {
  background: #b30000;
  /* color: white;
    padding: 8px 0;
    font-weight: bold;
    font-size: 18px;
    text-align: center;*/
}

/* ============================================================
   HAMBURGER MENU
============================================================ */

.hamburger {
  width: 32px;
  cursor: pointer;
  margin: 10px 0;
  display: none;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #333;
  margin: 6px 0;
  border-radius: 2px;
}

.main-menu {
  background: #b30000;
  display: flex;
  justify-content: center;
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* Base link styling for table and card view */
table a,
.card-view a {
  position: relative;
  text-decoration: none;
  color: #c62828; /* deep red that fits your palette */
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Animated underline */
table a::after,
.card-view a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #c62828;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

/* Hover effect */
table a:hover,
.card-view a:hover {
  color: #e53935; /* slightly brighter red on hover */
}

table a:hover::after,
.card-view a:hover::after {
  transform: scaleX(1);
}

.contact-form {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c62828;
  outline: none;
  box-shadow: 0 0 4px rgba(198, 40, 40, 0.3);
}

.contact-form button {
  background: #c62828;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.contact-form button:hover {
  background: #e53935;
}

.form-feedback {
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  background-color: #fff8e1;
  border-left: 4px solid #c62828;
  color: #333;
}

#current {
  color: #f4d47c; /* warm gold highlight */
  border-bottom: 2px solid #f4d47c;
  padding-bottom: 3px;
}

@media (max-width: 900px) {
  #card-view {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* MOBILE MENU */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .main-menu li {
    border-bottom: 1px solid #444;
  }

  .main-menu a {
    padding: 12px;
    display: block;
  }
}

/* @media (max-width: 600px) { #cardContainer { grid-template-columns: 1fr; } } */

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
    margin-top: 40px;
    padding: 20px 10px;
    background: #222;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.site-footer p {
    margin: 6px 0;
}

/* ============================================================
   MOBILE CARD VIEW + AREA COLUMN FIX
============================================================ */

@media (max-width: 600px) {

    table#eventsTable td.col-area,
    table#eventsTable th.col-area {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        padding: 0 2px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}
