/* ===================================
   EVENT DETAILS MODAL - PROFESSIONAL DESIGN
   ================================== */

/* Modal Overlay */
.event-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    overflow: hidden;
}

.event-details-modal.active {
    display: block;
}

.event-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

/* Modal Container */
.event-details-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Close Button */
.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(15, 42, 42, 0.9);
    border: 2px solid rgba(127, 255, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close-btn:hover {
    background: rgba(127, 255, 0, 0.1);
    border-color: #7FFF00;
    transform: rotate(90deg);
}

.modal-close-btn svg {
    color: #7FFF00;
}

/* Modal Content */
.event-details-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}

/* ===================================
   HEADER SECTION
   ================================== */

.event-details-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(31, 85, 85, 0.4), rgba(15, 42, 42, 0.6));
    border: 2px solid rgba(127, 255, 0, 0.15);
    border-radius: 24px;
    overflow: hidden;
}

.event-header-image {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #1f5555 0%, #0a2f2f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 42, 0.8) 100%);
}

.event-header-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 1;
}

.event-header-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-detail-title {
    font-size: 2.5rem;
    color: #7FFF00;
    line-height: 1.2;
    margin: 0;
}

.event-detail-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Organizer Info */
.event-detail-organizer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 42, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(127, 255, 0, 0.1);
}

.organizer-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FFF00 0%, #0D4F4F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0F2A2A;
}

.organizer-info-large {
    flex: 1;
}

.organizer-name-large {
    display: block;
    color: #7FFF00;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.organizer-role-large {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Rating Large */
.event-detail-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-stars-large {
    color: #FFD700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.rating-stats {
    display: flex;
    flex-direction: column;
}

.rating-score-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7FFF00;
}

