/* Extracted from Components/Web/Pages/UpcomingEvent.razor; loaded only by that component. */
:root {
    --color-primary: #c0392b;
    --color-primary-dark: #a93226;
    --color-primary-light: #fef0ee;
    --color-secondary: #f39c12;
    --color-accent: #2980b9;
    --color-bg: #fdf8f4;
    --color-white: #ffffff;
    --color-text: #1e1e2a;
    --color-text-muted: #5a5a6e;
    --color-border: #ede6df;
    --radius: 14px;
    --radius-lg: 24px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* ── Page Banner / Hero ── */
.page-banner {
    background: linear-gradient(135deg, #1e1e2a 0%, #2a2a3c 100%);
    padding: 65px 0 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(243, 156, 18, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(192, 57, 43, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner .badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #f39c12 !important;
    background: rgba(243, 156, 18, 0.15);
    padding: 6px 22px;
    border-radius: 50px;
    margin-bottom: 14px;
    border: 1px solid rgba(243, 156, 18, 0.30);
}

.page-banner h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.page-banner h1 .highlight {
    color: #f39c12 !important;
}

.page-banner p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-banner .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 18px;
}

.page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: var(--transition);
}

.page-banner .breadcrumb a:hover {
    color: #f39c12 !important;
}

.page-banner .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* ── Events Grid Container ── */
.events-section {
    padding: 50px 0 80px;
    background: var(--color-white);
}

.events-header {
    text-align: center;
    margin-bottom: 48px;
}

.events-header .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 14px;
    border: 1px solid rgba(192, 57, 43, 0.12);
}

.events-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.events-header h2 .highlight {
    color: var(--color-primary);
    position: relative;
}

.events-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    font-weight: 500;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* ── Modern Event Card ── */
.event-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #ede5dc;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -10px rgba(192, 57, 43, 0.14), 0 0 0 1px rgba(192, 57, 43, 0.20);
    border-color: rgba(192, 57, 43, 0.3);
}

/* Card Top Status Bar */
.event-card .card-header {
    padding: 16px 22px;
    background: #faf6f1;
    border-bottom: 1px solid #f0e6dc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.event-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(192, 57, 43, 0.09);
    color: var(--color-primary);
    border: 1px solid rgba(192, 57, 43, 0.15);
}

.event-tag.urgent {
    background: rgba(243, 156, 18, 0.15);
    color: #d97706;
    border-color: rgba(243, 156, 18, 0.3);
}

.event-tag.soon {
    background: rgba(41, 128, 185, 0.12);
    color: var(--color-accent);
    border-color: rgba(41, 128, 185, 0.25);
}

.event-header-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b6b7e;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card Body */
.event-card .card-body {
    padding: 24px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-hero-meta {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.event-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fef2f0 0%, #fdf6ec 100%);
    border: 1px solid #f9ded7;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.08);
}

.event-hero-text {
    flex: 1;
    min-width: 0;
}

.event-hero-text h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 4px;
    line-height: 1.25;
}

.event-hero-text h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-hero-text h3 a:hover {
    color: var(--color-primary);
}

.event-subtitle {
    font-size: 0.88rem;
    color: #b94a38;
    font-weight: 700;
    margin-bottom: 0;
}

/* Event Meta Details Grid */
.event-details-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 16px;
    background: #fdfaf7;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #f2e9df;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #4a4a5c;
    line-height: 1.4;
}

.detail-item i {
    color: var(--color-primary);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-item span {
    font-weight: 600;
}

.detail-item strong {
    color: #1e1e2a;
    font-weight: 800;
}

/* Event Description */
.event-desc {
    color: #555568;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 12px 0 16px;
    flex: 1;
}

.event-desc strong {
    color: #1e1e2a;
}

/* ── High-Tech Modern Countdown Timer ── */
.countdown-wrapper {
    background: linear-gradient(145deg, #fffcf9 0%, #fdf6ee 100%);
    border: 1.5px solid #f2e2d0;
    border-radius: 18px;
    padding: 16px 18px;
    margin: 16px 0 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #8c5a2b;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e67e22;
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    animation: pulseAnimation 1.6s infinite;
}

@keyframes pulseAnimation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(230, 126, 34, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

.countdown-timer {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 6px;
}

.time-unit {
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 6px;
    border: 1px solid #ebd9c8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.time-unit .number {
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
    color: #c0392b;
    line-height: 1.1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.time-unit .label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #8a7a6c;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.time-separator {
    font-size: 1.3rem;
    font-weight: 900;
    color: #c5a88c;
    text-align: center;
}

/* Today Badge */
.today-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #c0392b, #e67e22);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    border-radius: 14px;
    margin: 16px 0 6px;
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35); }
    50% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(192, 57, 43, 0.55); }
}

/* ── Card Footer & Action Buttons ── */
.event-card .card-footer {
    padding: 16px 24px 22px;
    border-top: 1px solid #f0e6dc;
    background: #faf6f1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.primary-action-wrap {
    width: 100%;
}

.btn-register-main {
    width: 100%;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.28);
}

.btn-register-main:hover {
    background: linear-gradient(135deg, #a93226 0%, #922b21 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(192, 57, 43, 0.38);
    color: #fff;
}

.btn-registered-badge {
    width: 100%;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    background: #27ae60;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.25);
}

.secondary-actions-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action-outline {
    flex: 1;
    min-width: 100px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1.5px solid #d9cdbf;
    background: #ffffff;
    color: #4a4a5a;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fef8f7;
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
    .events-header h2 {
        font-size: 2.2rem;
    }
    .page-banner h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 520px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .event-card .card-body {
        padding: 18px 18px 16px;
    }
    .event-card .card-footer {
        padding: 14px 18px 18px;
    }
    .time-unit .number {
        font-size: 1.2rem;
    }
    .page-banner h1 {
        font-size: 1.8rem;
    }
}
