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

body {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; */
    font-family: Georgia, "Times New Roman", serif;

    color: #111827;
    background: #ffffff;
    line-height: 1.6;
}

button {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; */
    font-family: Georgia, "Times New Roman", serif;

}

html,
body {
    height: auto;
    min-height: 100%;
    margin: 0;
}

/* HEADER BASE */
.site-header {
    display: flex;
    align-items: center;
    justify-content: start;
}

.logo img {
    width: 130px;
    height: auto;
}

.main-nav {
    margin-left: 32px;
    display: flex;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    color: #111827;
    font-size: 0.95rem;
}

/* BURGER */
.burger {
    display: none;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111827;
}

/* MAIN CONTENT */
.main-content {
    max-width: 640px;
    margin: 0 auto 0 auto;
    padding: 0 24px;
}

.main-content h1 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.main-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.submit-link {
    display: inline-block;
    margin: 16px 0 32px 0;
    color: #34f5c5;
    font-weight: 600;
    text-decoration: underline;
    letter-spacing: 0.02em;
}

/* NEWSLETTER */
.newsletter {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.newsletter input {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.newsletter button {
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: #34f5c5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* POWERED BY */
.powered-by {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 8px;
}


.legend {
    width: fit-content;
    max-width: 75vw;
    margin: 0 auto 20px auto;
}

.legend h4 {
    margin-top: 8px;
}

.nineteen-red {
    background-color: #b91c1c;
    color: white;
}

.dollar-gray {
    background-color: #6b6b6b;
    color: white;
}

.events-section>h2 {
    text-align: center;
    margin-top: 60px
}

/* FOOTER */
.site-footer {
    margin-top: 140px;
    padding: 32px;
    font-size: 0.85rem;
    color: #111827;
}



.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

#admin-modal {
    background: rgba(0, 0, 0);

}

.modal-dialog {
    position: relative;
    max-width: 360px;
    margin: 20vh auto 0;
    padding: 24px;

    background: #fff;
    border-radius: 12px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions button {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.modal-actions .danger {
    background: #b91c1c;
    color: #fff;
    border: none;
}



.auth-error {
    color: #b00020;
    font-size: 0.85rem;
    margin-top: 8px;
}

#admin-auth-modal input {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
}

.manage-events-count,
.manage-venues-count {
    text-align: center;
    color: rgb(255, 145, 145)
}

.manage-events-count.empty,
.manage-venues-count.empty {
    color: rgb(144, 255, 144)
}

.manage-events-title,
.manage-venues-title {
    margin-top: 32px;
    text-align: center;
}

.manage-events-desc,
.manage-venues-desc {
    text-align: center;
}

.archive-add-title {
    text-align: center;
}

#archive-form {
    text-align: center;
}

/* admin venues */


.venues-title {
    text-align: center;
}

.accessibility-header {
    text-align: center;
    margin: 30px;
}

/* GRID LAYOUT */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* CARD */
.venue-card {
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80vw;
    margin: 24px auto;
    border: 1px solid black;
}

/* LABELS */
.venue-card label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #666;
    margin-top: 6px;
}

/* INPUTS + TEXTAREAS */
.venue-card input,
.venue-card textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    resize: vertical;
}

.venue-card input:focus,
.venue-card textarea:focus {
    outline: none;
    border-color: #4c9ffe;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(76, 159, 254, 0.15);
}

/* NAME FIELD STANDOUT */
.venue-name {
    font-weight: 600;
    font-size: 1rem;
}

/* TEXTAREAS HEIGHT TWEAK */


.venue-accessibility {
    min-height: 70px;
}


/* OPTIONAL LINK STYLE */
.venue-link {
    color: #333;
}

.venue-card.approved {
    background-color: #c2ffd1;
}

.venue-card.unapproved {
    background-color: #ffc7c7;
}

.accessibility-group {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accessibility-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    justify-content: start;
}

.accessibility-group input[type="radio"] {
    cursor: pointer;
    width: 10px;
}


.modal-card {
    position: relative;
    z-index: 1;
    width: 420px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;

    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    gap: 14px;

    animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




/* MOBILE */
@media (max-width: 768px) {
    .logo img {
        width: 80px
    }

    .site-header {
        justify-content: space-between;
    }

    .burger {
        display: block;
        color: black;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        right: 16px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        margin-left: 0;

        display: none;
        /* hidden by default */
    }

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