.rating-count-large {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Quick Info Grid */
.event-quick-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.quick-info-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(31, 85, 85, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(127, 255, 0, 0.1);
}

.quick-info-item svg {
    color: #7FFF00;
    flex-shrink: 0;
}

.quick-info-item > div {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
}

/* ===================================
   BODY LAYOUT
   ================================== */

.event-details-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

.event-details-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ===================================
   SECTIONS
   ================================== */

.detail-section {
    background: linear-gradient(135deg, rgba(31, 85, 85, 0.4), rgba(15, 42, 42, 0.6));
    border: 2px solid rgba(127, 255, 0, 0.15);
    border-radius: 20px;
    padding: 2rem;
}

.section-title {
    color: #7FFF00;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.event-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(127, 255, 0, 0.05);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(127, 255, 0, 0.1);
    border-color: rgba(127, 255, 0, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #7FFF00;
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.highlight-item-large {
    padding: 1.25rem;
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.3);
    border-radius: 12px;
    color: #7FFF00;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-item-large:hover {
    background: rgba(127, 255, 0, 0.15);
    transform: translateY(-2px);
}

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

.agenda-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(15, 42, 42, 0.6);
    border-radius: 12px;
    border-left: 3px solid #7FFF00;
}

.agenda-time {
    color: #7FFF00;
    font-weight: 700;
    font-size: 1.1rem;
}

.agenda-details h4 {
    color: #FFFFFF;
    margin: 0 0 0.5rem 0;
}

.agenda-details p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.speaker-card {
    padding: 1.5rem;
    background: rgba(15, 42, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(127, 255, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.speaker-card:hover {
    border-color: #7FFF00;
    transform: translateY(-4px);
}

.speaker-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FFF00 0%, #0D4F4F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0F2A2A;
    margin: 0 auto 1rem;
}

.speaker-name {
    color: #7FFF00;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.speaker-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.speaker-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Location Map */
.location-map {
    height: 400px;
    background: rgba(15, 42, 42, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Reviews */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: rgba(15, 42, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(127, 255, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FFF00 0%, #0D4F4F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0F2A2A;
}

.review-author-name {
    color: #7FFF00;
    font-weight: 600;
}

.review-rating {
    color: #FFD700;
}

.review-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.no-reviews {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
}

/* ===================================
   BOOKING SIDEBAR
   ================================== */

.event-details-sidebar {
    position: relative;
}

.booking-card {
    background: linear-gradient(135deg, rgba(31, 85, 85, 0.6), rgba(15, 42, 42, 0.8));
    border: 2px solid rgba(127, 255, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.booking-card.sticky {
    position: sticky;
    top: 100px;
}

/* Price Display */
.booking-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.2);
}

.price-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #7FFF00;
}

.price-amount.free {
    font-size: 2.5rem;
}

/* Availability */
.booking-availability {
    padding: 1rem;
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.availability-status {
    color: #7FFF00;
    font-weight: 600;
    font-size: 1rem;
}

.availability-status.few-spots {
    color: #FF6B6B;
}

.availability-status.almost-full {
    color: #FFA500;
}

.availability-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-book-now {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #7FFF00 0%, #5ACC00 100%);
    color: #0F2A2A;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 255, 0, 0.3);
}

.btn-book-now svg {
    transition: transform 0.3s ease;
}

.btn-book-now:hover svg {
    transform: translateX(5px);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-secondary-action {
    padding: 0.875rem;
    background: rgba(31, 85, 85, 0.6);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 10px;
    color: #7FFF00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary-action:hover {
    background: rgba(127, 255, 0, 0.1);
    border-color: #7FFF00;
}

.btn-secondary-action.active {
    background: rgba(127, 255, 0, 0.2);
    border-color: #7FFF00;
}

/* Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: rgba(15, 42, 42, 0.6);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.info-card svg {
    color: #7FFF00;
    flex-shrink: 0;
}

/* Contact Organizer */
.btn-contact-organizer {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(127, 255, 0, 0.3);
    border-radius: 12px;
    color: #7FFF00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-contact-organizer:hover {
    background: rgba(127, 255, 0, 0.1);
    border-color: #7FFF00;
}

/* ===================================
   ANIMATIONS
   ================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===================================
   RESPONSIVE
   ================================== */

/* Agenda Section */
.agenda-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.agenda-item:hover {
    background: rgba(127, 255, 0, 0.05);
    border-color: rgba(127, 255, 0, 0.3);
    transform: translateX(5px);
}

.agenda-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7FFF00;
    white-space: nowrap;
}

.agenda-details h4 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.2rem;
}

.agenda-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Speaker Cards */
.speaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.speaker-card:hover {
    background: rgba(127, 255, 0, 0.05);
    border-color: rgba(127, 255, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(127, 255, 0, 0.2);
}

.speaker-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FFF00, #00D4AA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F2A2A;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(127, 255, 0, 0.3);
}

.speaker-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.speaker-title {
    font-size: 1rem;
    color: #7FFF00;
    margin-bottom: 1rem;
}

.speaker-bio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 300px;
}

/* Map Styling */
.location-section {
    padding: 2rem !important;
}

.detail-map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10, 30, 30, 0.8);
}

.detail-map-canvas {
    width: 100%;
    height: 100%;
}

#detail-map {
    width: 100%;
    height: 100%;
}

.detail-map-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(15, 42, 42, 0.95);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(127, 255, 0, 0.2);
    backdrop-filter: blur(10px);
}

.detail-map-btn {
    padding: 8px 12px;
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.detail-map-btn:hover {
    background: rgba(127, 255, 0, 0.15);
    border-color: rgba(127, 255, 0, 0.4);
    color: #7FFF00;
    transform: translateY(-1px);
}

.detail-map-btn.active {
    background: rgba(127, 255, 0, 0.2);
    border-color: rgba(127, 255, 0, 0.5);
    color: #7FFF00;
}

.detail-map-btn svg {
    width: 14px;
    height: 14px;
}

.maplibregl-popup-content {
    background: rgba(15, 42, 42, 0.95);
    color: #fff;
    border: 1px solid rgba(127, 255, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.maplibregl-popup-content strong {
    color: #7FFF00;
}

@media (max-width: 1200px) {
    .event-details-header {
        grid-template-columns: 1fr;
    }
    
    .event-details-body {
        grid-template-columns: 1fr;
    }
    
    .booking-card.sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .event-details-content {
        padding: 60px 20px 20px;
    }
    
    .event-header-info {
        padding: 2rem;
    }
    
    .event-detail-title {
        font-size: 2rem;
    }
    
    .event-quick-info {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid,
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-actions {
        grid-template-columns: 1fr;
    }
    
    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}
