/* =============================================================================
   CARDUL DE ORGANIZATOR — unul singur pentru tot site-ul
   (partial: partials/provider_card.php)

   Aceleasi reguli ca la cardul de activitate: nu-si alege latimea, o ia de la
   grila din jur, iar inaltimea o da randul — de aceea `height: auto` si
   `align-self: stretch`, nu `height: 100%`, care ar opri intinderea intr-un
   container flex.
   ========================================================================== */

.pc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
    background: #fff;
    border: 1px solid #eef2f4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(16, 34, 24, .07);
    transition: box-shadow .25s ease, transform .25s ease;
}
.pc-card:hover {
    box-shadow: 0 18px 40px rgba(16, 34, 24, .12);
    transform: translateY(-4px);
}

/* ---------- Imaginea ---------- */
.pc-media {
    position: relative;
    aspect-ratio: 16 / 9;        /* banda de header, mai lata decat la activitati */
    background: #eef3f1;
    overflow: hidden;
}
.pc-media-link { display: block; width: 100%; height: 100%; }
.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.pc-card:hover .pc-media img { transform: scale(1.05); }

.pc-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b8c7c1;
    font-size: 28px;
}

/* Insignele, amandoua in stanga */
.pc-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pc-badge {
    padding: 5px 12px;
    border-radius: 30px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}
.pc-badge--verified { background: #00991A; }
.pc-badge--premium  { background: linear-gradient(135deg, #FFBE00, #FF7F00); }

/* ---------- Continutul ---------- */
.pc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 9px;
    padding: 16px 18px 18px;
}

.pc-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.32;
    color: #17252b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-name a { color: inherit; text-decoration: none; }
.pc-name a:hover { color: #00991a; }

.pc-sub {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #667085;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Categoriile: un singur rand. `flex-wrap: nowrap` cu `overflow: hidden` taie
   ce nu incape — un organizator cu zece categorii nu trebuie sa faca un card
   de doua ori mai inalt decat vecinii lui. */
.pc-cats {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}
.pc-cat {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 30px;
    background: color-mix(in srgb, var(--pc-cat, #00991a) 12%, transparent);
    color: var(--pc-cat, #00991a);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.3;
    white-space: nowrap;
}

.pc-place {
    margin: 0;
    font-size: 12.5px;
    color: #8a9aa3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Randul de jos ---------- */
.pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f3f2;
}

.pc-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #17252b;
}
.pc-rating .stars { font-size: 12px; color: #ffb400; }
.pc-rating strong { font-weight: 800; }
/* Fara nota, locul ramane gol ca numarul de activitati sa stea tot in dreapta */
.pc-rating--none { flex: 1; }

.pc-count {
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #00991a;
    text-decoration: none;
    white-space: nowrap;
}
.pc-count:hover { color: #007714; text-decoration: underline; }

@media (max-width: 600px) {
    .pc-body { padding: 14px 15px 16px; }
    .pc-name { font-size: 16px; }
}
