/* Event Details Page Styles */

/* Event Banner Styles */
.event-banner {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    min-height: 400px;
}

.event-banner.has-image {
    background: none !important;
}

.event-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.event-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.event-banner-default {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    z-index: 1;
}

.event-banner-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 100%;
}

.event-banner-title {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
    margin: 0;
}

/* Ticket Card Styles */
.ticket-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.ticket-card > * {
    position: relative;
    z-index: 2;
}

.ticket-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Betting Offer Card Styles */
.betting-offer-card {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.1) 50%, 
        rgba(102, 126, 234, 0.12) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    position: relative;
}

.betting-offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        rgba(118, 75, 162, 0.05) 50%, 
        rgba(102, 126, 234, 0.08) 100%);
    pointer-events: none;
    z-index: 1;
}

.betting-offer-card:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.2) 0%, 
        rgba(118, 75, 162, 0.15) 50%, 
        rgba(102, 126, 234, 0.18) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.betting-offer-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    margin: -1px -1px 0 -1px;
}

/* Tickets Container Glass Effect */
.tickets-container-glass {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.tickets-container-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(16, 185, 129, 0.02) 50%, 
        rgba(59, 130, 246, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

.tickets-container-glass .card-header {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.tickets-container-glass .card-body {
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* X (Twitter) Share Button Styling */
.btn-x-share {
    background-color: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
}

.btn-x-share:hover {
    background-color: #000000 !important;
    border: 2px solid #000000 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-x-share:focus,
.btn-x-share:active {
    background-color: #333333 !important;
    border: 2px solid #333333 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}

/* Payment Modal Styles */
.payment-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef !important;
}

.payment-option:hover {
    border-color: #007bff !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.payment-option.selected {
    border-color: #007bff !important;
    background-color: #f8f9ff;
}

.payment-icon {
    transition: transform 0.3s ease;
}

.payment-option:hover .payment-icon {
    transform: scale(1.1);
}

/* General Styles */
.betting-offer-details .alert {
    border-left: 4px solid #667eea;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.payment-options .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.modal-lg {
    max-width: 800px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-check:checked + .btn-outline-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.alert {
    border-radius: 8px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.btn-success:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.min-vh-50 {
    min-height: 50vh;
}

.event-banner-cta {
    text-align: center;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    color: white;
    margin-bottom: 1rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.betting-offer-card .badge {
    animation: pulse 2s infinite;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Event Banner Mobile */
    .event-banner {
        min-height: 300px;
    }

    .event-banner-overlay {
        padding: 1rem;
    }

    .event-banner-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    /* Modal and Payment Mobile */
    .modal-dialog {
        margin: 0.5rem;
    }

    .payment-option {
        margin-bottom: 1rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }

    /* Hide banner CTA on mobile */
    .event-banner-cta {
        display: none !important;
    }

    /* Hide About This Event section on mobile */
    .card:has(.fa-info-circle) {
        display: none !important;
    }

    /* Alternative selector for About This Event */
    .card:has(h4:contains("About This Event")) {
        display: none !important;
    }

    /* Hide Quick Details section on mobile */
    .quick-details {
        display: none !important;
    }

    /* Hide Event Summary Card (Available from KES) on mobile */
    .col-lg-4 .card.sticky-top {
        display: none !important;
    }

    /* Alternative selector for Event Summary Card */
    .card:has(.event-status-badge) {
        display: none !important;
    }

    /* Hide feature cards on mobile */
    .fa-shield-alt,
    .fa-mobile-alt,
    .fa-headset {
        display: none !important;
    }

    .card:has(.fa-shield-alt),
    .card:has(.fa-mobile-alt),
    .card:has(.fa-headset),
    .col-md-4:has(.fa-shield-alt),
    .col-md-4:has(.fa-mobile-alt),
    .col-md-4:has(.fa-headset) {
        display: none !important;
    }

    .row.text-center .col-md-4:nth-child(1),
    .row.text-center .col-md-4:nth-child(2),
    .row.text-center .col-md-4:nth-child(3) {
        display: none !important;
    }

    section:has(.fa-shield-alt),
    section:has(.fa-mobile-alt),
    section:has(.fa-headset) {
        display: none !important;
    }

    .card-title[title*="Secure"],
    .card-title[title*="Mobile"],
    .card-title[title*="Support"] {
        display: none !important;
    }

    .col-md-4:has(.card-title[title*="Secure"]),
    .col-md-4:has(.card-title[title*="Mobile"]),
    .col-md-4:has(.card-title[title*="Support"]) {
        display: none !important;
    }

    .feature-card,
    .security-card,
    .mobile-card,
    .support-card {
        display: none !important;
    }

    /* Mobile banner adjustments */
    .event-banner-overlay {
        padding: 2rem 0;
    }

    .event-banner-details .row {
        text-align: center;
    }

    .event-detail-item {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .event-banner {
        min-height: 250px;
    }

    .event-banner-title {
        font-size: 1.5rem !important;
    }
}

/* Reduce height of "You Might Also Like" section */
section:has(h3:contains("You Might Also Like")) {
    padding: 1.5rem 0 !important;
}

/* Alternative selector for the related events section */
.py-5:has(h3) {
    padding: 1.5rem 0 !important;
}

/* Reduce margin on the heading */
h3:contains("You Might Also Like") {
    margin-bottom: 1rem !important;
}
