/* Containerul Principal și Fontul Global */
.custom-events-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr 1fr; 
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    font-family: "Kaufland", Sans-serif !important;
}

/* Cardul de bază */
.event-card {
    position: relative;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.normal-card { box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.5); }
.highlighted-card { box-shadow: 0px 0px 20px 0px rgba(249, 28, 45, 0.5); }

.event-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
    z-index: 0;
}

.past-card .event-card-bg { filter: grayscale(100%); }
.event-card:hover .event-card-bg { transform: scale(1.1); }

.event-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.event-date-badge, .event-card-content {
    position: relative;
    z-index: 2;
}

.event-date-badge {
    background: #fff;
    color: #000;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    align-self: flex-start;
    font-family: "Kaufland", Sans-serif;
}

.event-card-content { display: flex; flex-direction: column; gap: 15px; }

.event-game-title {
    color: #fff;
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    font-family: "Kaufland", Sans-serif;
}

.event-action-btn {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-family: "Kaufland", Sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.event-action-btn:hover {
    background-color: #F91C2D !important;
    color: #ffffff !important;
}

.descriere-limitata {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .custom-events-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 10px;
        gap: 15px;
    }
    .event-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        height: 380px;
    }
    .custom-events-grid::-webkit-scrollbar { display: none; }
}

/* =======================================
   STILURI PENTRU ELEMENTOR WIDGETS NOI
======================================= */

.ece-info-widget-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: "Kaufland", Sans-serif;
    flex-wrap: wrap; /* Pentru ecrane foarte mici */
}
.ece-info-game {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}
.ece-info-pill {
    background-color: #5c5c70; 
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
}
.ece-pill-live {
    background-color: #F91C2D;
    animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(249, 28, 45, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(249, 28, 45, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 28, 45, 0); }
}

.ece-countdown-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: "Kaufland", Sans-serif;
    flex-wrap: wrap;
}
.ece-cd-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.ece-cd-num {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}
.ece-cd-label {
    color: #8c8c9e; 
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

/* REGLAJE DEFAULT PENTRU MOBILE */
@media (max-width: 767px) {
    .ece-info-widget-container {
        gap: 10px;
    }
    .ece-countdown-container {
        gap: 10px;
    }
    .ece-cd-item {
        gap: 4px;
    }
}

/* =======================================
   UTILITIES PENTRU PRESCURTARI MOBILE
======================================= */
.ece-mobile-text { display: none; }
.ece-desktop-text { display: inline; }

@media (max-width: 767px) {
    .ece-mobile-text { display: inline; }
    .ece-desktop-text { display: none; }
}
