/* Documentation Architecture Map Styles */

.doc-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.doc-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    z-index: 2;
    width: 100%;
}

.doc-split {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
}

@media (max-width: 800px) {
    .doc-split {
        flex-direction: column;
        align-items: center;
    }
}

/* Base Card Node */
.doc-card-node {
    background: var(--card-bg);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 8px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card-node:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 12px 40px rgba(0,0,0,0.3);
}

.doc-split .doc-card-node {
    max-width: 480px;
}

/* Card Content Styling */
.doc-card-node h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.doc-card-node p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.doc-tech-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Permanent Color Coding Accents (Top Borders) */
.node-frontend {
    border-top: 4px solid var(--accent-blue);
}

.node-core {
    border-top: 4px solid #9C27B0; /* Violet */
}

.node-cloud {
    border-top: 4px solid #FFA611; /* Orange */
}

.node-ai {
    border-top: 4px solid #10b981; /* Emerald Green */
}

/* Color Legend */
.doc-legend {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
}

.doc-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--nav-border);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.legend-frontend { background: var(--accent-blue); }
.legend-core { background: #9C27B0; }
.legend-cloud { background: #FFA611; }
.legend-ai { background: #10b981; }

/* SVG Connecting Lines */
.doc-line-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15); /* Neutral visible line */
    stroke-width: 3;
    stroke-dasharray: 8 8;
    animation: staticFlow 30s linear infinite;
}

@keyframes staticFlow {
    to { stroke-dashoffset: -1000; }
}
