/**
 * Event Cards Styles
 * Styles for displaying event cards in grid layout
 *
 * @package IQ_MCAP_Blocksy_Child
 * @author  IQ Consultores
 */

/* Bootstrap Grid System - Essential Styles */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-6,
.col-12,
.col-lg-4,
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Spacing Utilities */
.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Display Utilities */
.d-block {
    display: block;
}

/* Typography */
.fs-5 {
    font-size: 1.25rem;
}

.fw-bold {
    font-weight: 700;
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: var(--theme-palette-color-8, #ffffff);
    background-color: var(--theme-palette-color-1, #90bf00);
    border-color: var(--theme-palette-color-1, #90bf00);
}

.btn-primary:hover {
    color: var(--theme-palette-color-8, #ffffff);
    background-color: var(--theme-palette-color-3, #3A4F66);
    border-color: var(--theme-palette-color-3, #3A4F66);
}

.w-100 {
    width: 100%;
}

/* Container */
#container-eventshome {
    background: #F4F4F4;
}

/* Event Card Base Styles */
.card-programar {
    background: #FFFFFF;
    border-radius: 8px;
    font-size: 14px;
    height: 100%;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: all .2s linear 0s;
    overflow: hidden;
    position: relative;
    border: none;
}

.card-programar:hover {
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.25);
}

/* Event Card Image */
.event-card-img {
    position: relative;
    padding-top: 56.5789473755%; /* 16:9 aspect ratio */
    display: flex;
    width: 100%;
}

.event-card-img img {
    object-fit: cover;
    object-position: center;
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Sold Out (Agotado) Styles */
.card-programar.agotado:hover {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.card-programar.agotado .event-card-img img {
    filter: saturate(0);
}

/* Sold Out Tag */
.tag-agotado {
    position: absolute;
    background-color: orange;
    transform: rotate(-35deg);
    color: #fff;
    padding: 5px 50px;
    left: -40px;
    top: 18px;
    z-index: 10;
    font-weight: bold;
    font-size: 12px;
}

/* Event Card Meta/Content */
.event-card-meta {
    padding: 1.5rem;
    text-transform: uppercase;
}

.event-card-meta .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.event-card-meta small {
    font-size: 0.75rem;
    color: #6c757d;
}

.event-card-meta .fw-bold {
    font-weight: 700 !important;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .event-card-meta {
        padding: 1rem;
    }

    .event-card-meta .card-title {
        font-size: 1rem;
    }
}
