/**
 * BCI AI Engine — Public Profile CSS
 * Brand: Gold #BC8E50, Navy #13255B, Cream background
 */

.bci-public-profile {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1A1A1A;
    line-height: 1.6;
    background: #FBF8F1;
    min-height: 60vh;
}

.bci-pp-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================================================
   HERO
   ======================================================================== */

.bci-pp-hero {
    background: linear-gradient(135deg, #13255B 0%, #1f3878 100%);
    color: #fff;
    padding: 60px 0 50px;
    margin-bottom: 40px;
}

.bci-pp-hero .bci-pp-container {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.bci-pp-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #BC8E50;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.bci-pp-logo {
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    object-fit: contain;
}

.bci-pp-hero-text {
    flex: 1;
    min-width: 280px;
}

.bci-pp-hero h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #fff;
}

.bci-pp-qualifica {
    font-size: 18px;
    font-weight: 500;
    color: #BC8E50;
    margin: 0 0 8px;
}

.bci-pp-azienda {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 8px;
}

.bci-pp-luogo {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 12px;
}

.bci-pp-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0 0;
}

.bci-pp-status--available {
    background: rgba(0, 143, 57, 0.2);
    color: #aef0c2;
    border: 1px solid #008F39;
}
.bci-pp-status--limited {
    background: rgba(255, 165, 0, 0.2);
    color: #ffd99b;
    border: 1px solid #ffa500;
}
.bci-pp-status--booked,
.bci-pp-status--paused {
    background: rgba(120, 120, 120, 0.2);
    color: #ccc;
    border: 1px solid #888;
}

/* ========================================================================
   BODY SECTIONS
   ======================================================================== */

.bci-pp-body {
    padding-bottom: 60px;
}

.bci-pp-section {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-left: 3px solid #BC8E50;
}

.bci-pp-section h2 {
    color: #13255B;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.bci-pp-section h3 {
    color: #13255B;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
}

.bci-pp-section p {
    margin: 0 0 12px;
    color: #333;
}

.bci-pp-bio-breve {
    font-size: 18px;
    line-height: 1.55;
    color: #1A1A1A;
    font-weight: 500;
}

.bci-pp-bio-completa {
    font-size: 15px;
    color: #444;
}

.bci-pp-bio-completa p {
    margin: 0 0 14px;
}

/* ========================================================================
   CERCA / OFFRO
   ======================================================================== */

.bci-pp-cerca-offro {
    background: transparent;
    box-shadow: none;
    border-left: none;
    padding: 0;
}

.bci-pp-co-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.bci-pp-co-block {
    background: #fff;
    padding: 24px 28px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.bci-pp-co-block--cerca {
    border-top: 4px solid #008F39;
}

.bci-pp-co-block--offro {
    border-top: 4px solid #BC8E50;
}

.bci-pp-co-block h3 {
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.bci-pp-co-block--cerca h3 { color: #008F39; }
.bci-pp-co-block--offro h3 { color: #BC8E50; }

.bci-pp-co-block p {
    font-size: 16px;
    line-height: 1.55;
    color: #1A1A1A;
}

/* ========================================================================
   CONTENT
   ======================================================================== */

.bci-pp-content {
    font-size: 15px;
    color: #333;
}

.bci-pp-content h2 {
    font-size: 20px;
    color: #13255B;
    margin-top: 24px;
}

.bci-pp-content h3 {
    font-size: 17px;
    color: #13255B;
    margin-top: 18px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.bci-pp-footer {
    background: #fff;
    padding: 24px 32px;
    border-radius: 8px;
    margin-top: 32px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.bci-pp-membership {
    color: #555;
    font-size: 14px;
    margin: 0;
}

.bci-pp-membership a {
    color: #13255B;
    font-weight: 600;
    text-decoration: none;
}

.bci-pp-membership a:hover {
    color: #BC8E50;
}

.bci-pp-edit-cta {
    margin: 16px 0 0;
}

.bci-pp-button {
    display: inline-block;
    padding: 10px 24px;
    background: #BC8E50;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.bci-pp-button:hover {
    background: #a37b43;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 720px) {
    .bci-pp-hero {
        padding: 40px 0 32px;
    }
    .bci-pp-hero .bci-pp-container {
        flex-direction: column;
        text-align: center;
    }
    .bci-pp-avatar {
        width: 110px;
        height: 110px;
    }
    .bci-pp-hero h1 {
        font-size: 30px;
    }
    .bci-pp-section {
        padding: 22px 20px;
    }
    .bci-pp-co-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   CONTEXT BANNER (URL annidato /azienda/[a]/[m]/)
   ======================================================================== */

.bci-pp-context-banner {
    background: #f0f6ff !important;
    border-left: 4px solid #13255B !important;
    padding: 14px 20px !important;
}

/* ========================================================================
   AZIENDE LIST (sul profilo membro)
   ======================================================================== */

.bci-pp-aziende-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bci-pp-aziende-list li {
    padding: 12px 14px;
    border-left: 3px solid #ddd;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
}

.bci-pp-aziende-list li.is-primary {
    border-left-color: #BC8E50;
    background: #FBF8F1;
}

.bci-pp-aziende-list li a {
    color: #13255B;
    text-decoration: none;
    font-weight: 600;
}

.bci-pp-aziende-list li a:hover {
    color: #BC8E50;
}

.bci-pp-ruolo {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: #555;
    font-style: italic;
}

.bci-badge-primary {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #BC8E50;
    color: #fff;
    border-radius: 3px;
}

/* ========================================================================
   MEMBRI GRID (sulla pagina azienda)
   ======================================================================== */

.bci-pp-membri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.bci-pp-membro-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.15s;
    border: 1px solid #eee;
}

.bci-pp-membro-card:hover {
    background: #FBF8F1;
    border-color: #BC8E50;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.bci-pp-membro-card.is-primary {
    border-color: #BC8E50;
    border-width: 2px;
}

.bci-pp-membro-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bci-pp-membro-info {
    flex: 1;
    min-width: 0;
}

.bci-pp-membro-name {
    font-weight: 600;
    color: #13255B;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bci-pp-membro-ruolo {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    font-style: italic;
}
