/* ===========================================
   EVENTS PAGE STYLES
   Divine Love Energy - Events & Experiences
   =========================================== */

/* PERFORMANCE: Removed @import statements to eliminate render-blocking */
/* Variables and components are now preloaded in HTML head */

/* Page-specific styles only - inherits from style.css */

/* ===== PAGE HERO (EVENTS PAGE) ===== */
.page-hero-content h1 {
    color: var(--cosmic-gold);
    background: linear-gradient(90deg, #d4af37, #e6c46b, #f4e08a, #e6c46b, #d4af37);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.golden-text {
    background: linear-gradient(90deg, #d4af37, #e6c46b, #f4e08a, #e6c46b, #d4af37);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* ===== EVENTS SECTION ===== */
.events-section {
    position: relative;
}

/* ===== EVENTS CONTAINER (DARK COSMIC) ===== */
.events-container {
    width: 100%;
    margin: 0;
    padding: 4rem 2rem;
}

.events-container > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.events-container.dark-cosmic {
    background: rgba(11, 20, 38, 0.95);
    padding: 4rem 2rem !important;
}

.events-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.events-intro h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2rem);
}

.events-intro p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== HORIZONTAL SCROLL CAROUSEL ===== */
.events-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}

.events-carousel::-webkit-scrollbar {
    display: none;
}

/* Single card - center it instead of left-align */
.events-carousel:has(.event-card:only-child) {
    justify-content: center;
}

/* ===== EVENT CARD (Dark Cosmic - matches Package Cards) ===== */
.event-card {
    scroll-snap-align: start;
    background: rgba(11, 20, 38, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    transition: all 0.3s ease;
    text-align: center;
}

.event-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.event-card.fully-booked {
    opacity: 0.6;
}

/* Event Type Badge */
.event-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    margin: 0 auto 1rem;
    width: fit-content;
    font-weight: 600;
    opacity: 0.85;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cosmic-gold, #d4af37) !important;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 0;
}

.event-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    text-align: left;
}

.event-meta li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
}

.event-meta li i {
    width: 16px;
    color: var(--cosmic-gold, #d4af37);
}

.event-meta li span {
    color: var(--text-white, #ffffff) !important;
}

.event-card-footer {
    margin-top: auto;
}

.event-card-footer .cta-button {
    width: 100%;
    background: linear-gradient(135deg, var(--cosmic-gold, #d4af37), #e6c46b);
    color: var(--deep-space, #0b1426);
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.event-card-footer .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.event-card-footer .cta-button.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== REGISTRATION DEADLINE BANNER ===== */
.event-deadline-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cosmic-gold, #d4af37);
    font-weight: 500;
}

.event-deadline-banner i {
    font-size: 1rem;
}

.event-deadline-banner.urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ===== MODAL DESCRIPTION ===== */
.event-modal-description {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
}

.event-detail-item.deadline {
    color: var(--cosmic-gold, #d4af37);
    font-weight: 500;
}

.event-detail-item.deadline.urgent {
    color: #ef4444;
    font-weight: 600;
}

/* Expired deadline styling */
.event-meta li.deadline-expired {
    color: #9ca3af !important;
}

.event-meta li.deadline-expired span {
    color: #9ca3af !important;
}

/* Paused registration styling - creates scarcity/anticipation */
.event-meta li.registration-paused {
    color: #d97706 !important;
}

.event-meta li.registration-paused i {
    color: #f59e0b !important;
}

.event-meta li.registration-paused span {
    color: #d97706 !important;
    font-weight: 500;
}

/* Paused button styling - warm amber to create anticipation */
.cta-button.paused {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.event-card.booking-closed {
    opacity: 0.85;
}

/* ===== EMPTY STATE ===== */
.events-empty-state {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    border-radius: 16px;
}

.events-empty-state i {
    font-size: 3rem;
    color: var(--cosmic-gold, #d4af37);
    margin-bottom: 1.5rem;
}

.events-empty-state h2 {
    color: #111827 !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.events-empty-state p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== PAST EVENTS SECTION ===== */
.past-events-section {
    padding: 5rem 2rem;
    background: transparent;
}

.past-events-section .section-title {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 2rem);
}

.past-events-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.past-event-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.past-event-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.past-event-header {
    margin-bottom: 0.75rem;
}

.past-event-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.85;
    letter-spacing: 0.05em;
    color: white;
}

.past-event-card h3 {
    color: var(--cosmic-gold, #d4af37);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.past-event-meta {
    /* inherits Inter from body */
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.past-event-description {
    /* inherits Inter from body */
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ===== EVENT DETAILS PAGE ===== */
/* Color overrides for dark background + reset global margin so WYSIWYG controls spacing */
.event-long-description h1,
.event-long-description h2,
.event-long-description h3,
.event-long-description h4 {
    color: #d4af37;
    margin: 0;
}

/* ===== FINAL CTA (MATCHES OTHER PAGES) ===== */
.final-cta h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: clamp(1.4rem, 4vw, 3rem);
}

/* ===== MODAL STYLES ===== */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0;
}

.booking-modal-overlay.show {
    display: flex;
}

.booking-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    color: #111827;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    padding: 1.5rem;
}

.event-booking-subtitle {
    /* inherits Inter from body */
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.event-booking-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.event-booking-summary h4 {
    color: #111827;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* inherits Inter from body */
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.35rem;
}

.event-detail-item i {
    width: 16px;
    color: var(--cosmic-purple, #533483);
}

/* Seats Selection */
.seats-selection {
    margin-bottom: 1.5rem;
}

.seats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.seats-selection h4 {
    /* inherits Inter from body */
    color: #111827;
    font-size: 0.95rem;
    margin: 0;
}

.seats-available {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.seats-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seats-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seats-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.seats-btn:hover:not(:disabled) {
    background: var(--cosmic-purple, #533483);
    color: white;
    border-color: var(--cosmic-purple, #533483);
}

.seats-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.seats-display {
    /* inherits Inter from body */
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    min-width: 40px;
    text-align: center;
}

.total-price {
    /* inherits Inter from body */
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cosmic-purple, #533483);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    /* inherits Inter from body */
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    /* inherits Inter from body */
    font-size: 0.95rem;
    color: #111827;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cosmic-purple, #533483);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn {
    /* inherits Inter from body */
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-primary {
    background: var(--cosmic-purple, #533483);
    border: none;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #6b4a9e;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.success-message,
.error-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    /* inherits Inter from body */
    font-size: 0.9rem;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Body when modal is open */
.body-modal-open {
    overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (min-width: 768px) {
    .events-carousel {
        grid-auto-columns: 45%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .events-carousel {
        grid-auto-columns: 32%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .events-container.dark-cosmic {
        padding: 3rem 1.5rem !important;
    }

    /* Single card takes full width on mobile */
    .events-carousel:has(.event-card:only-child) {
        grid-auto-columns: 100%;
    }

    .events-intro h2 {
        font-size: 2rem;
    }

    .past-events-section .section-title {
        font-size: 2rem;
    }

    .past-events-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .events-container.dark-cosmic {
        padding: 2.5rem 1rem !important;
    }

    .events-intro h2 {
        font-size: 1.5rem;
    }

    .event-card {
        padding: 1.25rem;
        min-height: 340px;
    }

    .past-events-section {
        padding: 3rem 1rem;
    }

    .past-events-section .section-title {
        font-size: 1.75rem;
    }
}
