/* Ticket Page Specific Styles */

/* Remove top margin since no fixed header */
.ticket-main-container {
    margin-top: 0;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
}

/* Simple Header */
.simple-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.simple-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-event {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(139, 0, 255, 0.05);
}

.back-to-event:hover {
    color: var(--primary-purple);
    transform: translateX(-3px);
    background: rgba(139, 0, 255, 0.1);
}

/* Hero Section with Background Image */
.ticket-event-info {
    position: relative;
    margin-top: 60px; /* Account for fixed header */
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Background Image */
.ticket-event-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./display.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Dark Overlay */
.ticket-event-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(139, 0, 255, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.ticket-event-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    background-color: white;
    -webkit-background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

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

.ticket-event-tagline {
    font-size: 1.5rem;
    color: white;
    font-style: italic;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

.ticket-event-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    color: var(--white);
    font-size: 1.1rem;
}

.ticket-event-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.ticket-event-details span:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

/* Tickets Section Container */
.tickets-section {
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tickets Grid */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ticket-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    width: 100%;
}

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

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

.ticket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 255, 0.2);
    border-color: var(--primary-purple);
}

.ticket-card.selected {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.05), rgba(139, 0, 255, 0.02));
    box-shadow: 0 10px 30px rgba(139, 0, 255, 0.15);
}

/* Add glow effect to selected cards */
.ticket-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 0, 255, 0.1), transparent);
    animation: slideGlow 3s linear infinite;
}

@keyframes slideGlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-purple), #a855f7);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

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

.ticket-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.ticket-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.ticket-unit {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.ticket-info {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ticket-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.ticket-features li {
    padding: 0.5rem 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ticket-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Quantity Controls */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.qty-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    background: white;
    color: var(--primary-purple);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-button:hover:not(:disabled) {
    background: var(--primary-purple);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 0, 255, 0.3);
}

.qty-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
    min-width: 40px;
    text-align: center;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 0 5% 2rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-purple);
    animation: slideInUp 0.5s ease;
}

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

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-purple);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: var(--dark);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-purple);
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Checkout */
.checkout-section {
    text-align: center;
    margin: 3rem 0;
    padding: 0 5%;
}

.btn-checkout {
    background: var(--primary-blue);
    color: white;
    padding: 1.2rem 4rem;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

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

.btn-checkout:hover:not(:disabled) {
    background: #0088bb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
}

.btn-checkout:hover::before {
    width: 300px;
    height: 300px;
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart Icon Styles */
.cart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: none;
}

.cart-container.show {
    display: block;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-button {
    position: relative;
    background: var(--primary-purple);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 0, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 0, 255, 0.6);
    background: linear-gradient(135deg, var(--primary-purple), #a855f7);
}

.cart-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FFD700;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Cart Summary Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.cart-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-purple);
}

.cart-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-purple);
    transform: rotate(90deg);
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f8f8;
    border-radius: 10px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark);
}

.cart-item-details {
    text-align: right;
}

.cart-item-quantity {
    color: var(--gray);
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--primary-purple);
    font-weight: bold;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 1rem;
}

.cart-total-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-continue-shopping {
    flex: 1;
    padding: 1rem;
    background: white;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: rgba(139, 0, 255, 0.05);
}

.btn-proceed-checkout {
    flex: 1;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-proceed-checkout:hover {
    background: #0088bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 153, 204, 0.3);
}

/* Remove info footer - commented out but kept for reference */
/*
.info-footer {
    display: none;
}
*/

/* Update checkout section to be hidden by default */
.checkout-section {
    display: none;
}

/* Update order summary to be hidden */
.order-summary {
    display: none !important;
}

/* Mobile adjustments for cart */
@media (max-width: 768px) {
    .cart-container {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-button {
        width: 50px;
        height: 50px;
    }
    
    .cart-icon {
        width: 24px;
        height: 24px;
    }
    
    .cart-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ticket-event-info {
        height: 50vh;
        min-height: 400px;
    }
    
    .ticket-event-title {
        font-size: 2.5rem;
    }
    
    .ticket-event-tagline {
        font-size: 1.2rem;
    }
    
    .ticket-event-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ticket-event-details span {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .tickets-section {
        padding: 1rem;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-checkout {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .simple-header {
        padding: 1rem;
    }
    
    .order-summary,
    .info-footer {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .ticket-event-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .ticket-event-tagline {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}