/* ===========================
   Event Detail Page Styles
   =========================== */

.event-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.event-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.event-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 200px;
    color: white;
}

.event-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.event-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.event-breadcrumb a:hover {
    color: white;
}

.event-breadcrumb i {
    font-size: 12px;
}

.event-hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.event-category-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.event-type-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.section-heading-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    margin: 0 0 8px 0;
    display: block;
}

.event-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.event-hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.event-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.event-hero-meta .meta-item i {
    font-size: 20px;
}

/* Content Section */
.event-content-section {
    padding: 60px 0;
    background: #f9fafb;
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.event-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.content-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-description {
    font-size: 16px;
    line-height: 1.8;
    color: #1f2937;
    white-space: pre-wrap;
}

/* Ensure full description on detail page (override list/card clamp) */
.event-main .event-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.detail-item i {
    font-size: 24px;
    color: #3b82f6;
    width: 32px;
}

.detail-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    margin-top: 4px;
}

/* Booking Card */
.booking-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.booking-price {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.price-value {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
}

.price-label {
    font-size: 14px;
    color: #6b7280;
}

.registered-badge {
    background: #d1fae5;
    color: #059669;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-booking {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #000 0%, #2d2d2d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-booking:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-bookmark {
    width: 100%;
    padding: 14px;
    background: white;
    color: #000;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.btn-bookmark:hover {
    border-color: #000;
}

.btn-bookmark.active {
    background: #000;
    color: white;
    border-color: #000;
}

.booking-info {
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #1f2937;
    font-size: 14px;
}

.info-item i {
    color: #6b7280;
    width: 20px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.share-btn {
    padding: 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #1f2937;
}

.share-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
    transform: translateY(-2px);
}

/* Info Card */
.info-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.quick-info-item:last-child {
    border-bottom: none;
}

.quick-info-item span {
    color: #6b7280;
}

.quick-info-item strong {
    color: #1f2937;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #000;
    color: white;
}

.modal-body {
    padding: 32px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="number"],
.modal-body input[type="phone"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.modal-body small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.total-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.total-final {
    font-size: 20px;
    color: #000;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.location-info {
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.location-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.location-info p {
    color: #1f2937;
    margin-bottom: 8px;
}

/* Sidebar */
.event-sidebar {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .event-layout {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: static;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .event-hero {
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .event-hero .container {
        width: 100%;
    }

    .event-hero-content {
        padding-top: 0;
        width: 100%;
    }

    .event-hero-title {
        font-size: 32px;
    }

    .event-hero-meta {
        flex-direction: column;
        gap: 12px;
    }

    .content-card {
        padding: 24px;
    }

    .modal-content {
        width: 95%;
        border-radius: 16px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

