.events-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.events-page h1 {
    margin-bottom: 32px;
    font-size: 2.2rem;
    font-weight: 700;
}

/* Grid */

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    /* centers the cards */
}


/* Card */

.event-card {
    width: 80%;
    max-width: 900px;

    display: flex;
    flex-direction: row;
    gap: 24px;

    background: #ffffff;
    border-radius: 8px;
    border: 1px solid black;
    padding: 22px 24px;
    /* box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.04); */


}

.confirmed {
    background-color: #c2ffd1;
}

.unconfirmed {
    background-color: #ffc7c7;
}



/* Header */
.event-card-header {
    flex: 0 0 220px;
    /* fixed left column */
    margin-bottom: 0;
}


.event-img-link>img {
    height: 160px;
    max-width: auto;
}

.event-card-header h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 600;
}

.event-date {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Body */
.event-card-body {
    flex: 1;
}

.event-card-body p {
    margin: 6px 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.event-description {
    margin-top: 10px;
    color: #374151;
}

/* Footer */

.event-card-footer {
    display: flex;
    margin-top: 0;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

.edit-event {
    background-color: rgb(79, 205, 255);
    width: fit-content;
    padding: 2px;
}

.delete-event {
    background-color: red;
    width: fit-content;
    padding: 2px;
    margin-top: 16px
}

.event-card-footer a {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #111827;
}

.event-card-footer a:hover {
    text-decoration: underline;
}


/* NEW STYLE CARD */

.event-row {
    width: 100%;
    max-width: 700px;
    margin: 8px 12px 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid teal;
    padding: 12px;
    border-radius: 12px;

}

.event-line {
    margin: 4px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.event-title {
    color: #7c3aed;
    /* purple */
    text-decoration: underline;
    /* font-weight: 600; */
}

.event-title:hover {
    text-decoration: none;
}

.event-artists {
    color: #7c3aed;
}

.event-time {
    color: #111;
}

.venue-access-link {
    color: green;
    /* font-weight: 600; */
}

.map-link {
    color: #2563eb;
    text-decoration: underline;
}

.map-link:hover {
    text-decoration: none;
}


.admin-actions {
    margin-left: 6px;
    font-size: 0.85rem;
}

.edit-event {
    color: #0ea5e9;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.delete-event {
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.delete-event:hover,
.edit-event:hover {
    opacity: 0.7;
}










/* States */

.loading {
    font-size: 1rem;
    color: #6b7280;
}

.events-section {
    margin-bottom: 64px;
}

.events-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}


.event-date-header {
    grid-column: 1 / -1;
    margin: 32px 0 12px;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        width: 100%;
    }

    .event-card-header {
        flex: none;
    }
}