/* event_detail.css - Styles for event detail page */

/* Typography - Modern 2025 trends with larger, readable fonts */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Event Header */
.event-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.event-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
}

.event-hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: center;
}

.event-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f9fafb;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #d1d5db;
    font-weight: 500;
}

.meta-item i {
    width: 16px;
    color: #60a5fa;
}

.simulator-info {
    font-weight: 600;
    color: #60a5fa;
}

.simulator-logo {
    width: auto;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.event-image-container {
    display: flex;
    justify-content: center;
}

.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.event-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    gap: 8px;
}

.event-image-placeholder i {
    font-size: 2rem;
    opacity: 0.8;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.image-modal-close:hover {
    color: #93c5fd;
}

.hidden {
    display: none;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* Main Content */
.main-content {
    background: #1f2937;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #f9fafb;
    letter-spacing: -0.025em;
}

.event-description {
    color: #e5e7eb;
    line-height: 1.7;
    font-size: 1.125rem;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

.event-description p {
    margin-bottom: 1.5em;
}

.event-description strong,
.event-description b {
    color: #f9fafb;
    font-weight: 600;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card Styles */
.card {
    background: #1f2937;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0;
    letter-spacing: -0.025em;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d5db;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f9fafb;
}

/* Community Link */
.community-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #d1d5db;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: #f9fafb;
}

.community-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: white;
}

.community-info {
    flex: 1;
}

.community-name {
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.community-desc {
    font-size: 0.95rem;
    color: #9ca3af;
}

.community-arrow {
    color: #9ca3af;
    transition: all 0.2s ease;
}

.community-link:hover .community-arrow {
    color: #60a5fa;
    transform: translateX(4px);
}

/* Track Map - Enlarged */
.track-map {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #374151;
}

/* Track Map Styles - No Fill, Only Outline */
.track-outline-style {
    fill: none !important;
    fill-opacity: 0 !important;
    stroke: #3b82f6;
    stroke-width: 3;
    stroke-opacity: 0.9;
}

/* Leaflet popup customization for track outline */
.track-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.track-popup .leaflet-popup-tip {
    background: white;
}

/* Single Action Button */
.single-action-button {
    width: 100%;
}

.action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.action-btn-primary {
    background: #3b82f6;
    color: white;
}

.action-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f9fafb;
    transform: translateY(-2px);
}

/* Related Events Section */
.related-events-section {
    margin-top: 32px;
}

.related-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #d1d5db;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: #f9fafb;
}

.event-indicator {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-indicator-community {
    background: #10b981;
}

.event-content {
    flex: 1;
}

.event-name {
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.3;
}

.event-meta-small {
    font-size: 0.85rem;
    color: #9ca3af;
}

.event-arrow {
    color: #9ca3af;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.event-item:hover .event-arrow {
    color: #60a5fa;
    transform: translateX(4px);
}

/* Card Footer */
.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: #60a5fa;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #93c5fd;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .related-events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .event-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-title {
        font-size: 2.25rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 12px;
    }

    .event-header {
        padding: 24px;
    }

    .main-content,
    .card {
        padding: 20px;
    }

    .single-action-button {
        width: 100%;
    }

    .event-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .event-title {
        font-size: 2rem;
    }

    .event-header {
        padding: 20px;
    }

    .main-content,
    .card {
        padding: 16px;
    }

    .event-stats {
        grid-template-columns: 1fr;
    }
}

/* Mobile responsive title */
@media (max-width: 768px) {
    .event-title {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .event-title {
        font-size: 1.3rem !important;
    }
}