/**
 * Event Styles for Hunter Fashion Commission
 * Event-specific components and styling
 */

/* Event hero image styling - 2:1 (1560x780) to match image, no extra div space */
.event-hero-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--bg-tertiary);
    position: relative;
}

/* Event detail page header with golden background */
.event-detail-header {
    background-color: var(--metallic-gold);
    color: var(--deep-charcoal);
    padding: 2rem;
    border-radius: var(--bs-border-radius, 0.375rem);
    margin-bottom: 2rem;
    text-align: center;
}

.event-detail-header h1 {
    color: var(--deep-charcoal);
    margin-bottom: 0;
    font-weight: bold;
}

/* Event detail page image - 2:1 (1560x780) so container fits image, no extra space */
.event-detail-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 300px;
    background-color: var(--bg-tertiary);
    border-radius: var(--bs-border-radius, 0.375rem);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.event-hero-overlay h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* New event banner styling - 2:1 (1560x780) to match image */
.current-event-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 300px;
}

.current-event-img-overlay {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--bg-tertiary);
    position: relative;
}

.current-event-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.current-event-content {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    max-width: 80%;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.event-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    color: var(--text-primary);
}

.current-event-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background-color: var(--wyvern-crimson);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 3;
}

.event-time-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background-color: rgba(0,0,0,0.6);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 3;
}

.event-button {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
    background-color: rgba(var(--wyvern-crimson-rgb), 0.9);
    border: none;
    letter-spacing: 0.03em;
}

.event-button:hover {
    background-color: var(--primary-btn);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Modify placeholder to match new design */
.current-event-placeholder {
    background-color: var(--bg-elevated);
    min-height: 300px;
    color: var(--primary-color);
    position: relative;
    padding: 2rem;
}

/* Event Details Page Styles */
#fashion-sets-container.htmx-swapping {
    position: relative;
    min-height: 200px;
    opacity: 0.6;
}

#fashion-sets-container.htmx-swapping::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: rgba(var(--bone-white-rgb), 0.7);
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Event condition display styles */
.event-conditions {
    font-size: 1rem;
}

.operator-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--metallic-gold);
    color: var(--deep-charcoal);
    font-weight: bold;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.condition-item {
    margin-left: 1.5rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.condition-group {
    padding: 0.75rem;
    background-color: var(--bg-elevated);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    margin-bottom: 0.75rem;
}

/* Condition match badges with hover effect - extends condition-match-badge from components.css */
.condition-badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.condition-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Color-coded condition badges */
.condition-badge.set-type {
    background-color: var(--metallic-gold);
    color: var(--deep-charcoal);
}

.condition-badge.piece {
    background-color: var(--primary-btn);
    color: var(--text-primary);
}

.condition-badge.series {
    background-color: var(--metallic-gold);
    color: var(--deep-charcoal);
}

.condition-badge.tags {
    background-color: var(--accent-btn);
    color: var(--deep-charcoal);
}

/* Event Participation Card Styling */
.event-participation-card {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--bg-elevated);
    transition: all 0.2s ease;
    position: relative;
}

.event-participation-card:hover {
    background-color: var(--bg-elevated-hover);
}

.event-participation-card.border-highlight {
    border-left: 3px solid var(--bs-success);
}

.event-participation-card .event-name {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.event-participation-card .event-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.event-participation-card .badge {
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: 0.75rem;
}

.top-placement-highlight {
    background-color: rgba(var(--metallic-gold-rgb), 0.1);
    border-color: rgba(var(--metallic-gold-rgb), 0.4) !important;
}

.top-placement-highlight .text-warning {
    color: var(--deep-charcoal) !important;
}

/* ============================================
   ACCESSIBILITY: Motion Sensitivity Support
   ============================================ */

/* Respect user's motion preferences - disable animations when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
    .event-hero-image,
    .current-event-img-overlay,
    .event-button,
    .event-button:hover,
    .condition-badge,
    .condition-badge:hover,
    .event-participation-card,
    .event-participation-card:hover {
        transition: none;
        transform: none;
        animation: none;
    }
}

/* ============================================
   ACCESSIBILITY: Keyboard Navigation Focus States
   ============================================ */

/* Focus states for event interactive elements */
.event-button:focus-visible {
    outline: 2px solid var(--metallic-gold);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.event-participation-card a:focus-visible {
    outline: 2px solid var(--metallic-gold);
    outline-offset: 2px;
    border-radius: 0.25rem;
}


