/**
 * 이벤트 상세 페이지 스타일 - v2.0
 * 토스 스타일 + 고전환율 랜딩 페이지 디자인
 * YourIT - Event Detail Page
 */

/* ============================================
   1. 히어로 섹션 - 임팩트 있는 첫인상
   ============================================ */
.event-detail-hero {
    padding: 140px 0 100px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* 배경 패턴 오버레이 */
.event-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* 플로팅 장식 요소 */
.event-detail-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: floatGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateY(-50%) scale(1.1); opacity: 0.8; }
}

.event-detail-hero .container {
    position: relative;
    z-index: 2;
}

/* 뒤로가기 링크 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateX(-4px);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* 헤더 영역 */
.event-detail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* 상태 배지 - 더 눈에 띄게 */
.event-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.event-status-badge.ongoing {
    background: rgba(255, 255, 255, 0.95);
    color: #00D4AA;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.event-status-badge.ongoing::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00D4AA;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.event-status-badge.upcoming {
    background: rgba(255, 193, 7, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 193, 7, 0.5);
}

.event-status-badge.ended {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    animation: none;
}

/* 아이콘 - 3D 효과 */
.event-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 40px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.event-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

/* 제목 - 큰 임팩트 */
.event-detail-header h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.25;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    color: #fff;
}

/* 짧은 설명 (히어로 내) */
.event-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 기간 표시 - 가독성 개선 */
.event-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.event-period i {
    font-size: 16px;
}

/* ============================================
   2. 할인/혜택 하이라이트 배너
   ============================================ */
.discount-highlight {
    background: linear-gradient(135deg, #191f28 0%, #2d3748 100%);
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.discount-highlight .container {
    display: flex;
    align-items: stretch;
}

.discount-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.discount-card:last-child {
    border-right: none;
}

.discount-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.discount-info {
    text-align: left;
}

.discount-label {
    font-size: 13px;
    color: #8b95a1;
    margin-bottom: 4px;
    font-weight: 500;
}

.discount-value {
    font-size: 28px;
    font-weight: 800;
    color: #00D4AA;
    line-height: 1.2;
}

.discount-value small {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-left: 4px;
}

/* ============================================
   3. 콘텐츠 섹션 - 넉넉한 여백
   ============================================ */
.event-detail-content {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f8fafb 0%, #fff 100%);
}

.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

/* ============================================
   4. 메인 콘텐츠 영역
   ============================================ */
.event-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 섹션 카드 - 토스 스타일 */
.event-section {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.event-section:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.event-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: #191f28;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.event-section h2 i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(0, 180, 216, 0.15) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D4AA;
    font-size: 16px;
}

/* 이벤트 이미지 */
.event-image-section {
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
}

.event-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.event-image-section:hover .event-main-image {
    transform: scale(1.02);
}

/* 설명 텍스트 */
.event-description {
    font-size: 20px;
    color: #191f28;
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 500;
}

.event-content-detail {
    font-size: 16px;
    color: #6b7684;
    line-height: 1.9;
    padding: 24px;
    background: #f8fafb;
    border-radius: 16px;
    margin-top: 16px;
}

/* ============================================
   5. 혜택 리스트 - 시각적 강조
   ============================================ */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-radius: 16px;
    font-size: 17px;
    font-weight: 500;
    color: #191f28;
    line-height: 1.5;
    border: 1px solid rgba(0, 212, 170, 0.15);
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(0, 180, 216, 0.08) 100%);
    transform: translateX(4px);
}

.benefits-list li i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   6. 유의사항 섹션
   ============================================ */
.terms-section {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.terms-section:hover {
    transform: none;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.terms-section h2 i {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2) 0%, rgba(255, 193, 7, 0.15) 100%);
    color: #f5a623;
}

.terms-section p {
    font-size: 15px;
    color: #6b7684;
    line-height: 2;
}

/* ============================================
   7. 사이드바 - Sticky CTA
   ============================================ */
.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

/* 사이드바 카드 */
.sidebar-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #191f28;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

