/* ==========================================
   GHOST CES KNOWLEDGE GRAPH
   Odonto-inspired UI
   ========================================== */

:root {

    --ghost-bg: #071424;
    --ghost-bg-2: #0b1f34;

    --ghost-card: #0f2238;
    --ghost-card-hover: #142d49;

    --ghost-primary: #22d3ee;
    --ghost-secondary: #14b8a6;

    --ghost-text: #ffffff;
    --ghost-text-soft: #cbd5e1;

    --ghost-border: rgba(255,255,255,.08);

    --ghost-success: #5eead4;
    --ghost-practitioner: #67e8f9;
    --ghost-service: #93c5fd;
}

/* ==========================================
   PAGE
   ========================================== */

.ghost-kg {

    color: var(--ghost-text);

    background:
        radial-gradient(
            circle at center,
            rgba(34,211,238,.18),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            var(--ghost-bg),
            var(--ghost-bg-2)
        );

    padding: 30px;

    border-radius: 24px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

.ghost-kg h1,
.ghost-kg h2,
.ghost-kg h3 {

    color: white;

    margin-top: 0;

    font-weight: 700;
}

.ghost-kg h2 {

    font-size: 2rem;

    margin-bottom: 20px;
}

.ghost-kg h3 {

    color: var(--ghost-primary);

    margin-bottom: 10px;
}

.ghost-kg p {

    color: var(--ghost-text-soft);

    line-height: 1.7;
}

/* ==========================================
   HERO PANEL
   ========================================== */

.graph-hero {

    background:
        linear-gradient(
            135deg,
            rgba(34,211,238,.08),
            rgba(20,184,166,.08)
        );

    border:
        1px solid var(--ghost-border);

    border-radius: 24px;

    padding: 30px;

    margin-bottom: 30px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);
}

.graph-hero h1 {

    font-size: 3rem;

    line-height: 1.1;

    margin-bottom: 10px;
}

/* ==========================================
   STATS
   ========================================== */

.graph-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;
}

.graph-stat {

    background:
        rgba(255,255,255,.04);

    border:
        1px solid var(--ghost-border);

    border-radius: 14px;

    padding: 15px 20px;

    min-width: 140px;
}

.graph-stat-number {

    display: block;

    font-size: 1.8rem;

    color: var(--ghost-primary);

    font-weight: 700;
}

.graph-stat-label {

    color: var(--ghost-text-soft);

    font-size: .85rem;
}

/* ==========================================
   ENTITY CARD
   ========================================== */

.entity-card {

    background:
        var(--ghost-card);

    border:
        1px solid var(--ghost-border);

    border-radius: 20px;

    padding: 28px;

    margin-bottom: 30px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.20);

    transition: all .2s ease;
}

.entity-card:hover {

    background:
        var(--ghost-card-hover);

    transform:
        translateY(-2px);
}

.entity-title {

    color: white;

    font-size: 2rem;

    margin-bottom: 12px;
}

/* ==========================================
   BADGES
   ========================================== */

.badge {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: .8rem;

    font-weight: 600;

    margin-right: 8px;

    margin-bottom: 8px;
}

.badge-clinic {

    background:
        rgba(20,184,166,.15);

    color:
        var(--ghost-success);
}

.badge-practitioner {

    background:
        rgba(34,211,238,.15);

    color:
        var(--ghost-practitioner);
}

.badge-service {

    background:
        rgba(59,130,246,.15);

    color:
        var(--ghost-service);
}

/* ==========================================
   TABLES
   ========================================== */

.ghost-kg table {

    width: 100%;

    border-collapse: collapse;

    background:
        rgba(255,255,255,.02);

    border-radius: 12px;

    overflow: hidden;
}

.ghost-kg th {

    background:
        #081625;

    color:
        var(--ghost-primary);

    text-transform: uppercase;

    font-size: .85rem;

    letter-spacing: .05em;

    padding: 14px;

    text-align: left;
}

.ghost-kg td {

    padding: 14px;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    vertical-align: top;
}

.ghost-kg tr:hover {

    background:
        rgba(255,255,255,.03);
}

/* ==========================================
   LINKS
   ========================================== */

.ghost-kg a {

    color:
        var(--ghost-primary);

    text-decoration: none;
}

.ghost-kg a:hover {

    color:
        white;
}

/* ==========================================
   FAQ ACCORDIONS
   ========================================== */

.ghost-kg details {

    background:
        rgba(255,255,255,.03);

    border:
        1px solid var(--ghost-border);

    border-radius:
        12px;

    margin-bottom:
        10px;

    overflow:
        hidden;
}

.ghost-kg summary {

    padding:
        15px;

    cursor:
        pointer;

    color:
        white;

    font-weight:
        600;
}

.ghost-kg details[open] summary {

    border-bottom:
        1px solid var(--ghost-border);

    background:
        rgba(255,255,255,.03);
}

.ghost-kg details div {

    padding:
        16px;

    color:
        var(--ghost-text-soft);

    line-height:
        1.7;
}

/* ==========================================
   RELATIONSHIP PILLS
   ========================================== */

.relationship-pill {

    display:
        inline-block;

    background:
        rgba(34,211,238,.12);

    color:
        var(--ghost-primary);

    padding:
        4px 12px;

    border-radius:
        999px;

    font-size:
        .8rem;

    font-weight:
        600;
}

/* ==========================================
   IMAGES
   ========================================== */

.entity-image {

    max-width:
        320px;

    width:
        100%;

    border-radius:
        16px;

    display:
        block;

    margin:
        10px 0;

    box-shadow:
        0 10px 35px rgba(0,0,0,.35);
}

/* ==========================================
   CONTENT NAVIGATION
   ========================================== */

.graph-nav {

    background:
        rgba(255,255,255,.03);

    border:
        1px solid var(--ghost-border);

    border-radius:
        18px;

    padding:
        20px;

    margin-bottom:
        25px;
}

.graph-nav ul {

    list-style:
        none;

    padding:
        0;

    margin:
        0;
}

.graph-nav li {

    margin:
        10px 0;
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {

    .ghost-kg {

        padding: 15px;
    }

    .graph-hero h1 {

        font-size: 2rem;
    }

    .graph-stats {

        flex-direction: column;
    }

    .entity-title {

        font-size: 1.6rem;
    }

    .ghost-kg table {

        display: block;

        overflow-x: auto;
    }
}