/**
 * assets/css/partners.css
 * Stiluri pentru /parteneri, /parteneri/{slug} și home slot
 * v2 — fix home slot: tile constrained, nu se întinde
 */

/* ─── Hero ──────────────────────────────────────────── */
.partners-hero {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #fff;
    padding: 30px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.partners-hero h1 {
    color: #fff;
    margin: 0;
    font-size: 28px;
}
.partners-hero p {
    color: rgba(255, 255, 255, 0.82);
}

/* ─── Filtre ────────────────────────────────────────── */
.partners-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ─── Grid parteneri /parteneri ─────────────────────── */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.partner-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 27, 42, .12);
    text-decoration: none;
    color: inherit;
}
.partner-card-banner {
    height: 100px;
    background: linear-gradient(135deg, #415a77, #1b263b);
    background-size: cover;
    background-position: center;
    position: relative;
}
.partner-badge-verified {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffb703;
    color: #0d1b2a;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.partner-card-body {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}
.partner-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
    object-fit: cover;
    flex-shrink: 0;
}
.partner-card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    font-size: 24px;
}
.partner-card-name {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}
.partner-card-desc {
    padding: 0 14px 14px;
}

/* ─── CTA ───────────────────────────────────────────── */
.partners-cta {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}
.partners-cta h4 {
    color: #0d1b2a;
    margin-bottom: 8px;
}

/* ─── Pagină individuală ────────────────────────────── */
.partner-detail {
    max-width: 900px;
    margin: 0 auto;
}
.partner-banner {
    height: 260px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #415a77, #0d1b2a);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-banner-placeholder {
    font-size: 96px;
    opacity: 0.5;
    color: #fff;
}
.partner-header {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.partner-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    margin-top: -60px;
    background: #fff;
    flex-shrink: 0;
}
.partner-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    font-size: 40px;
}
.partner-name {
    margin: 0 0 4px;
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.partner-verified-badge {
    background: #ffb703;
    color: #0d1b2a;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.partner-type {
    font-size: 15px;
}
.partner-description {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    line-height: 1.65;
}

/* ─── Socials ───────────────────────────────────────── */
.partner-socials {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.partner-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.partner-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #0d1b2a;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background .15s, border-color .15s;
}
.partner-social-link:hover {
    background: #eef2f7;
    color: #0d1b2a;
    text-decoration: none;
}
.partner-social-facebook  { border-color: #1877f2; }
.partner-social-instagram { border-color: #e4405f; }
.partner-social-youtube   { border-color: #ff0000; }
.partner-social-tiktok    { border-color: #000; }
.partner-social-globe     { border-color: #6c757d; }
.partner-social-icon {
    font-weight: bold;
    font-size: 16px;
}

/* ─── Sections ──────────────────────────────────────── */
.partner-section {
    margin-bottom: 32px;
}
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffb703;
    display: inline-block;
}

/* ─── Listings grid pe pagina partener ──────────────── */
.partner-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.partner-listing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
}
.partner-listing-card:hover {
    border-color: #ffb703;
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.partner-listing-photo {
    aspect-ratio: 4/3;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.partner-listing-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.partner-listing-photo-placeholder {
    font-size: 32px;
    opacity: 0.4;
}
.partner-listing-body {
    padding: 10px;
}
.partner-listing-title {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.partner-listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.partner-listing-price {
    font-weight: 700;
    color: #0d1b2a;
}

/* ─── Home slot: parteneri featured ─────────────────── */
/* FIX: constrângem lățimea coloanelor și tile-urilor
   ca să nu se întindă când e un singur partener */
.home-partners {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 32px 0;
}
.home-partners-grid {
    display: grid;
    /* max 180px pe tile — nu se întinde chiar și cu 1 element */
    grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
    gap: 12px;
    justify-content: start;
}
.home-partner-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.home-partner-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 27, 42, .1);
    border-color: #ffb703;
    color: inherit;
    text-decoration: none;
}
/* Forțăm dimensiunea logo-ului, nu 100% width */
.home-partner-tile img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px;
    max-height: 56px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
    background: #eef2f7;
}
.home-partner-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    font-size: 22px;
    margin-bottom: 8px;
}
.home-partner-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #0d1b2a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    word-break: break-word;
}
.home-partner-verified {
    color: #ffb703;
    margin-left: 3px;
    display: inline-block;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .partner-header {
        flex-direction: column;
        text-align: center;
    }
    .partner-logo {
        margin-top: -70px;
    }
    .partner-banner {
        height: 180px;
    }
    .partner-name {
        justify-content: center;
    }
    /* Pe mobil, tile-urile pot fi mai mici */
    .home-partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 150px));
        gap: 10px;
    }
}