/* ========================================
   Mitchelville Events - Frontend Styles
   ======================================== */

/* Featured Events Section (Homepage) */
.mitchelville-events-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .mitchelville-events-featured {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Events Grid (Multiple Events Page) */
.mitchelville-events-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.mitchelville-events-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (min-width: 1200px) {
    .mitchelville-events-grid[data-columns="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .mitchelville-events-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .mitchelville-events-grid[data-columns="4"] {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Event Card */
.mitchelville-event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mitchelville-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card-image {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    background: #5A9B9E;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.event-badge::before {
    content: "♥";
    margin-right: 6px;
    font-size: 14px;
}

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

.event-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c5f5f;
    line-height: 1.3;
}

.event-card-date {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin: 0;
}

.event-icon-calendar::before {
    content: "📅";
    margin-right: 6px;
    font-size: 16px;
}

.event-card-favorite {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.event-heart {
    font-size: 20px;
    color: #ccc;
    transition: color 0.3s ease;
    cursor: pointer;
}

.event-heart:hover {
    color: #e74c3c;
}

/* More Events Button */
.mitchelville-events-more {
    text-align: center;
    margin: 40px 0;
}

.mitchelville-more-events-btn {
    display: inline-block;
    background: #5A9B9E;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mitchelville-more-events-btn:hover {
    background: #487578;
    color: #fff;
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* ========================================
   Single Event Page Styles
   ======================================== */

.single-mitchelville_event .mitchelville-single-event {
    max-width: 1200px;
    margin: 0 auto;
}

/* Event Header with Background Image */
.mitchelville-event-header {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.mitchelville-event-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mitchelville-event-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.mitchelville-event-header-badge {
    display: inline-block;
    background: rgba(90, 155, 158, 0.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.mitchelville-event-header h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .mitchelville-event-header {
        height: 300px;
    }
    
    .mitchelville-event-header h1 {
        font-size: 32px;
    }
}

/* Event Content Container */
.mitchelville-event-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 0 20px;
    margin-bottom: 60px;
}

@media (max-width: 968px) {
    .mitchelville-event-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Main Content */
.mitchelville-event-main {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mitchelville-event-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.mitchelville-event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mitchelville-event-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.mitchelville-event-description p {
    margin-bottom: 20px;
}

/* Event Sidebar */
.mitchelville-event-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.mitchelville-event-details-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.mitchelville-event-detail-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mitchelville-event-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mitchelville-event-detail-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c5f5f;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mitchelville-event-detail-label::before {
    margin-right: 8px;
    font-size: 18px;
}

.event-detail-date::before {
    content: "📅";
}

.event-detail-time::before {
    content: "🕐";
}

.event-detail-location::before {
    content: "📍";
}

.event-detail-email::before {
    content: "✉️";
}

.event-detail-website::before {
    content: "🌐";
}

.mitchelville-event-detail-value {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.mitchelville-event-detail-value a {
    color: #5A9B9E;
    text-decoration: none;
}

.mitchelville-event-detail-value a:hover {
    color: #487578;
    text-decoration: underline;
}

/* Purchase Button */
.mitchelville-event-purchase {
    margin-top: 25px;
}

.mitchelville-purchase-btn {
    display: block;
    width: 100%;
    background: #5A9B9E;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
}

.mitchelville-purchase-btn:hover {
    background: #487578;
    color: #fff;
}

/* Share Button */
.mitchelville-event-share {
    margin-top: 30px;
    text-align: center;
}

.mitchelville-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #5A9B9E;
    padding: 10px 20px;
    border: 2px solid #5A9B9E;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mitchelville-share-btn:hover {
    background: #5A9B9E;
    color: #fff;
}

.mitchelville-share-btn::before {
    content: "↗️";
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mitchelville-event-main {
        padding: 20px;
    }
    
    .mitchelville-event-details-box {
        padding: 20px;
    }
}