/* 이벤트 정보 리스트 */
.event-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.event-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f5;
}

.event-info-list li:last-child {
    border-bottom: none;
}

.event-info-list .label {
    font-size: 14px;
    color: #8b95a1;
    font-weight: 500;
}

.event-info-list .value {
    font-size: 15px;
    font-weight: 600;
    color: #191f28;
}

.event-info-list .status-ongoing {
    color: #00D4AA;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-info-list .status-ongoing::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00D4AA;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.event-info-list .status-upcoming {
    color: #f5a623;
}

.event-info-list .status-ended {
    color: #8b95a1;
}

/* ============================================
   8. CTA 버튼 - 전환율 최적화
   ============================================ */
.event-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
    position: relative;
    overflow: hidden;
}

.event-apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.event-apply-btn:hover::before {
    left: 100%;
}

.event-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.45);
}

.event-apply-btn:active {
    transform: translateY(-1px);
}

.apply-notice {
    text-align: center;
    font-size: 13px;
    color: #8b95a1;
    margin-top: 16px;
    line-height: 1.5;
}

/* 신뢰 배지 */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f5;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7684;
    background: #f8fafb;
    padding: 6px 12px;
    border-radius: 100px;
}

.trust-badge i {
    color: #00D4AA;
    font-size: 12px;
}

/* 고객 후기 / 사회적 증거 */
.social-proof {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.social-proof-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.social-proof-stat {
    text-align: center;
}

.social-proof-stat .number {
    font-size: 24px;
    font-weight: 800;
    color: #00D4AA;
    display: block;
}

.social-proof-stat .label {
    font-size: 12px;
    color: #6b7684;
}

.social-proof-text {
    font-size: 13px;
    color: #6b7684;
    margin: 0;
}

.social-proof-text i {
    color: #f5a623;
}

/* ============================================
   9. 긴급성 카드 (진행중 이벤트)
   ============================================ */
.urgency-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid rgba(255, 82, 82, 0.2);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.urgency-card i {
    font-size: 28px;
    color: #ff5252;
    margin-bottom: 12px;
}

.urgency-card p {
    font-size: 14px;
    color: #6b7684;
    margin-bottom: 8px;
}

.urgency-timer {
    font-size: 24px;
    font-weight: 800;
    color: #ff5252;
}

/* ============================================
   10. 종료된 이벤트 안내
   ============================================ */
.event-ended-notice {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8fafb 0%, #f1f3f5 100%);
    border-radius: 16px;
}

.event-ended-notice i {
    font-size: 40px;
    color: #8b95a1;
    margin-bottom: 16px;
    display: block;
}

.event-ended-notice p {
    font-size: 15px;
    color: #6b7684;
    margin-bottom: 20px;
}

.view-other-events {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #191f28;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-other-events:hover {
    background: #2d3748;
    transform: translateY(-2px);
}

/* ============================================
   11. 문의 안내 카드
   ============================================ */
.contact-card {
    background: linear-gradient(135deg, #f8fafb 0%, #fff 100%);
}

.contact-card p {
    font-size: 14px;
    color: #6b7684;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: #191f28;
    border-bottom: 1px solid #f1f3f5;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list li i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 180, 216, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D4AA;
    font-size: 14px;
}

/* ============================================
   12. 하단 CTA 섹션
   ============================================ */
.event-bottom-cta {
    background: linear-gradient(135deg, #191f28 0%, #2d3748 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.event-bottom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
}

.event-bottom-cta .container {
    position: relative;
    z-index: 1;
}

.event-bottom-cta h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.event-bottom-cta p {
    font-size: 18px;
    color: #8b95a1;
    margin-bottom: 32px;
}

.cta-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.45);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   13. 플로팅 CTA 버튼 (모바일)
   ============================================ */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.floating-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
}

/* ============================================
   14. 반응형 디자인
   ============================================ */
@media (max-width: 1024px) {
    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        position: static;
        order: -1;
    }

    .discount-highlight .container {
        flex-direction: column;
    }

    .discount-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px 20px;
    }

    .discount-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .event-detail-hero {
        padding: 120px 0 80px;
    }

    .event-detail-header h1 {
        font-size: 32px;
    }

    .event-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
        border-radius: 20px;
    }

    .event-period {
        font-size: 15px;
        padding: 12px 20px;
    }

    .event-section {
        padding: 28px;
        border-radius: 20px;
    }

    .event-description {
        font-size: 17px;
    }

    .benefits-list li {
        padding: 16px 20px;
        font-size: 15px;
    }

    .sidebar-card {
        padding: 24px;
        border-radius: 20px;
    }

    .event-bottom-cta {
        padding: 60px 0;
    }

    .event-bottom-cta h2 {
        font-size: 26px;
    }

    .cta-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .floating-cta {
        display: block;
    }

    /* 하단 여백 추가 (플로팅 CTA 공간) */
    .event-bottom-cta {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .event-detail-header h1 {
        font-size: 26px;
    }

    .discount-value {
        font-size: 24px;
    }

    .event-section {
        padding: 24px;
    }

    .event-section h2 {
        font-size: 18px;
    }
}

