/**
 * Parish Events Styles
 */

/* Events List */
.parish-events-list {
    max-width: 800px;
}

.parish-event-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.parish-event-item:last-child {
    border-bottom: none;
}

.parish-event-date-badge {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    background: #0073aa;
    color: #fff;
    border-radius: 8px;
    padding: 10px 8px;
}

.parish-event-day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.parish-event-month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 4px;
}

.parish-event-year {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.parish-event-content {
    flex: 1;
}

.parish-event-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.parish-event-title a {
    color: #333;
    text-decoration: none;
}

.parish-event-title a:hover {
    color: #0073aa;
}

.parish-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.parish-event-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.parish-event-icon {
    flex-shrink: 0;
}

.parish-event-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.parish-event-documents {
    font-size: 14px;
    margin-bottom: 8px;
}

.parish-event-documents a {
    color: #0073aa;
    margin-left: 8px;
}

.parish-event-documents a:not(:last-child)::after {
    content: ',';
}

.parish-event-link {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}

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

.parish-events-no-results {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* Subscribe Link */
.parish-events-subscribe {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.parish-events-subscribe-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.parish-events-subscribe-link:hover {
    color: #0073aa;
}

/* Calendar */
.parish-events-calendar {
    max-width: 800px;
}

.parish-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.parish-calendar-title {
    margin: 0;
    font-size: 20px;
}

.parish-calendar-nav {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.parish-calendar-nav:hover {
    background: #f5f5f5;
}

.parish-calendar-grid {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.parish-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.parish-calendar-weekdays span {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.parish-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.parish-calendar-day {
    min-height: 80px;
    padding: 8px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.parish-calendar-day:nth-child(7n) {
    border-right: none;
}

.parish-calendar-day-empty {
    background: #fafafa;
}

.parish-calendar-day-today {
    background: #f0f6fc;
}

.parish-calendar-day-number {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.parish-calendar-day-today .parish-calendar-day-number {
    color: #0073aa;
}

.parish-calendar-day-events {
    font-size: 12px;
}

.parish-calendar-day-event {
    display: block;
    background: #0073aa;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.parish-calendar-day-event:hover {
    background: #005a87;
}

.parish-calendar-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Next Event */
.parish-next-event {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
}

.parish-next-event-header {
    margin-bottom: 16px;
}

.parish-next-event-label {
    background: #0073aa;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.parish-next-event-date {
    margin-bottom: 12px;
    color: #666;
}

.parish-next-event-day {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.parish-next-event-full-date {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
}

.parish-next-event-time {
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

.parish-next-event-title {
    margin: 0 0 12px 0;
    font-size: 22px;
}

.parish-next-event-title a {
    color: #333;
    text-decoration: none;
}

.parish-next-event-title a:hover {
    color: #0073aa;
}

.parish-next-event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.parish-next-event-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.parish-next-event-documents {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.parish-next-event-documents h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.parish-next-event-documents ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.parish-next-event-documents li {
    margin-bottom: 6px;
}

.parish-next-event-documents a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.parish-next-event-documents a:hover {
    text-decoration: underline;
}

.parish-next-event-actions {
    margin-bottom: 16px;
}

.parish-next-event-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.parish-next-event-button:hover {
    background: #005a87;
    color: #fff;
}

.parish-next-event-footer {
    font-size: 13px;
    color: #666;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.parish-next-event-footer a {
    color: #0073aa;
    text-decoration: none;
}

.parish-next-event-footer a:hover {
    text-decoration: underline;
}

.parish-next-event-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 600px) {
    .parish-event-item {
        flex-direction: column;
        gap: 12px;
    }

    .parish-event-date-badge {
        width: auto;
        display: flex;
        gap: 8px;
        padding: 8px 12px;
    }

    .parish-event-day,
    .parish-event-month,
    .parish-event-year {
        display: inline;
    }

    .parish-event-day {
        font-size: 18px;
    }

    .parish-calendar-weekdays span {
        font-size: 11px;
        padding: 8px 4px;
    }

    .parish-calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .parish-calendar-day-number {
        font-size: 12px;
    }

    .parish-calendar-day-event {
        font-size: 10px;
        padding: 1px 4px;
    }
}
