/* ─── BOT PAGE STYLES ────────────────────────────────────────── */

/* ─── HERO ACTION BUTTONS ────────────────────────────────────── */

.bot-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ─── PATCH NOTES SECTION ────────────────────────────────────── */

.patch-version-selector {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 2rem;
    width: fit-content;
}

.version-tab {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    padding: 0.55rem 1.1rem;
    border: none;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    opacity: 0.35;
    border-right: 1px solid rgba(255,255,255,0.18);
    transition: opacity 0.15s, background 0.15s;
    position: relative;
}

.version-tab:last-child {
    border-right: none;
}

.version-tab:hover {
    opacity: 0.75;
    background: rgba(255,255,255,0.04);
}

.version-tab.active {
    background: var(--white);
    color: var(--black);
    opacity: 1;
}

.version-tab.current-version::after {
    content: '●';
    font-size: 0.4rem;
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    color: inherit;
    opacity: 0.7;
}

.patch-panel {
    display: none;
}

.patch-panel.active {
    display: block;
}

.patch-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.patch-version-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.12em;
}

.patch-date {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    opacity: 0.4;
}

.patch-current-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    padding: 0.18rem 0.55rem;
    background: var(--white);
    color: var(--black);
    font-weight: bold;
    animation: pulse-border 2.5s ease-in-out infinite;
}

/* ─── DIFF BLOCK ─────────────────────────────────────────────── */

.diff-block {
    border: 1px solid rgba(255,255,255,0.12);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1;
    overflow: hidden;
}

.diff-block-header {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    padding: 0.45rem 1rem;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    opacity: 0.5;
}

.diff-line {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid transparent;
    line-height: 1.65;
}

.diff-line:last-child {
    border-bottom: none;
}

.diff-gutter {
    width: 2.2rem;
    flex-shrink: 0;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 0.35rem 0;
    user-select: none;
    line-height: 1.65;
}

.diff-text {
    flex: 1;
    padding: 0.35rem 1rem 0.35rem 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.diff-line.added {
    background: rgba(0, 255, 80, 0.07);
    border-color: rgba(0, 255, 80, 0.1);
}

.diff-line.added .diff-gutter {
    color: rgb(0, 220, 70);
    background: rgba(0, 255, 80, 0.1);
}

.diff-line.added .diff-text {
    color: rgba(180, 255, 190, 0.9);
}

.diff-line.removed {
    background: rgba(255, 50, 50, 0.07);
    border-color: rgba(255, 50, 50, 0.1);
}

.diff-line.removed .diff-gutter {
    color: rgb(255, 80, 80);
    background: rgba(255, 50, 50, 0.1);
}

.diff-line.removed .diff-text {
    color: rgba(255, 180, 180, 0.75);
    text-decoration: line-through;
    text-decoration-color: rgba(255,100,100,0.4);
}

.diff-line.adjusted {
    background: rgba(255, 200, 0, 0.05);
    border-color: rgba(255, 200, 0, 0.08);
}

.diff-line.adjusted .diff-gutter {
    color: rgb(230, 180, 0);
    background: rgba(255, 200, 0, 0.08);
}

.diff-line.adjusted .diff-text {
    color: rgba(255, 230, 140, 0.85);
}

.diff-line.section-label {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}

.diff-line.section-label .diff-gutter {
    background: rgba(255,255,255,0.04);
    opacity: 0.4;
}

.diff-line.section-label .diff-text {
    opacity: 0.35;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .patch-version-selector {
        width: 100%;
    }

    .version-tab {
        flex: 1;
        text-align: center;
    }

    .bot-actions {
        flex-direction: column;
    }

    .bot-actions .btn-primary,
    .bot-actions .btn-secondary {
        text-align: center;
    }
}
