/* =============================================================================
   BonTrip — listarea publica a evenimentelor (/{lang}/evenimente si /arhiva)

   Acelasi limbaj vizual ca listarea ghidurilor (guides-list.css): #FFBE00
   accente, #f8fafb carduri, #475467 text secundar, #16a34a verde. Ce e in plus
   tine de eveniment: comutatorul viitoare/arhiva, data de pe imagine si randul
   cu perioada si locul.
   ========================================================================== */

.ev-section {
    padding: 60px 20px 90px;
    background: #ffffff;
}
.ev-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Antet ---------- */
.ev-header { text-align: center; margin-bottom: 28px; }
.ev-label {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475467;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 16px;
}
.ev-header h1 {
    font-size: 36px;
    line-height: 1.15;
    color: #101828;
    margin: 0 0 12px;
}
.ev-header p {
    font-size: 16px;
    line-height: 1.7;
    color: #475467;
    margin: 0 auto;
    max-width: 620px;
}

/* ---------- Comutator viitoare / arhiva ---------- */
.ev-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 34px;
    padding: 5px;
    background: #f8fafb;
    border-radius: 999px;
    width: fit-content;
}
.ev-switch-item {
    padding: 9px 20px;
    border-radius: 999px;
    color: #475467;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.ev-switch-item:hover { color: #16a34a; }
.ev-switch-item.is-current {
    background: #fff;
    color: #101828;
    box-shadow: 0 2px 8px rgba(16,24,40,.08);
}

.ev-count {
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* ---------- Grila ---------- */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

.ev-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ev-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
    border-color: transparent;
}

/* Cardurile din arhiva stau mai retras; la hover revin la culoare, ca sa se
   vada ca sunt tot link-uri. */
.ev-card.is-past .ev-card-image img { filter: grayscale(.45); }
.ev-card.is-past:hover .ev-card-image img { filter: none; }

.ev-card-image {
    position: relative;
    height: 185px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    overflow: hidden;
}
.ev-card-image img {
   /* width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .3s ease;*/
	 width: auto;
    max-width: 62%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    padding: 18px;
}

/* ---------- Poza imprumutata de la categorie ----------
   Nu e o fotografie, ci pictograma categoriei (ico-{cod}.png). Intinsa cu
   `cover` ar fi marita si taiata; aici se incadreaza intreaga, pana la cel
   mult toata inaltimea cutiei. */
.ev-card-image.is-category {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.ev-card-image.is-category img {
    width: auto;
    max-width: 62%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    padding: 18px;
}
/* Fotografiile se apropie la hover; o pictograma marita ar arata neclar. */
.ev-card:hover .ev-card-image.is-category img {
    transform: none;
}
.ev-card:hover .ev-card-image img { transform: scale(1.06); }

.ev-card-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 38px;
    color: #cbd5e1;
}

/* Ziua si luna, peste imagine */
.ev-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 14px rgba(16,24,40,.14);
    line-height: 1;
}
.ev-date-day {
    font-size: 20px;
    font-weight: 800;
    color: #101828;
}
.ev-date-month {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #16a34a;
}

.ev-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,190,0,.95);
    color: #3d2f00;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .02em;
}

/* ---------- Continut card ---------- */
.ev-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 20px;
}

.ev-card-when,
.ev-card-where {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475467;
    margin-bottom: 8px;
}
.ev-card-when i { color: #16a34a; font-size: 11px; }
.ev-card-where i { color: #94a3b8; font-size: 11px; }

.ev-card-body h2 {
    font-size: 19px;
    line-height: 1.3;
    color: #101828;
    margin: 4px 0 10px;
}
.ev-card-body p {
    font-size: 14px;
    line-height: 1.65;
    color: #475467;
    margin: 0 0 16px;
}

.ev-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}
.ev-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    color: #475467;
    white-space: nowrap;
}
.ev-chip i { font-size: 10px; opacity: .8; }

.ev-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.ev-more {
    font-size: 13.5px;
    font-weight: 700;
    color: #16a34a;
}

/* ---------- Stare goala ---------- */
.ev-empty {
    text-align: center;
    padding: 70px 24px;
    background: #f8fafb;
    border-radius: 24px;
}
.ev-empty i { font-size: 38px; color: #cbd5e1; display: block; margin-bottom: 16px; }
.ev-empty p { font-size: 15.5px; color: #475467; margin: 0 0 22px; }

.ev-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ev-btn:hover {
    box-shadow: 0 10px 24px rgba(22,163,74,.28);
    color: #fff;
}

/* ---------- Paginare ---------- */
.ev-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.ev-page {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafb;
    border: 1px solid transparent;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ev-page:hover { background: #fff; border-color: #16a34a; color: #16a34a; }
.ev-page.is-current {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    cursor: default;
}
.ev-page--nav { font-size: 12px; }
.ev-ellipsis { color: #cbd5e1; padding: 0 3px; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
    .ev-section { padding: 36px 16px 64px; }
    .ev-header h1 { font-size: 27px; }
    .ev-header p { font-size: 15px; }
    .ev-switch { width: 100%; }
    .ev-switch-item { flex: 1; text-align: center; padding: 9px 12px; }
    .ev-grid { grid-template-columns: 1fr; gap: 20px; }
    .ev-card-image { height: 165px; }
    .ev-card-body { padding: 18px 20px 16px; }
}
