/**
 * Church Event Manager Public CSS
 * Styling for the public-facing components of the plugin
 */

/* General Styles */
.church-event-template-wrapper {
    margin: 40px 0;
    font-family: inherit;
}

/* Event Card Styles */
.church-events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.church-events-grid.single-column .church-event-card {
    width: 100%;
}

.church-events-grid.double-column .church-event-card {
    width: calc(50% - 15px);
}

.church-events-grid.triple-column .church-event-card {
    width: calc(33.333% - 20px);
}

@media (max-width: 768px) {
    .church-events-grid.double-column .church-event-card,
    .church-events-grid.triple-column .church-event-card {
        width: 100%;
    }
}

/* Horizontal Event Cards for Archive Pages */
.church-events-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

/* Multi-column layouts for horizontal cards */
.church-events-list.double-column,
.church-events-list.triple-column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.church-events-list.double-column .church-event-horizontal-card {
    width: calc(50% - 15px);
}

.church-events-list.triple-column .church-event-horizontal-card {
    width: calc(33.333% - 20px);
}

@media (max-width: 991px) {
    .church-events-list.triple-column .church-event-horizontal-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .church-events-list.double-column .church-event-horizontal-card,
    .church-events-list.triple-column .church-event-horizontal-card {
        width: 100%;
    }
}

.church-event-horizontal-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Card Styles Variations */
.church-event-horizontal-card.simple {
    border: 1px solid #e5e7eb;
}

.church-event-horizontal-card.bordered {
    border: 2px solid #e5e7eb;
}

.church-event-horizontal-card.shadowed {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.church-event-horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.church-event-horizontal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 768px) {
    .church-event-horizontal-inner {
        flex-direction: row;
    }
}

.church-event-horizontal-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .church-event-horizontal-image {
        width: 30%;
        height: auto;
        min-height: 100%;
    }
    
    .church-event-horizontal-card {
        display: flex;
        height: 100%;
    }
    
    .church-event-horizontal-inner {
        width: 100%;
    }
}

.church-event-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.church-event-horizontal-card:hover .church-event-horizontal-image img {
    transform: scale(1.05);
}

.church-event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.church-event-badge.upcoming {
    background-color: #10b981;
    color: white;
}

.church-event-badge.past {
    background-color: #6b7280;
    color: white;
}

.church-event-horizontal-content {
    padding: 25px;
    flex: 1;
}

.church-event-horizontal-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    color: #111827;
}

.church-event-horizontal-title a {
    text-decoration: none;
    color: inherit;
}

.church-event-horizontal-meta {
    margin-bottom: 18px;
}

.church-event-horizontal-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
    color: #4b5563;
    flex-wrap: nowrap;
    width: 100%;
}

.church-event-horizontal-icon {
    margin-right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

.church-event-horizontal-meta-text {
    flex: 1;
    display: inline-block;
    white-space: normal;
    word-break: normal;
}

.church-event-horizontal-description {
    margin-bottom: 20px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.church-event-horizontal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.church-event-horizontal-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 4px;
    background-color: #3b82f6;
    color: white;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.church-event-horizontal-button:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Regular Card Styles (keeping these for grid layouts) */
.church-event-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Card Styles Variations */
.church-event-card.simple {
    border: 1px solid #e5e7eb;
}

.church-event-card.bordered {
    border: 2px solid #e5e7eb;
}

.church-event-card.shadowed {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.church-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.church-event-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.church-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.church-event-card:hover .church-event-card-image img {
    transform: scale(1.05);
}

.church-event-card-content {
    padding: 20px;
}

.church-event-card-date {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 14px;
}

.church-event-card-date svg {
    margin-right: 8px;
}

.church-event-card-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: #111827;
}

.church-event-card-title a {
    text-decoration: none;
    color: inherit;
}

.church-event-card-meta {
    margin-bottom: 15px;
}

.church-event-card-meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}

.church-event-card-meta-item svg {
    margin-right: 8px;
    min-width: 16px;
    color: #6b7280;
}

.church-event-card-description {
    margin-bottom: 20px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.church-event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.church-event-card-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #3b82f6;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.church-event-card-button:hover {
    background-color: #2563eb;
    color: white;
}

/* Single Event Styles */
.church-event-single-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.church-event-single {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.church-event-single-inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .church-event-single-inner {
        flex-direction: row;
    }
}

.church-event-single-image {
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .church-event-single-image {
        width: 40%;
    }
}

.church-event-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.church-event-label-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.church-event-label-badge span,
.church-event-label-badge-alt span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.church-event-upcoming {
    background-color: #10b981;
    color: white;
}

.church-event-past {
    background-color: #6b7280;
    color: white;
}

/* Recurring event styles */
.church-event-recurring-badge {
    margin-top: 8px;
    display: block;
    clear: both;
    background-color: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: 4px;
    padding: 4px 10px;
    color: #4f46e5;
    font-size: 13px;
    width: fit-content;
}

.church-event-upcoming-occurrences {
    margin: 5px 0 0 0;
    padding: 0 0 0 5px;
    list-style-type: none;
}

.church-event-upcoming-occurrences li {
    padding: 3px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px dotted #e5e7eb;
}

.church-event-upcoming-occurrences li:last-child {
    border-bottom: none;
}

.church-event-single-content {
    padding: 30px;
    flex: 1;
}

.church-event-label-badge-alt {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.church-event-single-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    line-height: 1.3;
    color: #111827;
}

.church-event-single-meta {
    margin-bottom: 25px;
}

.church-event-single-meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 16px;
    color: #4b5563;
}

