/**
 * Frontend Styles - Muelle Events
 * Based on provided design
 */

/* Main section */
.muelle-events-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section title */
.muelle-events-title {
    font-size: 2rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
}

/* Events grid */
.muelle-events-grid {
    display: grid;
    gap: 30px;
}

.muelle-events-cols-1 {
    grid-template-columns: 1fr;
}

.muelle-events-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.muelle-events-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.muelle-events-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* Image container */
.muelle-event-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
}

.muelle-event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muelle-event-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

/* Tags over image */
.muelle-event-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.muelle-event-tag {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.muelle-event-time {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid #e0e0e0;
}

/* Card content */
.muelle-event-content {
    padding: 20px;
}

/* Event date */
.muelle-event-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.muelle-event-date::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Event title */
.muelle-event-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Description */
.muelle-event-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Button */
.muelle-event-button {
    display: inline-block;
    background-color: #B8960B;
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.muelle-event-button:hover {
    background-color: #9a7d09;
    color: #fff;
    transform: scale(1.05);
    text-decoration: none;
}

.muelle-event-button:focus {
    outline: 2px solid #B8960B;
    outline-offset: 2px;
}

/* Empty message */
.muelle-events-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .muelle-events-cols-4,
    .muelle-events-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .muelle-events-section {
        padding: 30px 15px;
    }

    .muelle-events-title {
        font-size: 1.5rem;
    }

    .muelle-events-cols-4,
    .muelle-events-cols-3,
    .muelle-events-cols-2 {
        grid-template-columns: 1fr;
    }

    .muelle-event-content {
        padding: 15px;
    }

    .muelle-event-card-title {
        font-size: 1.1rem;
    }
}

/* Entry animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.muelle-event-card {
    animation: fadeInUp 0.5s ease forwards;
}

.muelle-event-card:nth-child(1) { animation-delay: 0.1s; }
.muelle-event-card:nth-child(2) { animation-delay: 0.2s; }
.muelle-event-card:nth-child(3) { animation-delay: 0.3s; }
.muelle-event-card:nth-child(4) { animation-delay: 0.4s; }
.muelle-event-card:nth-child(5) { animation-delay: 0.5s; }
.muelle-event-card:nth-child(6) { animation-delay: 0.6s; }
