/* ===== TEXT ===== */
h1, h2, h3, h5, h6, li, details {
    text-align: center;
}
h1 { font-size: 200%; }
h2 { font-size: 150%; }
h3 { font-size: 125%; }

/* ===== SEPARATOR ===== */
.separateur {
    width: 100%;
    height: 3px;
    background-color: #0a0909;
}

/* ===== BUTTONS ===== */
.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.btn3 {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--surface-2);
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 80%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}
.btn3:hover {
    transform: translateY(-2px);
    background: #262121;
    border-color: rgba(255, 159, 67, 0.45);
    box-shadow: 0 10px 30px rgba(255, 159, 67, 0.22);
}

/* ===== ICONS HANDLED BY base.css ===== */

/* ===== OTHERS ===== */
details > summary {
    padding: 2px 6px;
    width: 100%;
    background-color: #0a0909;
    border: none;
    box-shadow: 3px 3px 4px black;
    cursor: pointer;
}

/* ===== LAYOUT ===== */
.home {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 90px;
}
.hero {
    padding: 36px 0 8px;
    text-align: center;
}
.hero h1 { margin: 0 0 10px; }
.tagline {
    max-width: 52ch;
    margin: 0 auto 28px;
    color: var(--muted);
}
.block { margin-top: 70px; }
.block > h2 {
    margin: 0 0 24px;
    font-size: 130%;
}

/* ===== IP CHIP ===== */
.ip-row {
    display: flex;
    justify-content: center;
}
.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ip-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 159, 67, 0.45);
    box-shadow: 0 8px 24px rgba(255, 159, 67, 0.22);
}
.ip-chip > svg { width: 20px; height: 20px; color: var(--accent); }
.ip-text { font-family: monospace; font-size: 1.1em; }
.ip-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.85em;
}
.ip-action svg { width: 16px; height: 16px; }
.ic-copy, .ic-check { display: inline-flex; }
.ic-check { display: none; }
.ip-chip.copied {
    border-color: rgba(85, 255, 85, 0.5);
    box-shadow: 0 8px 24px rgba(85, 255, 85, 0.18);
}
.ip-chip.copied .ip-action {
    color: #55FF55;
    background: rgba(85, 255, 85, 0.1);
}
.ip-chip.copied .ic-copy { display: none; }
.ip-chip.copied .ic-check { display: inline-flex; }

/* ===== BADGES ===== */
.meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 24px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.85em;
}
.badge[hidden] { display: none; }
.badge svg { width: 16px; height: 16px; }
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #71717a;
}
.status.online .dot {
    background: #55FF55;
    box-shadow: 0 0 8px rgba(85, 255, 85, 0.7);
}
.status.offline .dot { background: #FF5555; }

/* ===== STEPS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps li {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: left;
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(154, 140, 255, 0.15);
    color: var(--accent);
    font-weight: 700;
}
.steps b {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}
.steps span {
    color: var(--muted);
    font-size: 0.92em;
}
.steps code {
    padding: 1px 6px;
    border-radius: 5px;
    background: #2b2d31;
    color: #dbdee1;
    font-size: 0.9em;
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}
.feature {
    display: block;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    text-align: left;
    text-decoration: none;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 159, 67, 0.45);
    box-shadow: 0 10px 28px rgba(255, 159, 67, 0.18);
}
.feature svg {
    display: block;
    width: 26px;
    height: 26px;
    margin-bottom: 12px;
    color: var(--accent);
}
.feature b {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 1.05em;
}
.feature span {
    color: var(--muted);
    font-size: 0.92em;
    line-height: 1.5;
}

/* ===== LATEST PATCH ===== */
.patch-card {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    text-align: left;
    text-decoration: none;
    transition: border-color .25s, box-shadow .25s;
}
.patch-card:hover {
    border-color: rgba(154, 140, 255, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.patch-card h3,
.patch-card ul { transition: opacity .25s; }
.patch-card.loading h3,
.patch-card.loading ul { opacity: 0; }
.patch-card h3 {
    margin: 0 0 10px;
    text-align: left;
    font-size: 1.1rem;
    color: #fff;
}
.patch-card ul {
    margin: 0;
    padding-left: 20px;
}
.patch-card li {
    margin: 7px 0;
    text-align: left;
    font-size: 0.95em;
    color: #d6d0d0;
}
.patch-card li::marker { color: #52525b; }
.patch-card li.more {
    margin-left: -20px;
    list-style: none;
    color: var(--muted);
    font-size: 0.88em;
}
.mini-tag {
    margin-right: 6px;
    font-weight: 700;
}
.mini-tag.new     { color: #00AA00; }
.mini-tag.added   { color: #55FF55; }
.mini-tag.fixed   { color: #FFFF55; }
.mini-tag.change  { color: #8f8fff; }
.mini-tag.removed { color: #FF5555; }
.patch-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--accent);
    font-size: 0.9em;
}
.patch-more svg {
    width: 16px;
    height: 16px;
    transition: transform .25s;
}
.patch-card:hover .patch-more svg { transform: translateX(4px); }

/* ===== MOBILE ===== */
@media (max-width: 760px) {
    h1 { font-size: 170%; }
    .steps { grid-template-columns: 1fr; }
    .ip-chip { gap: 8px; padding-left: 12px; }
    .ip-text { font-size: 0.95em; }
    .block { margin-top: 54px; }
}
