/* ===================================
   Event Page Styles - Enhanced Layout
   =================================== */

:root {
    --event-primary: #ff6b9d;
    --event-success: #51cf66;
    --event-warning: #ffd43b;
    --event-info: #339af0;
    --event-purple: #9775fa;
    --event-pink: #ff8cc3;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    --gradient-warning: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    padding: 2rem 0 1.5rem; /* 기존 4rem 0 3rem에서 축소 */
    position: relative;
    overflow: hidden;
    min-height: 200px; /* 최소 높이 제한 */
    max-height: 250px;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    top: -50%;
    left: -50%;
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.page-title {
    font-size: 2.5rem; /* 기존 3rem에서 2.5rem으로 축소 */
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem; /* 기존 1rem에서 0.5rem으로 축소 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-description {
    font-size: 1.1rem; /* 기존 1.25rem에서 1.1rem으로 축소 */
    color: rgba(255,255,255,0.95);
    margin: 0;
}

/* Featured Event Section */
.featured-event {
    margin-bottom: 4rem;
}

.featured-event-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.featured-event-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.event-badge {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge-hot, .badge-new {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.featured-subtitle {
    font-size: 1.5rem;
    color: #ff6b9d;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.featured-description {
    font-size: 1.125rem;
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2d3436;
}

.highlight-item i {
    font-size: 1.25rem;
    color: #ff6b9d;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.featured-image {
    position: relative;
}

.featured-image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.deco-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255,107,157,0.3) 0%, rgba(254,202,87,0.3) 100%);
    top: -40px;
    right: 20px;
    animation-delay: 0s;
}

.deco-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102,126,234,0.3) 0%, rgba(118,75,162,0.3) 100%);
    bottom: -30px;
    left: 30px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Events Grid Layout */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Top Row - 2 Cards */
.event-row-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Middle Row - Full Width Card */
.event-row-middle {
    width: 100%;
}

/* Bottom Row - 3 Cards */
.event-row-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Event Card Base Styles */
.event-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.event-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.event-card-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.event-card-warning {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    color: #2d3436;
}

.event-card-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.event-card-purple {
    background: linear-gradient(135deg, #9775fa 0%, #748ffc 100%);
    color: white;
}

.event-card-pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8cc3 100%);
    color: white;
}

/* Wide Card Specific */
.event-card-wide {
    padding: 2rem 3rem;
}

/* Small Card Specific */
.event-card-small {
    padding: 2rem;
}

.event-card-small .event-title {
    font-size: 1.25rem;
}

/* Event Card Content */
.event-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.event-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.event-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.event-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.event-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.event-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.event-benefits li i {
    font-size: 1rem;
    opacity: 0.9;
}

.event-benefits-compact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.event-benefits-compact li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-benefits-compact li::before {
    content: '✓';
    margin-right: 0.5rem;
}

.btn-event-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.25);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-event-action:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.5);
    transform: translateX(5px);
    color: white;
}

.event-card-warning .btn-event-action {
    color: #2d3436;
    border-color: rgba(45,52,54,0.3);
}

.event-card-warning .btn-event-action:hover {
    background: rgba(45,52,54,0.1);
    border-color: rgba(45,52,54,0.5);
    color: #2d3436;
}

.btn-event-action-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.25);
    color: white;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-event-action-small:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    color: white;
}

/* Event Decoration */
.event-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.deco-shape {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

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

/* Prize List */
.prize-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
}

.prize-rank {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.prize-name {
    font-weight: 600;
    color: #2d3436;
}

/* Special Elements */
.discount-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.discount-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.discount-text {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
}

.invite-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.invite-reward i {
    font-size: 1.25rem;
}

.invite-reward span {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .event-row-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-title {
        font-size: 2rem;
    }
    
    .featured-subtitle {
        font-size: 1.25rem;
    }
    
    .event-row-top {
        grid-template-columns: 1fr;
    }
    
    .event-row-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .featured-event-card {
        padding: 2rem;
    }
    
    .featured-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .featured-actions .btn {
        width: 100%;
    }
    
    .event-card {
        padding: 1.5rem;
    }
    
    .event-card-wide {
        padding: 1.5rem;
    }
    
    .prize-list {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-subtitle {
        font-size: 1.125rem;
    }
    
    .event-title {
        font-size: 1.25rem;
    }
}