/* Ensure all content in event-hero is left-aligned */
.event-hero > *,
.event-hero p,
.event-hero h1,
.event-hero h2,
.event-hero h3,
.event-hero button,
.event-hero .btn {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Exception: buttons should have centered text inside them */
.event-hero button,
.event-hero .btn {
    text-align: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    margin-top: 1.5rem !important;
}/* ============================================
   event_components.css
   Hero Section, Cards, Tabs, Alerts, and Components
   ============================================ */

/* ============================================
   Event Hero Section
   ============================================ */
.event-hero {
    background: var(--hero-gradient);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    text-align: left !important;  /* Override Bootstrap text-center */
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Override Bootstrap text-center class when inside event-hero */
.event-hero.text-center {
    text-align: left !important;
}

/* Event Title - Override Bootstrap display classes */
.event-title,
.event-hero h1,
.event-hero .display-5,
.event-hero .display-4,
.event-hero .display-3 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: rgb(255, 255, 255) !important;
    margin-bottom: 1rem !important;
    text-shadow:
        rgba(0, 0, 0, 0.2) 2px 2px 4px,
        rgba(255, 255, 255, 0.3) 0px 0px 20px !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

/* Override inline styles */
.event-hero h1[style*="color"] {
    color: rgb(255, 255, 255) !important;
}

/* Event Meta Container */
.event-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Override Bootstrap lead class for date/time */
.event-hero .lead,
.event-hero p.lead {
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.75rem;
    box-shadow: rgba(45, 62, 80, 0.08) 0px 4px 20px;
    border-radius: 14px;
    border: 1px solid rgba(91, 124, 153, 0.2);
    color: var(--primary-color) !important;
}

/* Style the date/time span inside lead */
.event-hero .lead .updateEventCountry,
.event-hero .lead span[data-eid] {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Override text-muted for location */
.event-hero .text-muted,
.event-hero p.text-muted {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem !important;
    margin-top: 0.5rem !important;
    text-align: left !important;
    opacity: 1 !important;
}

/* Icons in event-hero */
.event-hero .fas,
.event-hero .far {
    color: currentColor;
    opacity: 0.9;
}

/* Event Meta Side-by-side layout for large screens */
.event-meta.side-by-side {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Event Date Badge - both for proper class and Bootstrap lead */
.event-date-badge,
.event-hero .lead,
.event-hero p.lead {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.05rem !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    box-shadow: rgba(45, 62, 80, 0.08) 0px 4px 20px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(91, 124, 153, 0.2) !important;
    min-width: fit-content;
    max-width: fit-content;
    text-align: center !important;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 !important;
    color: var(--primary-color) !important;
    line-height: 1.5 !important;
}

/* Icons inside date badge */
.event-date-badge i,
.event-hero .lead i {
    color: var(--primary-color) !important;
    opacity: 0.85;
    font-size: 1rem;
    margin-right: 0 !important;
}

/* Date/Time Components */
.date-component,
.time-component {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-color);
    font-weight: 600;
}

.date-component i,
.time-component i {
    color: var(--primary-color);
    opacity: 0.85;
    font-size: 1rem;
}

/* Timezone styling */
.timezone-inline {
    font-size: 0.9em;
    opacity: 0.85;
}

.timezone-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.timezone-link:hover {
    color: var(--accent-color);
    text-decoration-style: solid;
    opacity: 1;
}

.event-date-badge .timezone-link {
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

/* Single line display */
.datetime-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.datetime-display i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.event-datetime {
    color: var(--primary-color);
    font-weight: 500;
}

.end-date-component {
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Loading state while converting */
.event-date-badge:not(.timezone-converted) .timezone-display {
    opacity: 0.7;
    font-style: italic;
}

/* Event Location */
.event-location {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: left;  /* Ensure left alignment */
}

.event-location i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Hero Actions Container */
.event-hero-actions {
    margin-top: 1.75rem;
    text-align: left !important;  /* Force left align */
}

/* Override Bootstrap button classes in hero */
.event-hero .btn,
.event-hero button {
    text-align: center;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Ensure status messages in hero are properly styled */
.event-hero .alert-warning,
.event-hero .alert-success,
.event-hero .alert-info {
    display: inline-block;
    margin: 1.5rem 0 0;
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    max-width: fit-content;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero section alert states */
.event-hero .alert-success {
    background: rgba(255, 255, 255, 0.95);
    color: var(--success-color);
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.event-hero .alert-warning {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    border: 1px solid rgba(244, 162, 97, 0.2);
}

.event-hero .alert-info {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 1px solid rgba(108, 155, 209, 0.2);
}

.event-hero .alert-danger {
    background: rgba(255, 255, 255, 0.95);
    color: var(--danger-color);
    border: 1px solid rgba(193, 102, 107, 0.2);
}

/* Icon styling in alerts */
.event-hero .alert i {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* RSVP Hero Button */
.btn-rsvp-hero,
.event-hero .btn-rsvp-hero,
.event-hero button.btn {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F9FB 100%) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(91, 124, 153, 0.2) !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    border-radius: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: auto !important;
    max-width: fit-content !important;
}

.btn-rsvp-hero:hover,
.event-hero .btn-rsvp-hero:hover,
.event-hero button.btn:hover {
    background: var(--accent-color) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow:
        0 12px 32px rgba(255, 107, 53, 0.35),
        0 4px 12px rgba(255, 107, 53, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
}

.btn-rsvp-hero:active {
    transform: translateY(-1px) scale(1);
    box-shadow:
        0 4px 12px rgba(255, 107, 53, 0.3),
        inset 0 2px 3px rgba(0, 0, 0, 0.15);
}

/* Status variant buttons in hero */
.btn-rsvp-hero.btn-success,
.btn-rsvp-hero.btn-registered,
.btn-rsvp-hero[disabled].btn-success {
    background: linear-gradient(135deg, var(--success-color), #5A8D68);
    color: white;
    border-color: var(--success-color);
    opacity: 1;
    cursor: default;
}

.btn-rsvp-hero.btn-warning,
.btn-rsvp-hero.btn-waitlisted,
.btn-rsvp-hero[disabled].btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #D4B865);
    color: var(--dark-color);
    border-color: var(--warning-color);
    opacity: 1;
    cursor: default;
}

.btn-rsvp-hero.btn-info,
.btn-rsvp-hero[disabled].btn-info {
    background: linear-gradient(135deg, var(--info-color), #5A88B8);
    color: white;
    border-color: var(--info-color);
    opacity: 1;
    cursor: default;
}

/* Prevent hover effects on disabled state buttons */
.btn-rsvp-hero[disabled]:hover,
.btn-rsvp-hero.btn-registered:hover,
.btn-rsvp-hero.btn-waitlisted:hover {
    transform: none;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-rsvp-hero i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* Submit variant */
.btn-rsvp-hero.btn-submit {
    margin-top: 1.5rem;
    min-width: 180px;
}

/* Ensure all RSVP hero buttons maintain consistency */
.btn-rsvp-hero,
.btn-rsvp-hero:focus {
    outline: none;
}

/* ============================================
   Event Description
   ============================================ */
.event-description {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-left: 4px solid rgba(91, 124, 153, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-description h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* Better readability for descriptions */
.perm_post,
.dark-link {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-description);
}

.perm_post p {
    margin-bottom: 1.25rem;
}

/* Less emphasized bold */
.perm_post strong,
.perm_post b {
    font-weight: 600;
    color: var(--text-on-light);
}

/* Better link blending */
.perm_post a,
.dark-link a {
    color: var(--primary-color);
    opacity: 0.85;
    text-decoration: underline;
    text-decoration-color: rgba(91, 124, 153, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.perm_post a:hover,
.dark-link a:hover {
    color: var(--accent-color);
    opacity: 1;
    text-decoration-color: var(--accent-color);
}

/* Event Details Display */
.event-details {
    background: rgba(232, 236, 240, 0.2);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.event-details .dark-link {
    color: var(--text-on-light);
    font-size: 1rem;
    line-height: 1.6;
}

.event-details .dark-link a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ============================================
   Navigation Tabs
   ============================================ */
.nav-tabs {
    border-bottom: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    color: var(--muted-text);
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs .nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(91, 124, 153, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: white;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.nav-tabs .nav-link.active i {
    opacity: 1;
}

/* ============================================
   Card Components
   ============================================ */
.card {
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
}

.card-body {
    padding: 2rem;
}

/* ============================================
   Alerts & Notifications
   ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background: var(--alert-info-bg);
    border-left: 4px solid var(--info-color);
    color: var(--text-on-light);
}

.alert-success {
    background: var(--alert-success-bg);
    border-left: 4px solid var(--success-color);
    color: var(--text-on-light);
}

.alert-warning {
    background: var(--alert-warning-bg);
    border-left: 4px solid var(--warning-color);
    color: var(--text-on-light);
}

.alert-info {
    background: var(--alert-info-bg);
    border-left: 4px solid var(--info-color);
    color: var(--text-on-light);
}

.alert-danger {
    background: var(--alert-danger-bg);
    border-left: 4px solid var(--danger-color);
    color: #FFFFFF !important;
}

/* Ensure all text elements in dark alerts are white */
.alert-danger,
.alert-danger * {
    color: #FFFFFF !important;
}

a.alert-success {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #155724;
}

a.alert-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #c3e6cb;
    color: #155724;
}

/* Arrow animation on hover */
a.alert-success:hover .fa-arrow-right {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* RSVP response message */
.rsvp-response-message {
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 10;
}

/* Consistent alert styling in RSVP section */
.rsvp-response-message .alert {
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
}

.rsvp-response-message .alert-success {
    background: linear-gradient(135deg,
        rgba(74, 124, 89, 0.1),
        rgba(74, 124, 89, 0.15)
    );
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.rsvp-response-message .alert-info {
    background: linear-gradient(135deg,
        rgba(108, 155, 209, 0.1),
        rgba(108, 155, 209, 0.15)
    );
    border-left: 4px solid var(--info-color);
    color: var(--primary-color);
}

.rsvp-response-message .alert-warning {
    background: linear-gradient(135deg,
        rgba(244, 162, 97, 0.1),
        rgba(244, 162, 97, 0.15)
    );
    border-left: 4px solid var(--warning-color);
    color: var(--dark-color);
}

.alert-info h5,
.alert-info p {
    color: var(--text-on-light) !important;
}

/* ============================================
   Google Button Styles
   ============================================ */
.google-signin {
    margin: 2rem 0;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 12px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.05);
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

.btn-google:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(91, 124, 153, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    border-color: #5B7C99;
    transform: translateY(-1px);
}

.btn-google:hover:before {
    width: 300px;
    height: 300px;
}

.btn-google:active {
    background: #e8eaed;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    transform: translateY(0);
}

.btn-google-icon {
    width: 20px;
    height: 20px;
    margin-right: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.btn-google-custom {
    background: linear-gradient(135deg, #5B7C99 0%, #4A6480 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(91, 124, 153, 0.2), 0 4px 8px rgba(91, 124, 153, 0.1);
}

.btn-google-custom:hover {
    background: linear-gradient(135deg, #6B8CAA 0%, #5A7490 100%);
    box-shadow: 0 4px 8px rgba(91, 124, 153, 0.3), 0 8px 16px rgba(91, 124, 153, 0.15);
    transform: translateY(-2px);
    color: #dcdcdc;
}

.btn-google-custom .btn-google-icon {
    filter: brightness(0) invert(1);
}

/* Divider with modern styling */
.divider-text {
    position: relative;
    text-align: center;
    margin: 2.5rem 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
}

.divider-text:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dadce0, transparent);
}

.divider-text span {
    background: white;
    padding: 0 1.5rem;
    position: relative;
    font-weight: 500;
}

