/**
 * Public Styles for Finnish Church Events
 */

/* Event Container */
.fce-events-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Event Card */
.fce-event {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.fce-event:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Event Date Badge */
.fce-event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: #2271b1;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-right: 20px;
}

.fce-event-month {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.fce-event-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

/* Event Content */
.fce-event-content {
    flex: 1;
}

.fce-event-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.fce-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.fce-meta-item {
    font-size: 14px;
    color: #666;
}

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

.fce-event-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.fce-toggle-description {
    background: none;
    border: none;
    color: #2271b1;
    cursor: pointer;
    padding: 5px 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: none;
}

.fce-toggle-description:hover {
    text-decoration: underline;
}

.fce-collapse-text {
    display: none;
}

.fce-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.fce-source {
    color: #999;
    font-size: 12px;
}

.fce-event-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.fce-event-link:hover {
    text-decoration: underline;
}

/* Compact List */
.fce-compact-list {
    list-style: none;
    padding: 0;
}

.fce-compact-list li {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.fce-compact-list li:last-child {
    border-bottom: none;
}

/* Calendar View */
.fce-calendar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.fce-calendar-day {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
}

.fce-calendar-day.has-events {
    background: #e8f4f8;
}

.fce-calendar-day ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.fce-calendar-day li {
    margin-bottom: 5px;
}

/* No Events Message */
.fce-no-events {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .fce-event {
        flex-direction: column;
    }

    .fce-event-date {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .fce-event-meta {
        flex-direction: column;
        gap: 8px;
    }

    .fce-event-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* Mobile: Hide description by default, show toggle button */
    .fce-event-description {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .fce-event.expanded .fce-event-description {
        display: block;
        max-height: 1000px;
    }

    .fce-toggle-description {
        display: inline-block;
    }

    .fce-event.expanded .fce-expand-text {
        display: none;
    }

    .fce-event.expanded .fce-collapse-text {
        display: inline;
    }
}
