/**
 * EventPageShellV2 – global shell styles.
 * Prevents horizontal scroll on mobile, spacing between sections, and toast
 * notification styles used by shopping cart and other components.
 */

/* Spacing between page sections (Featured Photo, Location, Schedule, etc.)
   White gap = main background. !important so component resets (e.g. all: initial)
   don’t remove the margin. */
:root {
    --ee-section-gap: 2.5rem;
}
main {
    background-color: #fff;
}
main > section:not(:first-of-type) {
    margin-top: var(--ee-section-gap) !important;
}
@media (max-width: 768px) {
    :root {
        --ee-section-gap: 1.5rem;
    }
}

/* Prevent horizontal scroll on mobile — many components (offcanvas, fixed bars, toasts)
   rely on viewport edges; if the document overflows, they get clipped. */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Toast Notifications (used by shopping cart and other components) */
.ee-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.ee-toast--show {
    opacity: 1;
    transform: translateX(0);
}

.ee-toast--success {
    border-left: 4px solid #28a745;
}

.ee-toast--error {
    border-left: 4px solid #dc3545;
}

.ee-toast__icon {
    font-size: 1.25rem;
}

.ee-toast--success .ee-toast__icon {
    color: #28a745;
}

.ee-toast--error .ee-toast__icon {
    color: #dc3545;
}

.ee-toast__message {
    font-weight: 500;
    color: #333;
}

@media (max-width: 768px) {
    .ee-toast {
        top: auto;
        bottom: 5rem;
        right: 0.5rem;
        left: 0.5rem;
        transform: translateY(100%);
    }

    .ee-toast--show {
        transform: translateY(0);
    }
}
