﻿.anchor-badge {
    margin: 10px 10px;
}

/* ═══════════════════════════════════════════════
   issuer-profile.css  —  C-BOX Public Profile
   ═══════════════════════════════════════════════ */

/* ── reset scope ── */


.ip-wrap * {
    box-sizing: border-box;
    padding: 0;
}

/* ── page wrapper ── */
.ip-wrap {
    max-width: 860px;
    margin: 56px auto 120px;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.ip-hero {
    background: #fff;
    border: 1px solid #e8e8e6;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
}

/* banner: colore piatto, e' quello che vedono tutti i tenant */
.ip-hero-banner {
    height: 96px;
    background: #F1F4FB;
    position: relative;
    overflow: hidden;
}

/* banner decorativo brandizzato C-Box: solo sul tenant principale.
   La classe --cbox la mette Views/Companies/Profile.cshtml quando TenantSlug e' "CBox". */
.ip-hero-banner--cbox {
    background: #f4f4f2 url('../../images/companybanner.png') center / cover no-repeat;
}

    .ip-hero-banner--cbox::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 20% 50%, rgba(37,99,235,0.18) 0%, transparent 50%), radial-gradient(circle at 80% 30%, rgba(37,99,235,0.10) 0%, transparent 40%);
    }

    /* griglia di punti */
    .ip-hero-banner--cbox::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
        background-size: 20px 20px;
    }

/* ── logo ── */
.ip-hero-body {
    padding: 0 36px 36px;
    position: relative;
}

.ip-logo-wrap {
    display: inline-flex;
    margin-top: -36px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

    .ip-logo-wrap img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        border-radius: 16px;
        border: 3px solid #fff;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.10);
        display: block;
    }

/* ── name + description ── */
.ip-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a18;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.ip-description {
    font-size: 14px;
    color: #6B6B68;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 24px;
}

/* ── chips contatti ── */
.ip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f4f4f2;
    border: 1px solid #e8e8e6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #3a3a38;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

    .ip-chip:hover {
        background: #eaeae8;
        border-color: #d0d0ce;
        color: #1a1a18;
    }

    .ip-chip i {
        font-size: 13px;
        color: #A8A8A4;
        flex-shrink: 0;
    }

/* ── divider ── */
.ip-hero-divider {
    border: none;
    border-top: 1px solid #f0f0ee;
    margin: 0 0 20px;
}

/* ── social row ── */
.ip-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ip-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e8e8e6;
    background: #fafaf9;
    color: #4a4a48;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
}

    .ip-social-btn:hover {
        background: #1a1a18;
        border-color: #1a1a18;
        color: #fff;
    }

    .ip-social-btn.ip-copy-btn {
        width: auto;
        padding: 0 12px;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
    }

.ip-copy-confirm {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    padding: 0 8px;
}

/* ═══════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════ */

.ip-search-wrap {
    position: relative;
    margin-bottom: 32px;
}

    .ip-search-wrap i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #A8A8A4;
        pointer-events: none;
    }

.ip-search {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid #e0e0de;
    border-radius: 12px;
    font-size: 14px;
    color: #1a1a18;
    background: #fafaf9;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .ip-search:focus {
        border-color: #2563EB;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
        background: #fff;
    }

    .ip-search::placeholder {
        color: #C0C0BC;
    }

/* ═══════════════════════════════════════════════
   BADGES AREA
   ═══════════════════════════════════════════════ */

.ip-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #A8A8A4;
    margin-bottom: 16px;
}

#badgesShowcase {
    min-height: 120px;
}

/* empty state */
.ip-empty {
    text-align: center;
    padding: 64px 24px;
    color: #A8A8A4;
    font-size: 13px;
    border: 1px dashed #e0e0de;
    border-radius: 14px;
}

    .ip-empty i {
        font-size: 32px;
        margin-bottom: 12px;
        display: block;
        opacity: 0.4;
    }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 600px) {
    .ip-hero-body {
        padding: 0 20px 28px;
    }

    .ip-name {
        font-size: 20px;
    }

    .ip-logo-wrap img {
        width: 64px;
        height: 64px;
    }

    .ip-logo-wrap {
        margin-top: -28px;
    }

    .ip-chips {
        gap: 6px;
    }

    .ip-chip {
        font-size: 11px;
    }
}
