/* General Calendar Page Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
}

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

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

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

.calendar-section {
    padding: 80px 0 40px 0;
    background-color: #f9f9f9;
    min-height: 60vh;
}

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

/* Main Heading */
.calendar-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    display: block;
    visibility: visible;
}

/* Filter Buttons Container */
.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

/* Filter Buttons */
.filter-button {
    padding: 12px 24px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(40, 167, 69, 0.3);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-button::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;
}

.filter-button:hover::before {
    left: 100%;
}

.filter-button:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Active Filter Button */
.filter-button.active {
    background: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

.filter-button.active:hover {
    background: #218838;
    border-color: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

/* Calendar Container */
.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

/* Each Calendar Event */
.calendar-event {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.calendar-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #30847a, #28a745);
}

.calendar-event:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Date Badge */
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #30847a, #28a745);
    color: white;
    padding: 20px 15px;
    min-width: 80px;
    text-align: center;
}

.event-date-badge .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.event-date-badge .month {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Content */
.event-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Event Header */
.event-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #30847a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.event-time .icon, .event-location .icon {
    font-size: 1rem;
}

/* Event Description */
.event-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Event Actions */
.event-actions {
    margin-top: auto;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #30847a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(48, 132, 122, 0.1);
    border: 1px solid rgba(48, 132, 122, 0.2);
}

.event-link:hover {
    background: rgba(48, 132, 122, 0.2);
    border-color: rgba(48, 132, 122, 0.3);
    transform: translateX(4px);
}

.event-link .arrow {
    transition: transform 0.3s ease;
}

.event-link:hover .arrow {
    transform: translateX(4px);
}

/* No Events State */
.no-events {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 2px dashed rgba(108, 117, 125, 0.3);
}

.no-events-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.no-events h3 {
    font-size: 1.5rem;
    color: #6c757d;
    margin: 0 0 10px 0;
}

.no-events p {
    color: #6c757d;
    margin: 0;
}

/* Back to Hvaskjer Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 20px auto;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    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);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.back-button::before {
    content: '←';
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5a6268, #3d4043);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

.back-button:hover::before {
    transform: translateX(-4px);
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .calendar-section h2 {
        font-size: 1.8rem;
    }

    .filter-container {
        gap: 10px;
        margin-bottom: 25px;
    }

    .filter-button {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .filter-button.active {
        backdrop-filter: blur(10px);
    }

    .calendar-event {
        flex-direction: column;
        margin: 0 10px;
    }

    .event-date-badge {
        flex-direction: row;
        justify-content: center;
        padding: 15px 20px;
        min-width: unset;
        width: 100%;
    }

    .event-date-badge .day {
        font-size: 1.8rem;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .event-date-badge .month {
        font-size: 1rem;
        align-self: flex-end;
        margin-bottom: 2px;
    }

    .event-content {
        padding: 20px;
    }

    .event-header h3 {
        font-size: 1.3rem;
    }

    .event-meta {
        gap: 15px;
    }

    .event-time, .event-location {
        font-size: 0.85rem;
    }

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

    .no-events {
        padding: 40px 30px;
        margin: 0 10px;
    }

    .no-events-icon {
        font-size: 2.5rem;
    }

    .no-events h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 0 15px;
    }

    .calendar-section {
        padding: 60px 0 30px 0;
    }

    .calendar-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .filter-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .filter-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 140px;
        text-align: center;
        width: 100%;
        max-width: 200px;
    }

    .filter-button.active {
        font-weight: 500;
    }

    .calendar-event {
        margin: 0 5px;
        border-radius: 12px;
    }

    .event-date-badge {
        padding: 12px 15px;
    }

    .event-date-badge .day {
        font-size: 1.6rem;
    }

    .event-date-badge .month {
        font-size: 0.9rem;
    }

    .event-content {
        padding: 15px;
    }

    .event-header h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .event-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .event-time, .event-location {
        font-size: 0.8rem;
    }

    .event-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .event-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .no-events {
        padding: 30px 20px;
        margin: 0 5px;
    }

    .no-events-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .no-events h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .no-events p {
        font-size: 0.9rem;
    }

    .back-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 15px auto;
    }
}
