/**
 * Kaisergarten - Events Section UNIQUE Split-Screen Design
 * Unconventional layout - Breaking AI design patterns
 */

/* Main Container - Mobile First */
.events-showcase-unique {
    position: relative;
    width: 100%;
    min-height: auto; /* Mobile: auto height */
    background: #ffffff;
    overflow: hidden;
}

/* Desktop: minimum height */
@media (min-width: 1024px) {
    .events-showcase-unique {
        min-height: 650px;
    }
}

.events-split-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: single column */
    min-height: inherit;
    position: relative;
}

/* Desktop: two columns */
@media (min-width: 1024px) {
    .events-split-container {
        grid-template-columns: 45% 55%;
    }
}

/* LEFT SIDE - Visual Immersion with Stacked Images */
.events-visual-side {
    position: relative;
    background: transparent;
    padding: 2rem 1rem; /* Mobile first: compact padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

/* Desktop: more padding */
@media (min-width: 1024px) {
    .events-visual-side {
        padding: 3rem 2rem 3rem 4rem;
    }
}

/* Stacked Image Gallery Effect */
.events-image-stack {
    position: relative;
    width: 100%;
    height: 420px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stack-image {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.stack-image:hover img {
    transform: scale(1.05);
}

/* Main Image - Front and Center */
.main-image {
    width: 85%;
    height: 320px;
    top: 0;
    left: 0;
    z-index: 3;
    border: 4px solid white;
}

.main-image:hover {
    transform: translateY(-10px) translateX(10px) scale(1.02);
    z-index: 10;
}

/* Secondary Image - Peek Behind */
.secondary-image {
    width: 70%;
    height: 260px;
    top: 40px;
    right: -30px;
    z-index: 2;
    border: 3px solid white;
    opacity: 0.95;
}

.secondary-image:hover {
    transform: translateY(-8px) translateX(-10px) rotate(-2deg);
    z-index: 10;
    opacity: 1;
}

/* Accent Image - Bottom Layer */
.accent-image {
    width: 60%;
    height: 200px;
    bottom: -20px;
    left: 50px;
    z-index: 1;
    border: 3px solid white;
    opacity: 0.9;
}

.accent-image:hover {
    transform: translateY(-10px) rotate(2deg);
    z-index: 10;
    opacity: 1;
}

/* Floating Capacity Badge */
.capacity-floating-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #c41e3a, #8a1529);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.4);
    border: 4px solid white;
    z-index: 5;
    animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.capacity-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.capacity-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Quick Facts Bar */
.venue-quick-facts {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-fact:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(250, 183, 0, 0.2);
}

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

.quick-fact span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* RIGHT SIDE - Bold Content */
.events-content-side {
    position: relative;
    background: white;
    padding: 2rem 1rem; /* Mobile first: reduced from 4rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Desktop: larger padding */
@media (min-width: 1024px) {
    .events-content-side {
        padding: 4rem 4rem 4rem 3rem;
    }
}

/* Tag Line */
.events-tag-line {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* Bold Title - Unconventional Typography */
.events-bold-title {
    margin-bottom: 1.5rem;
}

.title-highlight {
    display: block;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    color: #666;
    font-style: italic;
}

/* Description */
.events-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Feature Pills - Horizontal Flow */
.feature-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns by default */
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(250, 183, 0, 0.08));
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.15);
    transform: translateY(-2px);
}

.pill i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Events Section Button Group Overrides */
.events-content-side .btn-group {
    margin-top: 0.5rem;
}

/* Decorative Blob Element */
.events-decor-element {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    opacity: 0.6;
    pointer-events: none;
    animation: blob-float 8s ease-in-out infinite;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* RESPONSIVE - Mobile First Approach */
@media (max-width: 1024px) {
    .events-split-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .events-visual-side {
        padding: 3rem 2rem;
        min-height: 500px;
    }
    
    .events-image-stack {
        height: 380px;
    }
    
    .main-image {
        width: 90%;
        height: 280px;
    }
    
    .secondary-image {
        width: 75%;
        height: 220px;
        right: -20px;
    }
    
    .accent-image {
        width: 65%;
        height: 180px;
        left: 30px;
    }
    
    .events-content-side {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    /* Hide visual side completely on mobile to prevent huge sections */
    .events-visual-side {
        display: none !important;
    }
    
    .events-content-side {
        padding: 2rem 1.25rem;
    }
    
    .events-tag-line {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .title-highlight {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .events-desc {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }
    
    .feature-pills {
        grid-template-columns: repeat(2, 1fr); /* Keep 2x2 grid on mobile */
        gap: 0.6rem;
        margin-bottom: 2rem;
    }
    
    .pill {
        padding: 0.65rem 0.85rem;
        font-size: 0.8rem;
        justify-content: center;
        text-align: center;
    }
    
    .events-decor-element {
        width: 180px;
        height: 180px;
        bottom: -30px;
        right: -30px;
    }
}

@media (max-width: 480px) {
    .events-showcase-unique {
        min-height: auto;
    }
    
    .events-visual-side {
        padding: 1.5rem 1rem;
        min-height: 320px;
    }
    
    .events-image-stack {
        height: 260px;
    }
    
    .main-image {
        height: 180px;
    }
    
    .secondary-image {
        height: 140px;
        top: 45px;
    }
    
    .accent-image {
        height: 110px;
        bottom: -5px;
        left: 15px;
    }
    
    .capacity-floating-badge {
        width: 65px;
        height: 65px;
        top: -8px;
        right: -8px;
        border: 3px solid white;
    }
    
    .capacity-number {
        font-size: 1.6rem;
    }
    
    .capacity-label {
        font-size: 0.7rem;
    }
    
    .venue-quick-facts {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .quick-fact {
        padding: 0.5rem 0.875rem;
    }
    
    .quick-fact i {
        font-size: 1rem;
    }
    
    .quick-fact span {
        font-size: 0.75rem;
    }
    
    .events-content-side {
        padding: 1.75rem 1.25rem;
    }
    
    .events-tag-line {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 1rem;
    }
    
    .title-highlight {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .title-sub {
        font-size: 0.95rem;
    }
    
    .events-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    .feature-pills {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .pill {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .pill i {
        font-size: 0.85rem;
    }
    
    .events-decor-element {
        width: 150px;
        height: 150px;
        bottom: -25px;
        right: -25px;
    }
}

/* JS Enhancement Animations */
.pill.animate-in,
.quick-fact.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: var(--stagger-delay, 0s);
}

.stack-image {
    transform: translate(var(--mouse-x, 0), var(--mouse-y, 0));
    transition: transform 0.15s ease-out;
}

.stack-image.visible {
    animation: stackSlideIn 0.6s ease forwards;
    animation-delay: var(--stagger-delay, 0s);
}

@keyframes stackSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pill i,
.quick-fact i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.capacity-floating-badge.pulse-active {
    animation: pulse-badge 3s ease-in-out infinite, capacityPop 0.6s ease-out;
}

@keyframes capacityPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .stack-image,
    .capacity-floating-badge,
    .tag-icon,
    .events-decor-element {
        animation: none;
    }
}
