/**
 * Joyn Event Manager - Public Styles
 * 청년 감성의 현대적인 이벤트 페이지 디자인 (Remix Icon)
 * 
 * @package JoynEvent
 * @since 1.0.0
 */

/* ================================
   CSS 변수 정의
   ================================ */
:root {
    /* 메인 컬러 팔레트 - 밝고 활기찬 */
    --event-primary: #6366f1;
    --event-primary-light: #818cf8;
    --event-primary-dark: #4f46e5;
    --event-secondary: #ec4899;
    --event-accent: #06b6d4;
    --event-success: #10b981;
    --event-warning: #f59e0b;
    --event-coral: #ff6b6b;
    --event-mint: #38d9a9;
    --event-lavender: #b197fc;
    
    /* 그라데이션 컬렉션 */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-aurora: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-tropical: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #feca57 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    --gradient-dark-glass: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(30,41,59,0.85) 100%);
    
    /* 배경 */
    --bg-main: #fafbff;
    --bg-card: #ffffff;
    --bg-soft: #f8fafc;
    
    /* 텍스트 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* 보더 & 쉐도우 */
    --border-light: rgba(226, 232, 240, 0.8);
    --border-glass: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.2);
    --shadow-color: 0 20px 40px rgba(102, 126, 234, 0.3);
    
    /* 반경 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* 트랜지션 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ================================
   Remix Icon 스핀 애니메이션
   ================================ */
.ri-spin {
    animation: ri-spin 1s linear infinite;
}

@keyframes ri-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================
   기본 컨테이너
   ================================ */
.joyn-event-container {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
    color: var(--text-primary);
}

/* ================================
   이벤트 상세 정보 - 히어로 카드
   ================================ */
.joyn-event-details {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: 56px 48px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-color);
    position: relative;
    overflow: hidden;
    animation: heroSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 배경 장식 요소 */
.joyn-event-details::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.joyn-event-details::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.joyn-event-details h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 36px 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.joyn-event-details h2 i {
    font-size: 36px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(10deg); }
}

/* 정보 그리드 */
.event-info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    animation: infoItemFade 0.6s ease backwards;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }
.info-item:nth-child(5) { animation-delay: 0.5s; }

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

.info-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    animation: iconFloat 3s ease-in-out infinite;
}

.info-icon i {
    font-size: 28px;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-content strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-content p {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

.info-content a {
    color: var(--text-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
}

.info-content a:hover {
    border-bottom-color: white;
}

/* ================================
   참가 신청 섹션 - 글래스모피즘
   ================================ */
.joyn-event-registration-section {
    background: var(--bg-card);
    padding: 56px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-large), var(--shadow-glow);
    position: relative;
    overflow: hidden;
    animation: formSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

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

/* 배경 장식 */
.joyn-event-registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.joyn-event-registration-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.joyn-event-registration-section h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 40px 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.joyn-event-registration-section h2 i {
    color: var(--event-primary);
    font-size: 32px;
}

.joyn-event-registration-section h2::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: var(--radius-full);
}

/* ================================
   폼 스타일
   ================================ */
.joyn-event-form {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 28px;
    animation: formFieldFade 0.5s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.4s; }
.form-group:nth-child(2) { animation-delay: 0.5s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }
.form-group:nth-child(4) { animation-delay: 0.7s; }
.form-group:nth-child(5) { animation-delay: 0.8s; }

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group label i {
    font-size: 18px;
    color: var(--event-primary);
}

.form-group label .required {
    color: var(--event-coral);
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-soft);
    transition: var(--transition-normal);
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--event-primary-light);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--event-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-medium);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 4px;
}

.form-group small i {
    font-size: 14px;
    color: var(--event-primary-light);
}

/* 이메일 에러 피드백 */
.email-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    color: var(--event-coral) !important;
    font-size: 13px;
    font-weight: 500;
}

.email-feedback i {
    color: var(--event-coral);
}

/* ================================
   제출 버튼 - 그라데이션 & 애니메이션
   ================================ */
.joyn-event-submit-button {
    width: 100%;
    padding: 20px 36px;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.joyn-event-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-slow);
}

.joyn-event-submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.joyn-event-submit-button:hover::before {
    left: 100%;
}

.joyn-event-submit-button:active {
    transform: translateY(-1px);
}

.joyn-event-submit-button:disabled {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
}

.joyn-event-submit-button:disabled:hover {
    transform: none;
}

/* 버튼 내부 요소 */
.button-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-text i {
    font-size: 20px;
}

