/* Event meta adjustments */
    .event-meta {
        align-items: flex-start;
        gap: 0.875rem;
    }

    /* Keep side-by-side as column on tablet */
    .event-meta.side-by-side {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Event location */
    .event-location {
        text-align: left;
        margin-left: 0;
    }

    /* Hero actions */
    .event-hero-actions {
        text-align: left;
    }/* ============================================
   event_responsive.css
   All Media Queries and Responsive Styles
   ============================================ */

/* ============================================
   Tablet and below (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }

    body {
        font-size: 15px;
    }

    /* Hero section */
    .event-hero {
        padding: 2rem 1.5rem;
        background: linear-gradient(135deg,
            rgba(45, 62, 80, 0.95) 0%,
            rgba(91, 124, 153, 0.7) 40%,
            rgba(108, 155, 209, 0.4) 100%
        );
        text-align: left !important;  /* Keep left alignment on mobile */
    }

    /* Override Bootstrap classes on mobile */
    .event-hero.text-center {
        text-align: left !important;
    }

    .event-hero h1,
    .event-hero .display-5 {
        font-size: 1.875rem !important;
        margin-bottom: 1.25rem !important;
        text-shadow:
            rgba(0, 0, 0, 0.25) 2px 2px 4px,
            rgba(255, 255, 255, 0.2) 0px 0px 15px !important;
        color: #FFFFFF !important;
        text-align: left !important;
    }

    /* Date badge on mobile */
    .event-hero .lead {
        font-size: 0.95rem !important;
        padding: 0.875rem 1.25rem !important;
    }

    /* Date badge - more modern on mobile */
    .event-date-badge {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        border-radius: 12px;
        padding: 0.875rem 1.25rem;
        width: fit-content;
        max-width: 100%;
        margin-left: 0;
        margin-right: auto;
        font-size: 0.95rem;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: rgba(45, 62, 80, 0.08) 0px 4px 20px;
    }

    .date-component,
    .time-component {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        margin: 2px 0;
        width: auto;
    }

    .date-component i,
    .time-component i {
        display: inline-block;
        margin-right: 0.5rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .timezone-inline {
        font-size: 0.85em;
    }

    /* RSVP button */
    .btn-rsvp-hero {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1.0625rem;
        background: linear-gradient(135deg, #FFFFFF 0%, #F7F9FB 100%);
    }

    /* Google button on mobile */
    .btn-google {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    /* Event description */
    .event-description {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .perm_post,
    .dark-link {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Forms */
    .rsvp-section {
        padding: 2rem 1.5rem;
    }

    .rsvp-form-container {
        padding: 1.5rem;
    }

    /* Cards */
    .card-body {
        padding: 1.5rem;
    }

    /* Hero alerts */
    .event-hero .alert-warning,
    .event-hero .alert-success,
    .event-hero .alert-info {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
        max-width: 90%;
    }

    /* Fixed bottom alert */
    .fixed-bottom-alert {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .fixed-bottom-alert .btn-primary {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
        max-width: 120px;
    }

    .fixed-bottom-alert i {
        font-size: 1rem;
    }
}

/* ============================================
   Small mobile (max-width: 576px)
   ============================================ */
@media (max-width: 576px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    body {
        font-size: 14px;
    }

    /* Hero section */
    .event-hero {
        padding: 1.75rem 1.25rem;
    }

    /* Event title */
    .event-title {
        font-size: 1.625rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .event-date-badge {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
        border-radius: 6px;
    }

    .date-component i,
    .time-component i {
        font-size: 0.85rem;
    }

    .timezone-component,
    .timezone-inline {
        font-size: 0.75rem;
    }

    .event-location {
        font-size: 1rem;
    }

    /* RSVP button */
    .btn-rsvp-hero {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    /* Forms */
    .form-floating > .form-control {
        font-size: 0.95rem;
    }

    .rsvp-section {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    /* Navigation tabs */
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .nav-tabs .nav-link i {
        display: none;
    }
}

/* ============================================
   Very small mobile (max-width: 400px)
   ============================================ */
@media (max-width: 400px) {
    /* Typography */
    h1 { font-size: 1.5rem; }

    /* Hero section */
    .event-hero {
        padding: 1.5rem 1rem;
    }

    .event-title {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .event-date-badge {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Button adjustments */
    .btn-rsvp-hero {
        font-size: 0.9375rem;
        padding: 0.625rem 1rem;
    }

    /* Forms */
    .rsvp-section {
        padding: 1.25rem 0.875rem;
    }

    /* Fixed bottom alert */
    .fixed-bottom-alert {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .fixed-bottom-alert .btn-primary {
        width: 90%;
        max-width: 200px;
    }
}

/* ============================================
   Medium-Small Range (401px - 767px)
   ============================================ */
@media (min-width: 401px) and (max-width: 767px) {
    .event-date-badge {
        margin-left: 0;
        margin-right: auto;
    }

    .event-hero {
        text-align: left;
    }

    .event-location {
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }
}

/* ============================================
   Large screens (min-width: 992px)
   ============================================ */
@media (min-width: 992px) {
    /* Hero enhancements */
    .event-hero {
        padding: 3.5rem 3rem;
    }

    .event-title {
        font-size: 2.5rem;
        margin-bottom: 1.75rem;
    }

    /* Side-by-side layout for meta on large screens */
    .event-meta.side-by-side {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;  /* Changed from space-between to flex-start */
        align-items: center;
        gap: 2rem;  /* Add gap between elements */
    }

    .event-location {
        order: 1;
    }

    /* Larger description text on desktop */
    .perm_post,
    .dark-link {
        font-size: 1.125rem;
        line-height: 1.8;
    }

    /* Wider cards */
    .card-body {
        padding: 2.5rem;
    }
}

/* ============================================
   Extra large screens (min-width: 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .event-hero {
        padding: 4rem 3.5rem;
    }

    .event-title {
        font-size: 2.75rem;
    }
}

/* ============================================
   Ultra wide screens (min-width: 1400px)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    .no-print,
    .btn,
    .nav-tabs,
    .fixed-bottom-alert,
    .spinner-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .event-hero {
        background: none;
        color: black;
        border: 1px solid #ddd;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ============================================
   High contrast mode
   ============================================ */
@media (prefers-contrast: high) {
    .btn-rsvp-hero {
        background: var(--accent-color);
        border: 3px solid #FFFFFF;
        color: #FFFFFF;
        font-weight: 800;
        box-shadow: none;
        animation: none;
    }

    .btn-rsvp-hero:hover {
        background: #FFFFFF;
        color: var(--accent-color);
        border-color: var(--accent-color);
    }

    .form-control {
        border-width: 2px;
    }

    .alert {
        border: 2px solid currentColor;
    }
}

/* ============================================
   Reduced motion preferences
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .btn-rsvp-hero {
        animation: none !important;
    }
}

/* ============================================
   Touch device optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .form-check-input {
        width: 1.5rem;
        height: 1.5rem;
    }

    .nav-tabs .nav-link {
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .hover-lift:hover,
    .hover-glow:hover,
    .hover-scale:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ============================================
   Landscape orientation mobile
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .event-hero {
        padding: 1.5rem;
    }

    .event-title {
        font-size: 1.5rem;
    }

    .event-date-badge {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}
