﻿/* Container for the whole diagram */
.diagram-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    font-family: 'Inter', sans-serif; /* Or your preferred font */
    color: white;
}

/* The Grid Layout */
.diagram-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    align-items: center;
    justify-items: center;
    text-align: center;
}

/* Common Card Styling */
.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2; /* Sits above arrows */
    max-width: 220px;
}

/* Icons */
.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: hsl(var(--enterprise-green));
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.node:hover .icon-box {
    transform: translateY(-5px);
    border-color: #10a37f; /* Enterprise Green highlight */
    color: #10a37f;
}

/* Text Styling */
.node h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.node p {
    font-size: 0.85rem;
    color: #9ca3af; /* Gray-400 */
    line-height: 1.4;
    margin: 0;
}

/* THE CENTRAL HUB */
.center-hub {
    position: relative;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, #1e293b, #0f172a);
    border: 2px solid hsl(var(--enterprise-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    z-index: 10;
}

/* ARROWS (The tricky part) */
/* We use absolute positioning relative to the grid container to draw lines */
.connector {
    position: absolute;
    background: #475569;
    z-index: 0;
    opacity: 0.5;
}

/* Arrow Labels */
.connector-label {
    position: absolute;
    background: #000; /* Dark background to hide line behind text */
    padding: 4px 8px;
    font-size: 12px;
    color: #cbd5e1;
    border-radius: 4px;
    white-space: nowrap;
}

/* Specific Connector Positions (Manual tuning for the visual) */

/* Center to Top */
.line-top {
    width: 2px;
    height: 110px;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
}

.label-top {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    display:none;
}

/* Center to Bottom */
.line-bottom {
    width: 2px;
    height: 157px;
    bottom: 33%;
    left: 50%;
    transform: translateX(-50%);
}

.label-bottom {
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    display:none;
}

/* Center to Top-Left */
.line-top-left {
    width: 140px;
    height: 2px;
    top: 35%;
    left: 23%;
    transform: rotate(50deg);
}

.label-left {
    top: 33%;
    left: 11%;
    display:none;
}
/* Center to Top-Right */
.line-top-right {
    width: 127px;
    height: 2px;
    top: 32%;
    right: 20%;
    transform: rotate(-50deg);
}

.label-right {
    top: 33%;
    right: 9%;
    display:none;
}

/* Center to Bottom-Left */
.line-bottom-left {
    width: 140px;
    height: 2px;
    bottom: 41%;
    left: 20%;
    transform: rotate(-52deg);
}

.label-b-left {
    bottom: 40%;
    left: 18%;
    display:none;
}

/* Center to Bottom-Right */
.line-bottom-right {
    width: 150px;
    height: 2px;
    bottom: 41%;
    right: 18%;
    transform: rotate(54deg);
}

.label-b-right {
    bottom: 40%;
    right: 28%;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .diagram-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 40px;
    }
    /* Hide complex lines on mobile for cleaner look */
    .connector, .connector-label {
        display: none;
    }

    /* Re-order center to top on mobile */
    .center-cell {
        grid-row: 1;
    }
}



