/* Global Styles - My Babe Ruth World Series Theme */
body {
    background: rgb(239,62,66);
    background: radial-gradient(circle, rgba(239,62,66,1) 0%, rgba(0,63,122,1) 100%);
}

.hero-transition-image {
    margin-top: -64px;
    margin-left: -5px;
    background-color: black;
    min-height: 200px;
    max-height: 250px;
}

    .hero-transition-image img {
        object-position: center;
        object-fit: cover;
        width: 100%;
        max-height: 250px;
        -webkit-transition: opacity 1s ease-in-out;
        -moz-transition: opacity 1s ease-in-out;
        -o-transition: opacity 1s ease-in-out;
        transition: opacity 1s ease-in-out;
    }

@media only screen and (max-width: 600px) {
    .hero-transition-image {
        margin-top: -60px;
        margin-left: -5px;
        background-color: black;
        min-height: 80px;
    }

        .hero-transition-image img {
            object-position: center;
            object-fit: cover;
            width: 100%;
            max-height: 150px;
            -webkit-transition: opacity 1s ease-in-out;
            -moz-transition: opacity 1s ease-in-out;
            -o-transition: opacity 1s ease-in-out;
            transition: opacity 1s ease-in-out;
        }
}

.card-background {
    background-color: rgba(255,255,255,.05);
    color: white;
}

.form-background {
    background-color: rgba(255,255,255,.9);
}

    .form-background a {
        color: rgba(0,63,122,1);
    }

.pointer {
    cursor: pointer;
}

.inline-link {
    color: #8cc7ff;
}

.flex-break {
    flex-basis: 100%;
    height: 0;
}

/* FilePond grid layout customization */
.filepond--list {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.75rem;
}

.filepond--item {
    grid-column: span 12;
    position: relative;
}

/* Small screens (sm) - 6 columns (2 items per row) */
@media (min-width: 600px) {
    .filepond--item {
        grid-column: span 6;
    }
}

/* Medium screens (md) - 4 columns (3 items per row) */
@media (min-width: 960px) {
    .filepond--item {
        grid-column: span 4;
    }
}

/* Large screens (lg) - 2 columns (6 items per row) */
@media (min-width: 1280px) {
    .filepond--item {
        grid-column: span 2;
    }
}

/* Ensure FilePond items display properly in grid */
.filepond--list-scroller {
    width: 100%;
}

/* Override FilePond's default positioning for grid layout */
.filepond--item {
    position: relative !important;
    transform: none !important;
    margin: 0 !important;
}

/* Prep Image button — solid filled bar pinned to the bottom of each FilePond item.
   FilePond renders the edit button as a full-card overlay (inset: 0) by default.
   An explicit height combined with top:auto overrides that and collapses it to a bar. */
.filepond--action-edit-item {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    height: 36px !important;
    transform: none !important;
    width: 100% !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background-color: rgba(0, 63, 122, 0.92) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    opacity: 1 !important;
    overflow: hidden !important;
    z-index: 2 !important;
    transition: background-color 0.15s ease !important;
}

.filepond--action-edit-item:hover,
.filepond--action-edit-item:focus {
    background-color: rgb(0, 63, 122) !important;
    outline: none !important;
}

/* Keep the icon small — without this the SVG scales to fill the button */
.filepond--action-edit-item svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

/* Label text via ::after — FilePond strips non-SVG from imageEditIconEdit,
   so a pseudo-element is the only reliable way to inject visible text. */
.filepond--action-edit-item::after {
    content: 'PREP IMAGE';
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    white-space: nowrap;
}

/* Pintura Editor - Ensure Done button is visible on mobile */
@media (max-width: 768px) {
    /* Force the toolbar header to be visible */
    .PinturaToolbar {
        display: flex !important;
        visibility: visible !important;
    }

    /* Ensure Done/Export button is visible */
    .PinturaToolbar button[title*="Done"],
    .PinturaToolbar button[title*="Export"],
    .PinturaButtonExport {
        display: inline-flex !important;
        visibility: visible !important;
    }
}