/* ==========================================================================
   events.css - 이벤트 목록 페이지 스타일
   LoveSwitch
   ========================================================================== */

/* ==========================================
   HERO SECTION
========================================== */
.events-hero {
    padding: var(--space-32) 0 var(--space-16);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.events-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.events-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
}

.events-hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   FILTER SECTION
========================================== */
.events-filter-section {
    padding: var(--space-8) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.events-filter {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 70px;
}

.filter-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--pink-glow-soft);
    border-color: var(--border-pink);
    color: var(--pink-400);
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
}

/* ==========================================
   EVENTS LIST SECTION
========================================== */
.events-list-section {
    padding: var(--space-12) 0 var(--space-24);
}

.events-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.events-count {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.events-count strong {
    color: var(--pink-400);
    font-weight: 600;
}

.events-sort .form-select {
    padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
    font-size: 0.875rem;
    background-color: var(--bg-glass);
    min-width: 120px;
}

/* ==========================================
   EVENTS GRID
========================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   EVENT CARD
========================================== */
.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-base);
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-card.hidden {
    display: none;
}

.event-card-image {
    position: relative;
    height: 180px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 100%
    );
}

.event-image-placeholder i {
    width: 48px;
    height: 48px;
    color: var(--text-dim);
    opacity: 0.5;
}

.event-card-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.event-card-content {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.event-date i,
.event-location i {
    width: 14px;
    height: 14px;
}

.event-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.event-card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.event-card-info {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.event-age,
.event-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.event-age i,
.event-time i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-4);
    margin-top: auto;
}

.event-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-original {
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pink-400);
}

.event-participants {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
}

.participants-bar {
    width: 80px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.participants-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink-500), var(--pink-400));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.participants-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================
   EMPTY STATE
========================================== */
.events-empty {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.events-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-empty-icon i {
    width: 40px;
    height: 40px;
    color: var(--text-dim);
}

.events-empty h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.events-empty p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* ==========================================
   NEWSLETTER SECTION
========================================== */
.newsletter-section {
    padding: var(--space-16) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-10);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }
}

.newsletter-text h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.newsletter-text p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
}

.newsletter-form .form-input {
    width: 280px;
}

@media (max-width: 768px) {
    .newsletter-form .form-input {
        width: 100%;
    }
}