/**
 * WD Event Manager - Frontend Styles
 *
 * @package WDEvents
 */

/* Events Archive Container */
.wd-events-archive {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wd-events-archive-header {
    margin-bottom: 2rem;
}

.wd-events-archive-title {
    margin: 0 0 0.5rem;
}

/* Event Cards */
.wd-events-list {
    display: grid;
    gap: 2rem;
    padding: 1rem 0;
}

.wd-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.wd-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wd-event-card .wd-event-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.wd-event-card .wd-event-content {
    padding: 1.5rem;
}

.wd-event-card .wd-event-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

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

.wd-event-card .wd-event-title a:hover {
    text-decoration: underline;
}

.wd-event-card .wd-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.wd-event-card .wd-event-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.wd-event-card .wd-event-excerpt {
    color: #555;
    margin-bottom: 1rem;
}

.wd-event-card .wd-event-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
}

/* Mini Event Cards */
.wd-event-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.wd-event-card-mini:last-child {
    border-bottom: none;
}

.wd-event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
}

.wd-event-date-box .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.wd-event-date-box .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.wd-event-card-mini .wd-event-info a {
    color: inherit;
    text-decoration: none;
}

.wd-event-card-mini .wd-event-info a:hover {
    text-decoration: underline;
}

/* Single Event */
.wd-single-event {
    max-width: 800px;
    margin: 0 auto;
}

.wd-single-event .wd-event-header {
    margin-bottom: 2rem;
}

.wd-single-event .wd-event-title {
    margin-bottom: 1rem;
}

.wd-single-event .wd-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.wd-single-event .wd-event-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wd-single-event .wd-event-meta .wd-meta-icon {
    color: #666;
}

.wd-single-event .wd-event-thumbnail {
    margin-bottom: 2rem;
}

.wd-single-event .wd-event-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wd-single-event .wd-event-content {
    margin-bottom: 2rem;
}

.wd-single-event .wd-event-details {
    display: grid;
    gap: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.wd-single-event .wd-event-details h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #666;
}

.wd-single-event .wd-event-details p {
    margin: 0 0 0.25rem;
}

.wd-single-event .wd-event-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.wd-single-event .wd-nav-label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.25rem;
}

/* Calendar Widget */
.wd-events-calendar {
    padding: 1rem;
}

.wd-events-calendar-header {
    margin-bottom: 1rem;
}

.wd-no-events {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Event Countdown */
.wd-event-countdown {
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.wd-event-countdown h4 {
    margin: 0 0 1rem;
}

.wd-event-countdown .countdown-timer {
    font-size: 1.25rem;
}

.wd-event-countdown .countdown-timer span {
    font-weight: bold;
    margin-right: 0.25rem;
}

/* Pagination */
.wd-events-pagination {
    margin-top: 2rem;
}

.wd-events-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.wd-events-pagination a,
.wd-events-pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

.wd-events-pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive */
@media (min-width: 768px) {
    .wd-events-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .wd-single-event .wd-event-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .wd-events-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .wd-single-event .wd-event-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Events List Widget */
.wd-events-list-widget__events {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wd-events-list-widget__event {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.wd-events-list-widget__event:last-child {
    border-bottom: none;
}

.wd-events-list-widget__event-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wd-events-list-widget__event-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.wd-events-list-widget__event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wd-events-list-widget__event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5rem;
    background: var(--primarycolor, #0073aa);
    color: #fff;
    border-radius: 4px;
    flex-shrink: 0;
}

.wd-events-list-widget__event-day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.wd-events-list-widget__event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.wd-events-list-widget__event-content {
    flex: 1;
    min-width: 0;
}

.wd-events-list-widget__event-title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.wd-events-list-widget__event-title a {
    color: inherit;
    text-decoration: none;
}

.wd-events-list-widget__event-title a:hover {
    text-decoration: underline;
}

.wd-events-list-widget__event-time,
.wd-events-list-widget__event-venue {
    font-size: 0.95rem;
    color: #666;
}

.wd-events-list-widget__view-more {
    margin-top: 1rem;
    text-align: right;
}

.wd-events-list-widget__view-more a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primarycolor, #0073aa);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
}

.wd-events-list-widget__view-more a:hover {
    opacity: 0.9;
}

.wd-events-list-widget__no-events {
    color: #666;
    font-style: italic;
}
