﻿.event-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.event-image-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #30415a;
    border-radius: 18px;
    background: linear-gradient(135deg, #294878, #101927);
    color: #fff;
    text-decoration: none;
}

    .event-image-card > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .event-image-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgb(0 0 0 / 5%) 20%, rgb(0 0 0 / 50%) 60%, rgb(0 0 0 / 90%) 100% );
    }

.event-image-card-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 20px;
}

.event-image-card-type {
    display: block;
    margin-bottom: 8px;
    color: #c5d6ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-image-card .event-image-card-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 8px rgb(0 0 0 / 50%);
}

.event-image-card:hover {
    border-color: #9bbaff;
    color: #fff;
}

.event-image-card:focus-visible {
    outline: 2px solid #a7bdff;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .event-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .event-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.event-details-hero {
    display: flex;
    align-items: flex-end;
    aspect-ratio: auto;
    min-height: clamp(300px, 45vw, 480px);
    margin-bottom: 24px;
}

.event-details-hero-caption {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 92px 24px 24px;
}

.event-details-hero .event-details-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 8px rgb(0 0 0 / 60%);
}

.event-details-hero .event-details-location {
    margin: 0;
    color: #e0e9fa;
    font-size: 0.95rem;
    text-shadow: 0 2px 6px rgb(0 0 0 / 70%);
}

.event-details-hero-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .event-details-hero-actions .crew-card-edit {
        background: rgb(16 22 35 / 85%);
    }

.event-back-button {
    border: 1px solid #94a9c7;
    color: #dce5f5;
}

    .event-back-button svg {
        stroke-width: 3;
    }

    .event-back-button:hover {
        background: #26364c;
        border-color: #c3d5ff;
        color: #fff;
    }

.event-attendance {
    background: linear-gradient(135deg, #1b2b45, #142031);
}

.event-attendance-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .event-attendance-heading .garage-eyebrow {
        display: block;
        margin: 0 0 6px;
    }

.event-attendance .event-attendance-title {
    margin: 0;
    font-size: 1.15rem;
}

.event-attendance-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid #3a5482;
    border-radius: 14px;
    background: #233b65;
    color: #b8ceff;
}

    .event-attendance-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.event-attendance-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #30435f;
}

.event-attendance-total {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-attendance-number {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.event-attendance-label {
    display: block;
    color: #dce5f5;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-attendance-status {
    display: block;
    margin-top: 4px;
    color: #9fc2ff;
    font-size: 0.75rem;
}

.event-time-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .event-time-fields > input[type="date"],
    .event-time-fields > button {
        grid-column: 1 / -1;
    }

    .event-time-fields .form-control,
    .event-time-fields .form-select {
        min-height: 46px;
    }

    .event-time-fields > button {
        justify-self: start;
        font-size: 0.8rem;
    }

.event-logistics-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.event-logistics-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 16px 0;
}

    .event-logistics-row:first-child {
        padding-top: 0;
    }

    .event-logistics-row:last-child {
        padding-bottom: 0;
    }

    .event-logistics-row + .event-logistics-row {
        border-top: 1px solid #2d405a;
    }

.event-logistics-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #3a5482;
    border-radius: 12px;
    background: #213657;
    color: #b8ceff;
}

    .event-logistics-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.event-logistics-label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.event-logistics-value {
    display: block;
    color: #c8d5e9;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.event-logistics-time {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 9px;
    border-radius: 6px;
    background: #243b60;
    color: #dce8ff;
    font-size: 0.8rem;
    font-weight: 700;
}

.event-logistics-times {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 8px;
}

.event-time-item {
    display: grid;
    gap: 5px;
}

.event-time-label {
    color: #b9c9df;
    font-size: 0.75rem;
    font-weight: 700;
}

.event-logistics-times .event-logistics-time {
    margin-top: 0;
    font-size: 0.95rem;
    text-align: center;
}

.event-date-item {
    min-width: 0;
    max-width: 100%;
}

    .event-date-item .event-logistics-time {
        white-space: normal;
        overflow-wrap: anywhere;
    }

.event-location-badge {
    max-width: 100%;
    margin-top: 3px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

.event-clock-times .event-time-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-about {
    background: linear-gradient(135deg, #1b2b45, #142031);
}

.event-about-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .event-about-heading .event-logistics-icon {
        flex-shrink: 0;
    }

    .event-about-heading .garage-eyebrow {
        display: block;
        margin: 0 0 5px;
    }

.event-about .event-about-title {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.event-about-description {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #30435f;
    color: #d5e0f1;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.event-host-link,
.event-host-name {
    display: inline-block;
    max-width: 100%;
    margin-top: 3px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #243b60;
    color: #dce8ff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .event-host-link:hover {
        background: #304f80;
        color: #fff;
    }

.event-details-hero-caption {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.event-details-hero-text {
    flex: 1;
    min-width: 0;
}

.event-host-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #63758e;
    border-radius: 16px;
    background: rgb(16 22 35 / 90%);
    box-shadow: 0 4px 16px rgb(0 0 0 / 30%);
}

    .event-host-logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .event-host-logo:hover {
        border-color: #b8ceff;
    }

@media (max-width: 600px) {
    .event-host-logo {
        width: 56px;
        height: 56px;
        border-radius: 13px;
    }
}

.event-image-card-caption {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.event-card-caption-text {
    flex: 1;
    min-width: 0;
}

.event-host-logo.event-card-host-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.event-hero-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgb(16 22 35 / 85%);
}

.event-crew-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 10px 14px;
    border: 1px solid #3a4f6c;
    border-radius: 12px;
    background: #0e1826;
    color: #dce5f5;
}

.event-crew-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 9px 0;
    cursor: pointer;
}

    .event-crew-option + .event-crew-option {
        border-top: 1px solid #24354d;
    }

    .event-crew-option .form-check-input {
        float: none;
        flex-shrink: 0;
        margin: 3px 0 0;
    }

    .event-crew-option span {
        overflow-wrap: anywhere;
    }