/* ============================================================
   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;
}

/* 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;
}

@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) { #card-view { 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
============================================================ */

@media (max-width: 480px) {
    #card-view {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 14px;
    }
}


