
* {
    box-sizing: border-box; 
}

body { 
    background-color: #f2f4f7; 
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: #0f0518;
    -webkit-font-smoothing: antialiased;
}

.event-page-container {
    margin: 100px auto;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.event-card {
    background: white;
    width: 100%;
    max-width: 1000px; 
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.event-banner {
    height: 300px;
    background: linear-gradient(135deg, #6C63FF 0%, #4834d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    background-size: cover;
    background-position: center;
}

.event-content { 
    padding: 40px; 
}

.event-grid {
    display: grid;

    grid-template-columns: 1fr 360px; 
    gap: 50px;
    align-items: start;
}

.event-header {
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.organizer-label { 
    color: #667; 
    font-size: 0.95rem; 
    font-weight: 500; 
    margin-bottom: 5px;
}

.event-title {
    font-size: 2.5rem;
    color: #0f0518;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    word-wrap: break-word; 
}

.info-item { margin-bottom: 25px; }

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #98a2b3;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-value { 
    font-size: 1.1rem; 
    color: #0f0518; 
    font-weight: 500; 
    line-height: 1.5;
}

.description-text {
    color: #475467;
    line-height: 1.7;
    white-space: pre-line;
    font-size: 1rem;
}

.sidebar {
    position: relative; 
}

.ticket-box {
    background: #f9fafb;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #eaecf0;
    position: sticky;
    top: 20px; 
    z-index: 10;
}

.ticket-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ticket-card {
    background: white;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column; 
    gap: 10px;
}

.ticket-card.active {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(15, 5, 24, 0.08);
    border-color: #d0d5dd;
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.ticket-name {
    font-weight: 700;
    color: #0f0518;
    font-size: 1rem;
    padding-right: 10px;
    line-height: 1.3;
}

.ticket-price {
    font-weight: 700;
    color: #4834d4;
    font-size: 1rem;
    white-space: nowrap; 
}

.ticket-bottom {
    display: flex;
    justify-content: flex-end; 
    width: 100%;
}

.ticket-qty-select {
    width: 80px;
    padding: 8px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background-color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #101828;
    cursor: pointer;
    text-align: center;
}

.ticket-qty-select:focus { outline: none; border-color: #0f0518; }

.checkout-summary {
    border-top: 1px solid #eaecf0;
    padding-top: 20px;
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #344054;
}

.total-price-display {
    color: #0f0518;
    font-weight: 700;
    font-size: 1.3rem;
}

.checkout-btn {
    background: #0f0518;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
}

.checkout-btn:hover { background: #2b2b2b; }

.checkout-btn:disabled, .checkout-btn.disabled {
    background: #eaecf0;
    color: #98a2b3;
    cursor: not-allowed;
    pointer-events: none;
}


@media (max-width: 950px) {
    .event-card {
        max-width: 600px; 
    }

    .event-grid {
        grid-template-columns: 1fr; 
        gap: 0; 
    }

    .event-banner {
        height: 220px;
        font-size: 2.5rem;
    }

    .sidebar {
        margin-top: 40px;
        order: 2; 
    }

    .ticket-box {
        position: static;
        border: none;
        background: transparent;
        padding: 0;
        border-top: 1px solid #eaecf0;
        padding-top: 30px;
        border-radius: 0;
    }

    .ticket-card {
        border: 1px solid #eaecf0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    }
}

@media (max-width: 500px) {
    .event-page-container {
        padding: 0; 
        padding-top: 60px; 
        background: white; 
    }

    .event-card {
        border-radius: 0;
        box-shadow: none;
    }

    .event-banner {
        height: 180px;
        font-size: 2rem;
    }

    .event-content {
        padding: 25px;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .event-header {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .ticket-card {
        padding: 15px;
    }
    
    .ticket-qty-select {
        padding: 10px; 
        width: 70px;
    }
}


.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    width: 100%;
}

.ticket-info-col {
    display: flex;
    flex-direction: column;
    gap: 4px; 
    padding-right: 10px;
}

.ticket-remaining {
    font-size: 0.8rem;
    color: #667;
    font-weight: 500;
}

.ticket-remaining.low {
    color: #d92d20; 
    font-weight: 600;
}