/* Event Details Page Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Simple Navbar */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    max-width: 1025px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Main Section */
.event-details-section {
    padding: 40px 0;
    min-height: calc(100vh - 90px);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Event Card */
.event-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #30847a, #28a745);
}

/* Event Header */
.event-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(48, 132, 122, 0.03), rgba(40, 167, 69, 0.03));
}

.event-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #30847a;
    margin: 0 0 25px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.event-date, .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(48, 132, 122, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: #30847a;
    border: 1px solid rgba(48, 132, 122, 0.2);
}

.event-date .icon, .event-location .icon {
    font-size: 1.2rem;
}

/* Event Image */
.event-image-container {
    padding: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.event-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.event-image:hover {
    transform: scale(1.02);
}

/* Fallback for missing images */
.event-image-container::before {
    content: '🖼️ Arrangementsbilde';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #6c757d;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-image[style*="display: none"] + * .event-image-container::before,
.event-image:not([src]) + .event-image-container::before {
    opacity: 1;
}

/* Event Content */
.event-content {
    padding: 40px;
}

.event-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #30847a;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.event-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #30847a, #28a745);
    border-radius: 2px;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.event-description p {
    margin-bottom: 15px;
}

/* Action Buttons */
.event-actions {
    padding: 30px 40px 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(248, 249, 250, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #30847a, #28a745);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 132, 122, 0.4);
    background: linear-gradient(135deg, #24665e, #218838);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.5);
    transform: translateY(-2px);
    color: #495057;
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        padding: 0 15px;
    }

    .event-card {
        border-radius: 15px;
        margin: 0 5px;
    }

    .event-header {
        padding: 30px 25px 20px;
    }

    .event-header h1 {
        font-size: 2rem;
    }

    .event-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .event-content {
        padding: 30px 25px;
    }

    .event-content h3 {
        font-size: 1.5rem;
    }

    .event-description {
        font-size: 1rem;
    }

    .event-actions {
        padding: 25px 25px 30px;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .event-header {
        padding: 25px 20px 15px;
    }

    .event-header h1 {
        font-size: 1.8rem;
    }

    .event-image {
        height: 250px;
    }

    .event-content {
        padding: 25px 20px;
    }

    .event-actions {
        padding: 20px;
    }

    .event-date, .event-location {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}
