/* ALXD Portal - Public */

.alxd-public {
    --bg: #070b17;
    --panel: #10172a;
    --panel2: #151d34;
    --purple: #7067ff;
    --blue: #38bdf8;
    --green: #4ade80;
    --text: #eef2ff;
    --muted: #9aa7c7;

    max-width: 1380px;
    margin: 0 auto;
    color: var(--text);
    font-family: Arial, sans-serif;
}

.alxd-public * {
    box-sizing: border-box;
}

.alxd-public-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 380px;
    padding: 60px;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(112, 103, 255, .40),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #080d1c,
            #171d44
        );
}

.alxd-public-hero-content {
    max-width: 760px;
}

.alxd-kicker {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.alxd-public h1 {
    margin: 15px 0;
    color: white;
    font-size: clamp(48px, 9vw, 90px);
    line-height: .95;
}

.alxd-public h2,
.alxd-public h3 {
    color: white;
}

.alxd-public-hero p {
    color: #bdc7e5;
    font-size: 20px;
    line-height: 1.6;
}

.alxd-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(74, 222, 128, .8);
}

.alxd-ghost-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    color: var(--green);
    background: rgba(0, 0, 0, .3);
    border-radius: 999px;
    font-weight: 700;
}

.alxd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.alxd-btn {
    padding: 11px 16px;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    text-decoration: none !important;
}

.alxd-btn-primary {
    background: var(--purple);
    border-color: var(--purple);
}

.alxd-public-nav {
    position: sticky;
    top: 32px;
    z-index: 20;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0;
    padding: 15px;
    background: rgba(7, 11, 23, .92);
    border-radius: 14px;
}

.alxd-public-nav a {
    color: #dbe4ff !important;
    font-weight: 600;
    text-decoration: none !important;
}

.alxd-section,
.alxd-panel {
    margin-top: 18px;
    padding: 42px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
}

.alxd-section h2,
.alxd-panel h2 {
    margin: 8px 0 12px;
    font-size: clamp(27px, 4vw, 42px);
}

.alxd-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.alxd-section-intro,
.alxd-status-note {
    color: var(--muted);
}

.alxd-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.alxd-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.alxd-post-card {
    overflow: hidden;
    background: var(--panel2);
    border-radius: 15px;
}

.alxd-post-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.alxd-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alxd-post-body {
    padding: 20px;
}

.alxd-post-body time,
.alxd-post-body p {
    color: var(--muted);
}

.alxd-post-body h3 a {
    color: white !important;
    text-decoration: none !important;
}

.alxd-video {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
}

.alxd-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.alxd-terminal {
    overflow: hidden;
    margin-top: 24px;
    background: #030712;
    border: 1px solid #27324c;
    border-radius: 14px;
    font-family: Consolas, monospace;
}

.alxd-terminal-top {
    display: flex;
    gap: 7px;
    padding: 12px;
    background: #111827;
}

.alxd-terminal-top span {
    width: 11px;
    height: 11px;
    background: #475569;
    border-radius: 50%;
}

.alxd-terminal-top span:first-child {
    background: #ef4444;
}

.alxd-terminal-top span:nth-child(2) {
    background: #eab308;
}

.alxd-terminal-top span:nth-child(3) {
    background: #22c55e;
}

.alxd-terminal-body {
    min-height: 220px;
    padding: 24px;
    color: #cbd5e1;
}

.alxd-prompt {
    color: var(--green);
}

.alxd-bot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.alxd-bot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: var(--panel2);
    border-radius: 13px;
}

.alxd-bot div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alxd-bot small {
    color: var(--muted);
}

.alxd-network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 26px;
}

.alxd-network-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    color: white !important;
    background: var(--panel2);
    border-radius: 14px;
    text-decoration: none !important;
}

.alxd-network-card h3,
.alxd-network-card p {
    margin: 0;
}

.alxd-network-card p {
    margin-top: 5px;
    color: var(--muted);
}

.alxd-network-icon {
    font-size: 32px;
}

.alxd-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alxd-social-links a {
    padding: 11px 16px;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    text-decoration: none !important;
}

.alxd-public-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 28px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .alxd-public-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
        padding: 34px;
    }

    .alxd-post-grid,
    .alxd-two-columns,
    .alxd-network-grid {
        grid-template-columns: 1fr;
    }

    .alxd-bot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .alxd-public h1 {
        font-size: 48px;
    }

    .alxd-public-nav {
        position: static;
    }

    .alxd-section,
    .alxd-panel {
        padding: 24px;
    }

    .alxd-bot-grid {
        grid-template-columns: 1fr;
    }

    .alxd-section-heading,
    .alxd-public-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* KiwiIRC #montreal */

.alxd-kiwi-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 14px;
}

.alxd-kiwi-live {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.alxd-kiwi-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 620px;
    background: #030712;
    border: 1px solid #27324c;
    border-radius: 14px;
}

.alxd-kiwi-frame iframe {
    display: block;
    width: 100%;
    height: 620px;
    border: 0;
    background: #030712;
}

.alxd-kiwi-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .alxd-kiwi-frame,
    .alxd-kiwi-frame iframe {
        min-height: 540px;
        height: 540px;
    }
}

@media (max-width: 560px) {
    .alxd-kiwi-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .alxd-kiwi-toolbar .alxd-btn {
        text-align: center;
    }

    .alxd-kiwi-frame,
    .alxd-kiwi-frame iframe {
        min-height: 500px;
        height: 500px;
    }
}

@media print {
    .alxd-kiwi-frame {
        display: none !important;
    }

    .alxd-kiwi-toolbar .alxd-btn {
        display: none !important;
    }
}

/* Affichage universel : du telephone a l ecran 4K */
.alxd-public { overflow-wrap: break-word; }
.alxd-ghost-status { white-space: nowrap; flex-shrink: 0; }
.alxd-bot-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