.church-event-single-icon {
    margin-right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.church-event-calendar-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
}

.church-event-clock-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E");
}

.church-event-location-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3C/svg%3E");
}

.church-event-directions-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4'%3E%3C/path%3E%3C/svg%3E");
}

.church-event-calendar-plus-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2zM12 12v3m0 0v3m0-3h3m-3 0H9'%3E%3C/path%3E%3C/svg%3E");
}

.church-event-facebook-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.church-event-twitter-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723 10.028 10.028 0 01-3.127 1.195 4.92 4.92 0 00-8.384 4.482C7.69 8.068 4.079 6.279 1.67 3.514a4.897 4.897 0 00-.665 2.464c0 1.704.87 3.202 2.19 4.099a4.935 4.935 0 01-2.224-.616v.06a4.926 4.926 0 003.95 4.829 5.023 5.023 0 01-2.29.088 4.937 4.937 0 004.6 3.42 9.882 9.882 0 01-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.952 13.952 0 007.55 2.213c9.06 0 14.01-7.502 14.01-14.01 0-.213-.004-.426-.013-.637a10.056 10.056 0 002.466-2.554l-.047-.02z'/%3E%3C/svg%3E");
}

.church-event-email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
}

.church-event-single-meta-text {
    flex: 1;
    display: block;
    position: relative;
    z-index: 1;
}

.church-event-address {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

.church-event-single-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

.church-event-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.church-event-single-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.church-event-single-button:first-child {
    background-color: #3b82f6;
    color: white;
}

.church-event-single-button:hover {
    transform: translateY(-2px);
}

.church-event-directions-button {
    background-color: #f3f4f6;
    color: #4b5563;
}

.church-event-directions-button:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.church-event-single-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.church-event-single-calendar-export {
    position: relative;
}

.church-event-single-calendar-button {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.3s ease;
}

.church-event-single-calendar-button:hover {
    color: #111827;
}

.church-event-single-calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 180px;
    display: none;
}

.church-event-single-calendar-dropdown.active {
    display: block;
}

.church-event-single-calendar-option {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #4b5563;
    transition: background-color 0.3s ease;
}

.church-event-single-calendar-option:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.church-event-single-share {
    display: flex;
    align-items: center;
}

.church-event-single-share-label {
    margin-right: 10px;
    font-size: 14px;
    color: #6b7280;
}

.church-event-single-share-buttons {
    display: flex;
    gap: 10px;
}

.church-event-single-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f3f4f6;
    transition: background-color 0.3s ease;
}

.church-event-single-share-button:hover {
    background-color: #e5e7eb;
}

.church-event-single-share-button .church-event-single-icon {
    margin: 0;
    width: 18px;
    height: 18px;
}

/* Pagination styles */
.church-events-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.church-events-pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.church-events-pagination-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #4b5563;
    background-color: #f3f4f6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.church-events-pagination-item a:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.church-events-pagination-item.active a {
    background-color: #3b82f6;
    color: white;
}

/* Back to events navigation */
.church-event-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.church-event-back-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f3f4f6;
    border-radius: 6px;
    text-decoration: none;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.church-event-back-link:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.church-event-back-arrow {
    margin-right: 8px;
    font-size: 18px;
}

/* Prevent emoji overlap in icons */
.church-event-calendar-icon::before,
.church-event-list-icon::before {
    content: none !important;
}