/* ══════════════════════════════════════
   SANDBOX MALWARES — REMnux & FlareVM
   Styles spécifiques à la page de documentation
══════════════════════════════════════ */

/* ── Hero ──────────────────────────── */
.sandbox-hero {
    background: linear-gradient(150deg, #1a0a2e 0%, #0f172a 55%, #1c0a0a 100%);
    padding: 6rem 2rem 4.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sandbox-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 60%, rgba(220, 38, 38, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(37, 99, 235, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.sandbox-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.sandbox-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color 0.2s;
}

.sandbox-breadcrumb:hover {
    color: rgba(255, 255, 255, 0.9);
}

.sandbox-breadcrumb svg {
    width: 14px;
    height: 14px;
}

.sandbox-hero-tag {
    display: inline-block;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.sandbox-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.sandbox-hero h1 .hero-gradient {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sandbox-hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.sandbox-hero-sub strong {
    color: rgba(255, 255, 255, 0.95);
}

.sandbox-hero-badges {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sandbox-hero-badges span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ── Container ──────────────────────── */
.sandbox-container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sandbox-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sandbox-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.sandbox-section-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.7;
}

/* ── Distro grid ────────────────────── */
.distro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

/* ── Distro card ────────────────────── */
.distro-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s, box-shadow 0.25s;
}

.distro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Logo banner */
.distro-card__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    color: white;
}

.distro-card__logo--remnux {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}

.distro-card__logo--flarevm {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}

.distro-card__logo svg {
    width: 54px;
    height: 54px;
    color: rgba(255, 255, 255, 0.88);
}

.distro-logo-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
}

/* Body */
.distro-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tags */
.distro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.distro-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.distro-tag--linux {
    background: rgba(5, 150, 105, 0.1);
    color: #065f46;
    border-color: rgba(5, 150, 105, 0.3);
}

.distro-tag--windows {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .distro-tag--linux {
    color: #34d399;
    background: rgba(5, 150, 105, 0.15);
}

[data-theme="dark"] .distro-tag--windows {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.15);
}

/* Info blocks (Basé sur / À quoi ça sert / Pourquoi) */
.distro-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.distro-info-block {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--border-color);
}

.distro-card--remnux .distro-info-block {
    border-left-color: #059669;
}

.distro-card--flarevm .distro-info-block {
    border-left-color: #dc2626;
}

.distro-info-block h4 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-primary);
    margin: 0 0 0.45rem;
}

.distro-info-block h4 svg {
    width: 13px;
    height: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.distro-info-block p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.distro-info-block p strong {
    color: var(--text-primary);
}

/* Tools list */
.distro-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ── Architecture flow ──────────────── */
.arch-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}

.arch-node {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-sm);
}

.arch-node__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.arch-node--physical .arch-node__icon { background: linear-gradient(135deg, #334155, #475569); }
.arch-node--remnux   .arch-node__icon { background: linear-gradient(135deg, #064e3b, #059669); }
.arch-node--kvm      .arch-node__icon { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.arch-node--flarevm  .arch-node__icon { background: linear-gradient(135deg, #7f1d1d, #dc2626); }

.arch-node__icon svg { width: 22px; height: 22px; }

.arch-node__body { flex: 1; }

.arch-node__label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.arch-node__body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
}

.arch-node__body p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin: 0;
}

.arch-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
}

.arch-connector__line {
    width: 2px;
    height: 28px;
    background: var(--border-color);
}

.arch-connector__label {
    font-size: 0.69rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--bg-secondary);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    margin: 0.2rem 0;
}

/* ── Raisons du choix ───────────────── */
.arch-reasons {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.arch-reasons h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
}

.arch-reasons h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

.arch-reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
}

.arch-reason {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.arch-reason svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.arch-reason strong {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.arch-reason p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin: 0;
}

/* ── Responsive ─────────────────────── */
@media (max-width: 860px) {
    .distro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sandbox-hero {
        padding: 5rem 1.25rem 3.5rem;
    }

    .arch-reasons {
        padding: 1.25rem;
    }

    .arch-reasons-grid {
        grid-template-columns: 1fr;
    }
}