/* ============================================
   15. 애니메이션
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-section {
    animation: fadeInUp 0.6s ease forwards;
}

.event-section:nth-child(1) { animation-delay: 0.1s; }
.event-section:nth-child(2) { animation-delay: 0.2s; }
.event-section:nth-child(3) { animation-delay: 0.3s; }
.event-section:nth-child(4) { animation-delay: 0.4s; }

.sidebar-card {
    animation: fadeInUp 0.6s ease forwards;
}

.sidebar-card:nth-child(1) { animation-delay: 0.2s; }
.sidebar-card:nth-child(2) { animation-delay: 0.3s; }

/* ============================================
   16. 추가 인터랙션 효과
   ============================================ */

/* 버튼 리플 효과 */
.event-apply-btn,
.cta-btn.primary {
    position: relative;
    overflow: hidden;
}

.event-apply-btn::after,
.cta-btn.primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.event-apply-btn:active::after,
.cta-btn.primary:active::after {
    width: 300px;
    height: 300px;
}

/* 혜택 카드 넘버링 효과 */
.benefits-list {
    counter-reset: benefit;
}

.benefits-list li::before {
    counter-increment: benefit;
}

/* 스크롤 기반 페이드인 (JS 없이 CSS만) */
.event-section,
.sidebar-card {
    opacity: 0;
}

/* 할인 하이라이트 애니메이션 */
.discount-value {
    animation: countUp 0.8s ease-out forwards;
}

@keyframes countUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 긴급성 카드 펄스 */
.urgency-card {
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
}

/* 사이드바 카드 글로우 효과 (진행중 이벤트) */
.sidebar-card:first-child {
    position: relative;
}

.sidebar-card:first-child::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.3) 0%, rgba(0, 180, 216, 0.3) 100%);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-card:first-child:hover::before {
    opacity: 1;
}

/* 플로팅 CTA 슬라이드업 */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.floating-cta {
    animation: slideUp 0.5s ease forwards;
}

/* 히어로 텍스트 애니메이션 */
.event-detail-header .event-status-badge {
    animation: fadeInDown 0.6s ease forwards;
}

.event-detail-header .event-icon {
    animation: fadeInDown 0.6s ease 0.1s forwards;
    opacity: 0;
}

.event-detail-header h1 {
    animation: fadeInDown 0.6s ease 0.2s forwards;
    opacity: 0;
}

.event-detail-header .event-hero-desc {
    animation: fadeInDown 0.6s ease 0.3s forwards;
    opacity: 0;
}

.event-detail-header .event-period {
    animation: fadeInDown 0.6s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 호버시 아이콘 회전 */
.benefits-list li:hover i {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* 연락처 아이콘 호버 */
.contact-list li:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 다크모드 대응 (선택적) */
@media (prefers-color-scheme: dark) {
    /* 필요시 다크모드 스타일 추가 */
}
