/* VTS Events Plugin Styles */

/* Import Lato Font */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Reset and Base Styles */
.vts-events-container {
    font-family: 'Lato', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.vts-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.vts-events-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.vts-view-all {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.vts-view-all:hover {
    color: #B8860B;
}

/* Events Grid - Mobile First */
.vts-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Mobile First - Vertical Cards (Default) */
.vts-event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vts-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.vts-event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.vts-event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vts-event-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* Date/Time Overlay */
.vts-event-datetime-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px; /* Desktop size */
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Event Content */
.vts-event-content {
    background: #4A2C1F;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vts-event-title {
    color: #F5F5DC;
    font-size: 32px; /* Desktop size */
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    margin: 0 0 15px 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.vts-event-yellow-border {
    width: 100%;
    height: 2px;
    background: #FFD700;
    margin-bottom: 15px;
}

.vts-event-link {
    color: #F5F5DC;
    text-decoration: none;
    font-size: 12px; /* Desktop size */
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.vts-event-link:hover {
    color: #FFD700;
}

.vts-arrow {
    color: #FFD700;
    margin-left: 5px;
    font-weight: bold;
}

/* Mobile Styles - Vertical Cards */
@media (max-width: 767px) {
    .vts-events-container {
        padding: 15px;
    }
    
    .vts-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vts-events-title {
        font-size: 24px;
        font-family: 'Lato', sans-serif;
        font-weight: 700;
    }
    
    .vts-events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .vts-event-card {
        flex-direction: column;
    }
    
    .vts-event-image-container {
        height: 180px;
    }
    
    .vts-event-content {
        padding: 15px;
    }
    
    .vts-event-title {
        font-size: 14px;
        font-weight: 700;
        font-family: 'Lato', sans-serif;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .vts-event-datetime-overlay {
        font-size: 6px;
        font-weight: 700;
        font-family: 'Lato', sans-serif;
        padding: 4px 6px;
    }
    
    .vts-event-link {
        font-size: 8px;
        font-weight: 700;
        font-family: 'Lato', sans-serif;
    }
}

/* Desktop, Laptop, and Tablet Styles - Horizontal Cards */
@media (min-width: 768px) {
    .vts-events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .vts-event-card {
        flex-direction: row !important;
        height: 200px;
    }
    
    .vts-event-image-container {
        width: 45%;
        height: 100%;
    }
    
    .vts-event-content {
        width: 55%;
        padding: 25px;
        justify-content: center;
    }
    
    .vts-event-title {
        font-size: 20px;
        font-weight: 700;
        font-family: 'Lato', sans-serif;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .vts-event-datetime-overlay {
        font-size: 14px;
        font-weight: 700;
        font-family: 'Lato', sans-serif;
        padding: 10px 15px;
    }
    
    .vts-event-link {
        font-size: 12px;
        font-weight: 700;
        font-family: 'Lato', sans-serif;
    }
}

/* Large Desktop Styles */
@media (min-width: 1024px) {
    .vts-event-card {
        height: 220px;
    }
    
    .vts-event-content {
        padding: 30px;
    }
    
    .vts-event-title {
        font-size: 22px;
    }
}

/* Card Link Styles */
.vts-event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.vts-event-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Ensure whole card is clickable */
.vts-event-card {
    position: relative;
}

/* Override link styles within cards */
.vts-event-card .vts-event-link {
    position: relative;
    z-index: 2;
}
