/* ========================================
   EVENT-FOCUSED SINGLE PAGE DESIGN
   ======================================== */

/* Event Hero */
.event-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.event-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.event-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.event-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 56, 112, 0.85), rgba(89, 188, 235, 0.75));
}

.event-hero__gradient {
    background: linear-gradient(135deg, #003870, #59bceb);
    width: 100%;
    height: 100%;
}

.event-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Event Badges */
.event-badge-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.event-type-badge--event {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    backdrop-filter: blur(8px);
}

.event-type-badge--announcement {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    backdrop-filter: blur(8px);
}

.event-countdown-badge {
    background: rgba(255, 221, 0, 0.95);
    color: #003870;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    animation: pulse 2s infinite;
}

.event-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Quick Event Info */
.event-hero__quick-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-info-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Simplified Action Buttons */
.event-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 180px;
    justify-content: center;
}

.event-action-btn--primary {
    background: #ffdd00;
    color: #003870;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.event-action-btn--primary:hover {
    background: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #003870;
}

.event-action-btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.event-action-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Event Content Layout */
.event-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.event-content {
    padding: 4rem 0;
    flex-grow: 1;
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.event-main-content {
    min-width: 0; /* Prevent grid overflow */
}

/* Card Styles */
.event-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.event-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003870;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.event-section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #003870, #59bceb);
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .event-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Additional styles to ensure compatibility */
.event-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(89, 188, 235, 0.05);
    border-radius: 1rem;
    border: 2px dashed rgba(89, 188, 235, 0.3);
}

.event-placeholder__icon {
    width: 4rem;
    height: 4rem;
    color: var(--brand-blue, #59bceb);
    margin: 0 auto 1.5rem auto;
}

.event-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy, #003870);
    margin-bottom: 1rem;
}

.event-placeholder p {
    color: var(--text-secondary, #6b7280);
    font-size: 1.125rem;
    line-height: 1.6;
}

.event-description-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary, #003870);
}

.event-description-content p {
    margin-bottom: 1.5rem;
}

.volunteer-card {
    background: linear-gradient(135deg, #9A63A9, #59bceb);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.volunteer-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.volunteer-card__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.volunteer-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.volunteer-card__text {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.volunteer-card__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.volunteer-card__button:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .event-hero {
        min-height: 60vh;
    }
    
    .event-hero__title {
        font-size: 2.5rem;
    }
    
    .event-hero__quick-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-hero__actions {
        flex-direction: column;
    }
    
    .event-action-btn {
        width: 100%;
    }
    
    .event-placeholder {
        padding: 2rem 1.5rem;
    }
    
    .event-placeholder__icon {
        width: 3rem;
        height: 3rem;
    }
}

/* Ensure CTA section compatibility for single event pages */
.cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--brand-navy, #003870), var(--brand-blue, #59bceb));
}

.cta.cta-gradient {
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    color: white;
    padding: 3rem 0;
}

.cta__content {
    text-align: center;
}

.cta__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta__body {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ensure button compatibility */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px;
}

/* Event-specific button overrides */
/* Use .btn-accent for yellow buttons, .btn-outline-white for transparent white buttons */
.event-page .btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-navy);
    border-color: var(--brand-yellow);
}

.event-page .btn-primary:hover,
.event-page .btn-primary:focus {
    background-color: #e6c700;
    border-color: #e6c700;
    color: var(--brand-navy);
}

/* Essential utility classes for event pages */
.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Fix any potential CSS conflicts with other stylesheets */
.event-hero .event-hero__title,
.event-hero .event-hero__quick-info,
.event-hero .event-hero__actions,
.event-hero .event-badge-container {
    position: relative;
    z-index: 10;
}

/* Ensure proper background gradient when no image */
.event-hero__gradient {
    background: linear-gradient(135deg, var(--brand-navy, #003870), var(--brand-blue, #59bceb));
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Event Sidebar Styles */
.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Event Info Card Styles */
.event-info-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.event-info-card__icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--brand-blue, #59bceb);
}

.event-info-card__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy, #003870);
    margin: 0;
}

.event-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event-info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.event-info-item:last-child {
    border-bottom: none;
}

.event-info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.event-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy, #003870);
}

/* Calendar Actions */
.calendar-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.calendar-actions__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-navy, #003870);
    margin-bottom: 1rem;
}

.calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--brand-navy, #003870);
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    border-color: var(--brand-blue, #59bceb);
    background: rgba(89, 188, 235, 0.05);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--brand-navy, #003870);
}

.calendar-btn__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.calendar-btn--google {
    border-color: #4285f4;
}

.calendar-btn--google:hover {
    border-color: #1976d2;
    background: rgba(66, 133, 244, 0.05);
}

.calendar-btn--download {
    border-color: #059669;
}

.calendar-btn--download:hover {
    border-color: #047857;
    background: rgba(5, 150, 105, 0.05);
}

/* RSVP Card Styles */
.rsvp-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rsvp-card__icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--brand-green, #6EBE53);
}

.rsvp-card__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy, #003870);
    margin: 0;
}

.rsvp-card__text {
    font-size: 1rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsvp-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rsvp-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rsvp-input:focus {
    outline: none;
    border-color: var(--brand-blue, #59bceb);
    box-shadow: 0 0 0 3px rgba(89, 188, 235, 0.1);
}

.rsvp-submit-btn {
    background: var(--brand-green, #6EBE53);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsvp-submit-btn:hover {
    background: #5ba142;
    transform: translateY(-1px);
}

/* RSVP Success Card */
.rsvp-success-card {
    background: linear-gradient(135deg, #10b981, #6EBE53);
    color: white;
}

.rsvp-success-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rsvp-success-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.rsvp-success-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Organizer Card Styles */
.organizer-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.organizer-card__icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--brand-purple, #9A63A9);
}

.organizer-card__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy, #003870);
    margin: 0;
}

.organizer-card__text {
    font-size: 1rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.organizer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-purple, #9A63A9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.organizer-btn:hover {
    background: #8a5699;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

/* Additional mobile responsive for sidebar */
@media (max-width: 1024px) {
    .event-sidebar {
        order: 2;
    }
    
    .calendar-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .rsvp-contact {
        flex-direction: column;
    }
}
