/* ==========================================================================
   Kubernetes Showcase Page Styles
   ========================================================================== */

/* Architecture Diagram */
.k8s-diagram {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.k8s-layer {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0.5rem 0;
    position: relative;
}

.k8s-layer-label {
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    background: #fff;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.k8s-external {
    border-color: #b8b8d0;
}

.k8s-cluster {
    border-color: #6c63ff;
    background: rgba(108, 99, 255, 0.02);
}

.k8s-box {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.25rem;
}

.k8s-detail {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    margin-top: 0.25rem;
}

.k8s-client {
    background: #f0f0f5;
    border: 1px solid #ccc;
    color: #1a1a2e;
}

.k8s-ingress-box {
    background: #e8e6ff;
    border: 1px solid #6c63ff;
    color: #1a1a2e;
}

.k8s-service-box {
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #1a1a2e;
}

.k8s-pod {
    background: #fff3e0;
    border: 1px solid #fb8c00;
    color: #1a1a2e;
}

.k8s-pod-scaled {
    opacity: 0.5;
    border-style: dashed;
}

.k8s-config {
    background: #e3f2fd;
    border: 1px solid #1976d2;
    color: #1a1a2e;
}

.k8s-secret {
    background: #fce4ec;
    border: 1px solid #e53935;
    color: #1a1a2e;
}

.k8s-hpa-box {
    background: #f3e5f5;
    border: 1px solid #8e24aa;
    color: #1a1a2e;
}

.k8s-arrow {
    font-size: 1.5rem;
    color: #888;
    margin: 0.25rem 0;
}

.k8s-arrow-inner {
    font-size: 1.2rem;
    color: #aaa;
    margin: 0.5rem 0;
}

.k8s-pods-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.k8s-side-resources {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Code Snippets */
.k8s-snippet {
    background: #1a1a2e;
    color: #e8e8e8;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    overflow-x: auto;
    margin-top: 0.75rem;
    text-align: left;
    line-height: 1.5;
}

/* How to Run Steps */
.k8s-steps {
    max-width: 700px;
}

.k8s-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.k8s-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #6c63ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.1rem;
}

.k8s-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.k8s-step-content p {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Skills Grid */
.k8s-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.k8s-skill {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.k8s-skill strong {
    display: block;
    color: #fff;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.k8s-skill p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Inline code in cards */
.card code {
    background: #f0f0f5;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .k8s-pods-row {
        flex-direction: column;
        align-items: center;
    }

    .k8s-side-resources {
        flex-direction: column;
        align-items: center;
    }

    .k8s-skills-grid {
        grid-template-columns: 1fr;
    }

    .k8s-step {
        gap: 1rem;
    }
}
