/* Event Banner Styles */

/* Base banner styles */
.event-banner {
    position: relative;
    /* match the attached HTML height */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Gradient background animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-shift-slow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-shift-fast {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Icon floating animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-fast {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

/* Pulse animation for icons */
@keyframes pulse-gentle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Bounce animation for icons */
@keyframes bounce-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation classes */
.animate-gradient {
    animation: gradient-shift 15s ease infinite;
}

.animate-gradient-slow {
    animation: gradient-shift-slow 25s ease infinite;
}

.animate-gradient-fast {
    animation: gradient-shift-fast 8s ease infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

.animate-pulse-gentle {
    animation: pulse-gentle 4s ease-in-out infinite;
}

.animate-bounce-gentle {
    animation: bounce-gentle 3s ease-in-out infinite;
}

/* Content styling */
.event-banner .banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

/* Date badge */
.event-banner .date-badge {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Title styling */
.event-banner .banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 768px) {
    .event-banner .banner-title {
        font-size: 4.5rem;
    }
}

/* Subtitle styling */
.event-banner .banner-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 768px) {
    .event-banner .banner-subtitle {
        font-size: 1.5rem;
    }
}

/* Button container */
.event-banner .banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .event-banner .banner-buttons {
        flex-direction: row;
    }
}

/* Button styling */
.event-banner .banner-button {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.event-banner .banner-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.event-banner .banner-button-primary {
    border-color: currentColor;
}

.event-banner .banner-button-secondary {
    background-color: transparent;
}

/* Icon grid styling */
.event-banner .icon-grid {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    pointer-events: none;
}

.event-banner .icon-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.event-banner .icon-item {
    text-align: center;
}

.event-banner .icon-item .icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.event-banner .icon-item .icon-circle i {
    font-size: 1.5rem;
    color: white;
}

.event-banner .icon-item .icon-label {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Floating background icons */
.event-banner .floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.event-banner .floating-icon {
    position: absolute;
    opacity: 0.2;
}

.event-banner .floating-icon i {
    font-size: 2.5rem;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .event-banner {
        min-height: 90vh;
    }

    .event-banner .banner-title {
        font-size: 2.5rem;
    }

    .event-banner .banner-subtitle {
        font-size: 1.125rem;
    }

    .event-banner .icon-grid {
        bottom: 1.5rem;
    }

    .event-banner .icon-grid-container {
        gap: 1.5rem;
    }

    .event-banner .icon-item .icon-circle {
        width: 3rem;
        height: 3rem;
    }

    .event-banner .icon-item .icon-circle i {
        font-size: 1.25rem;
    }
}

/* Ensure proper stacking context */
.event-banner .banner-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

/* font loading handled by plugin enqueue; removed duplicate import */

/* ---------- Theme-independent styles for new semantic markup ---------- */
.event-banner {
    /* keep min-height: 400px; background is added here for consistent look */
    background: linear-gradient(90deg, #071029 0%, #121634 50%, #2b1340 100%);
    color: #fff;
}

/* make the banner break out of any constrained theme container and become full viewport width
   technique: set width:100vw and offset with negative margins so it centers properly in the page */
.event-banner {
    width: 100vw;
    /* breakout centered using calc so it works regardless of container width */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
    box-sizing: border-box;
    /* prevent small overflow on some browsers */
    overflow-x: hidden;
}

.event-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    z-index: 5;
}

.event-banner__background { position: absolute; inset: 0; z-index: 3; overflow: hidden; }
.eb-circle { position: absolute; border-radius: 50%; filter: blur(40px); mix-blend-mode: multiply; opacity: 0.18; animation: eb-pulse 6s ease-in-out infinite; }
.eb-circle--1 { width: 256px; height: 256px; left: 6%; top: 3%; background: #3b82f6; }
.eb-circle--2 { width: 288px; height: 288px; left: 22%; bottom: 4%; background: #8b5cf6; animation-delay: 2s; }
.eb-circle--3 { width: 320px; height: 320px; left: 33%; top: 12%; background: #6366f1; animation-delay: 4s; }
@keyframes eb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.event-banner__inner { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; }

.event-banner__icons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-right: 32px; flex: 1 1 0; }
.event-banner__icon-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s ease, opacity .2s ease; }
.event-banner__icon-item:hover { transform: translateY(-6px) scale(1.03); }
.event-banner__icon-circle { width: 80px; height: 80px; border-radius: 12px; background-color: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.06); }
.event-banner__icon-circle i { font-size: 28px; }
.event-banner__icon-label { color: #e6eefc; font-size: 0.9rem; font-weight: 600; opacity: 0.95; }

.event-banner__content { width: 500px; text-align: right; }
.event-banner__date-badge { display: inline-block; padding: 0.4rem 1.2rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #c7def8; }
.event-banner__content h1 { font-size: 48px; font-weight: 900; margin-bottom: 8px; line-height: 1.02; text-align: right; }
.event-banner__title-accent { 
    background-clip: text; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    display: inline-block; 
}
.event-banner__subtitle { margin-bottom: 1.5rem; max-width: 36rem; text-align: right; line-height: 1.55; opacity: 0.9; }
.event-banner__buttons { display:flex; flex-direction:row; gap:12px; justify-content:flex-end; align-items:center; }
.event-banner__btn { display:inline-block; padding: 12px 28px; border-radius: 10px; font-weight:600; text-decoration:none; transition: transform .18s ease, box-shadow .18s ease; }
.event-banner__btn--primary { background: #ffffff; color: #111827; box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.event-banner__btn--secondary { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.12); }

@media (max-width: 900px) {
    .event-banner { min-height: 520px; }
    .event-banner__inner { flex-direction: column; gap: 18px; justify-content:center; align-items:center; }
    .event-banner__content { width: 100%; text-align: center; }
    .event-banner__icons-grid { grid-template-columns: repeat(3, 1fr); padding-right: 0; }
    .event-banner__icon-circle { width: 56px; height: 56px; border-radius: 10px; }
    .event-banner__icon-circle i { font-size: 18px; }
    .event-banner__content h1 { font-size: 34px; }
}

/* ---------- Photo Layout Styles ---------- */
.event-banner--layout-photo .event-banner__photo-wrapper {
    flex: 1 1 0;
    padding-right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-banner__photo {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-banner__photo:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Photo layout responsive */
@media (max-width: 900px) {
    .event-banner--layout-photo .event-banner__photo-wrapper {
        padding-right: 0;
        margin-bottom: 24px;
    }
    
    .event-banner__photo {
        max-height: 280px;
        border-radius: 12px;
    }
}