.button-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-loading i {
    font-size: 20px;
}

/* ================================
   알림 & 메시지
   ================================ */
.joyn-event-notice {
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: noticeSlide 0.4s ease;
}

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

.joyn-event-notice i {
    font-size: 32px;
    flex-shrink: 0;
}

.joyn-event-notice p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.joyn-event-notice-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: #be123c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.joyn-event-notice-error i {
    color: #f87171;
}

.joyn-event-notice-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.joyn-event-notice-success i {
    color: #34d399;
}

/* 폼 메시지 */
.joyn-event-form-message {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    animation: messageSlide 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.joyn-event-form-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.joyn-event-form-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    color: #be123c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.joyn-event-form-message p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.joyn-event-form-message i {
    font-size: 20px;
}

/* ================================
   성공 래퍼 - 축하 애니메이션
   ================================ */
.joyn-event-success-wrapper {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #fce7f3 100%);
    border-radius: var(--radius-xl);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.success-icon {
    margin-bottom: 24px;
    animation: iconBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
}

.success-icon i {
    font-size: 80px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes iconBounce {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.joyn-event-success-wrapper h3 {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.joyn-event-success-wrapper p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* ================================
   이벤트 아카이브 (목록 페이지)
   ================================ */
.joyn-event-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.joyn-event-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
    position: relative;
    animation: cardFadeIn 0.6s ease backwards;
}

.joyn-event-card:nth-child(1) { animation-delay: 0.1s; }
.joyn-event-card:nth-child(2) { animation-delay: 0.2s; }
.joyn-event-card:nth-child(3) { animation-delay: 0.3s; }
.joyn-event-card:nth-child(4) { animation-delay: 0.4s; }
.joyn-event-card:nth-child(5) { animation-delay: 0.5s; }
.joyn-event-card:nth-child(6) { animation-delay: 0.6s; }

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

.joyn-event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-large), 0 0 60px rgba(99, 102, 241, 0.15);
}

.joyn-event-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.joyn-event-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.joyn-event-card:hover .joyn-event-card-image {
    transform: scale(1.08);
}

/* 카드 배지 */
.joyn-event-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: var(--gradient-hero);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.joyn-event-card-badge i {
    font-size: 14px;
}

.joyn-event-card-content {
    padding: 28px;
}

.joyn-event-card-title {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.joyn-event-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.joyn-event-card-title a:hover {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.joyn-event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

.joyn-event-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.joyn-event-card-meta span i {
    font-size: 16px;
    color: var(--event-primary-light);
}

.joyn-event-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

.joyn-event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-hero);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.joyn-event-card-link i {
    font-size: 16px;
    transition: var(--transition-fast);
}

.joyn-event-card-link:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.joyn-event-card-link:hover i {
    transform: translateX(4px);
}

/* ================================
   문자 수 카운터
   ================================ */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
    transition: var(--transition-fast);
}

/* ================================
   포커스 상태 라벨 효과
   ================================ */
.form-group.focused label {
    color: var(--event-primary);
}

.form-group.focused label i {
    color: var(--event-primary-dark);
}

/* ================================
   반응형 디자인
   ================================ */
@media screen and (max-width: 768px) {
    .joyn-event-container {
        margin: 32px auto;
        padding: 0 16px;
    }
    
    .joyn-event-details {
        padding: 40px 28px;
        border-radius: var(--radius-lg);
    }
    
    .joyn-event-details h2 {
        font-size: 26px;
    }
    
    .joyn-event-details h2 i {
        font-size: 28px;
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-item {
        padding: 20px;
    }
    
    .joyn-event-registration-section {
        padding: 40px 28px;
        border-radius: var(--radius-lg);
    }
    
    .joyn-event-registration-section h2 {
        font-size: 26px;
    }
    
    .joyn-event-submit-button {
        padding: 18px 32px;
        font-size: 16px;
    }
    
    .joyn-event-archive {
        grid-template-columns: 1fr;
        padding: 32px 16px;
        gap: 24px;
    }
    
    .joyn-event-success-wrapper {
        padding: 60px 28px;
    }
    
    .joyn-event-success-wrapper h3 {
        font-size: 26px;
    }
    
    .success-icon i {
        font-size: 60px;
    }
}

@media screen and (max-width: 480px) {
    .joyn-event-details {
        padding: 32px 20px;
    }
    
    .joyn-event-details h2 {
        font-size: 22px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .info-icon {
        width: 48px;
        height: 48px;
    }
    
    .info-icon i {
        font-size: 24px;
    }
    
    .info-content strong {
        font-size: 11px;
    }
    
    .info-content p {
        font-size: 15px;
    }
    
    .joyn-event-registration-section {
        padding: 32px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* ================================
   다크모드 지원 (선택적)
   ================================ */
@media (prefers-color-scheme: dark) {
    /* 다크모드 스타일은 필요시 활성화 */
}

/* ================================
   접근성
   ================================ */
.joyn-event-form input:focus,
.joyn-event-form textarea:focus,
.joyn-event-submit-button:focus {
    outline: 3px solid var(--event-primary);
    outline-offset: 2px;
}

/* 감소된 모션 선호 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   프린트 스타일
   ================================ */
@media print {
    .joyn-event-registration-section {
        display: none;
    }
    
    .joyn-event-details {
        background: #f0f0f0 !important;
        color: #000 !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .info-item {
        background: #f8f8f8 !important;
        border: 1px solid #ddd !important;
    }
}

/* ================================
   이벤트 아카이브 페이지 스타일
   ================================ */
.joyn-event-archive-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 20px;
}

.joyn-event-archive-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 아카이브 헤더 */
.joyn-event-archive-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.joyn-event-archive-header .archive-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.joyn-event-archive-header .archive-title i {
    color: var(--event-primary);
    font-size: 2.5rem;
}

.joyn-event-archive-header .archive-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 이벤트 그리드 */
.joyn-event-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 이벤트 카드 */
.joyn-event-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.joyn-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.event-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 카드 헤더 */
.event-card-header {
    background: var(--card-gradient);
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.event-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.event-card-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-card-time {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 카드 본문 */
.event-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.event-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.event-meta-item i {
    color: var(--event-primary);
    font-size: 1.125rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.event-meta-item span {
    flex: 1;
}

/* 카드 푸터 */
.event-card-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-soft);
}

.event-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--event-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.joyn-event-card:hover .event-card-action {
    gap: 12px;
    color: var(--event-primary-dark);
}

.event-card-action i {
    transition: transform 0.3s ease;
}

.joyn-event-card:hover .event-card-action i {
    transform: translateX(4px);
}

/* 빈 상태 */
.joyn-event-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-secondary);
}

.joyn-event-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.joyn-event-empty p {
    font-size: 1.25rem;
    margin: 0;
}

/* 페이지네이션 */
.joyn-event-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.joyn-event-pagination .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.joyn-event-pagination .page-numbers li {
    margin: 0;
}

.joyn-event-pagination .page-numbers a,
.joyn-event-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    min-width: 44px;
    font-weight: 500;
}

.joyn-event-pagination .page-numbers a:hover {
    background: var(--event-primary);
    color: white;
    border-color: var(--event-primary);
    transform: translateY(-2px);
}

.joyn-event-pagination .page-numbers .current {
    background: var(--event-primary);
    color: white;
    border-color: var(--event-primary);
}

.joyn-event-pagination .page-numbers .prev,
.joyn-event-pagination .page-numbers .next {
    gap: 6px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .joyn-event-archive-wrapper {
        padding: 40px 16px;
    }
    
    .joyn-event-archive-header {
        margin-bottom: 40px;
        padding: 30px 16px;
    }
    
    .joyn-event-archive-header .archive-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 12px;
    }
    
    .joyn-event-archive-header .archive-title i {
        font-size: 2rem;
    }
    
    .joyn-event-archive-header .archive-description {
        font-size: 1.125rem;
    }
    
    .joyn-event-archive-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .event-card-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .event-card-body {
        padding: 20px;
    }
    
    .event-card-title {
        font-size: 1.25rem;
    }
    
    .joyn-event-pagination {
        margin-top: 40px;
    }
    
    .joyn-event-pagination .page-numbers {
        gap: 6px;
    }
    
    .joyn-event-pagination .page-numbers a,
    .joyn-event-pagination .page-numbers span {
        padding: 8px 12px;
        font-size: 0.875rem;
        min-width: 36px;
    }
}

@media (max-width: 480px) {
    .joyn-event-archive-header .archive-title {
        font-size: 1.75rem;
    }
    
    .joyn-event-archive-header .archive-description {
        font-size: 1rem;
    }
    
    .event-card-header {
        padding: 16px;
    }
    
    .event-card-body {
        padding: 16px;
    }
    
    .event-card-title {
        font-size: 1.125rem;
    }
    
    .event-meta-item {
        font-size: 0.875rem;
    }
}
