/* r2t-ui.css
 * Version 1.0
 * Rock 2 The Top shared UI: one set of buttons, page headers, panels and notices.
 * Load AFTER a page's own <style> so these win:
 *   <link rel="stylesheet" href="/r2t-ui.css?v=1">
 *
 * Buttons    .btn + .btn-primary | .btn-secondary | .btn-ghost | .btn-danger | .btn-success
 *            size .btn-sm, full width .btn-block, disabled via [disabled] or .is-disabled
 * Layout     .r2t-page, .r2t-panel, .r2t-header (h1 + .r2t-sub), .r2t-actions
 * Text       .r2t-section-title, .r2t-muted
 * States     .r2t-empty, .r2t-notice (+ .is-success | .is-error | .is-info)
 */

:root {
    --r2t-accent: #f04e31;
    --r2t-accent-hover: #ff6347;
    --r2t-accent-soft: rgba(240, 78, 49, .12);
    --r2t-text: #eeeeee;
    --r2t-muted: #a8a8b0;
    --r2t-panel: rgba(12, 14, 19, .95);
    --r2t-panel-2: rgba(255, 255, 255, .045);
    --r2t-border: rgba(255, 255, 255, .14);
    --r2t-radius: 10px;
    --r2t-radius-sm: 8px;
    --r2t-success: #2f8a4f;
    --r2t-danger: #a33a32;
}

/* ---------- Buttons ---------- */
.btn, .r2t-header, .r2t-panel, .r2t-page, .r2t-empty, .r2t-notice { box-sizing: border-box; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: var(--r2t-radius-sm);
    border: 1px solid transparent;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid #ffb4a4; outline-offset: 2px; }

.btn-primary { background: var(--r2t-accent); border-color: var(--r2t-accent); color: #fff; }
.btn-primary:hover { background: var(--r2t-accent-hover); border-color: var(--r2t-accent-hover); color: #fff; }

.btn-secondary { background: #24252b; border-color: #4a4b53; color: var(--r2t-text); }
.btn-secondary:hover { background: #31323a; border-color: #5c5d66; color: #fff; }

.btn-ghost { background: var(--r2t-accent-soft); border-color: rgba(240, 78, 49, .6); color: #ffb0a0; }
.btn-ghost:hover { background: var(--r2t-accent); border-color: var(--r2t-accent); color: #fff; }

.btn-danger { background: var(--r2t-danger); border-color: #c0544b; color: #fff; }
.btn-danger:hover { background: #bd463d; }

.btn-success { background: var(--r2t-success); border-color: #3fa264; color: #fff; }
.btn-success:hover { background: #379c5b; }

.btn-sm { min-height: 32px; padding: 6px 11px; font-size: .82rem; }
.btn-block { display: flex; width: 100%; }

.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] {
    background: #2a2b30; border-color: #3a3b41; color: #8a8a90;
    cursor: not-allowed; transform: none; filter: none;
}

/* ---------- Layout ---------- */
.r2t-page { width: min(1120px, calc(100% - 30px)); margin: 0 auto; padding: 34px 0 80px; }

.r2t-panel {
    background: var(--r2t-panel);
    border: 1px solid var(--r2t-border);
    border-radius: var(--r2t-radius);
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.r2t-header {
    position: relative;
    margin-bottom: 22px;
    padding: 26px 28px;
    background: linear-gradient(135deg, rgba(10, 11, 15, .97), rgba(20, 16, 22, .94));
    border: 1px solid var(--r2t-border);
    border-top: 3px solid var(--r2t-accent);
    border-radius: var(--r2t-radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.r2t-header h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
    text-transform: none;
}
.r2t-header h1 .accent { color: var(--r2t-accent); }
.r2t-sub { margin: 0; color: var(--r2t-muted); font-size: 1rem; line-height: 1.5; }

.r2t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.r2t-actions form { margin: 0; }

/* ---------- Text ---------- */
.r2t-section-title {
    display: flex; align-items: baseline; gap: 10px;
    margin: 28px 0 12px; color: #fff; font-size: 1.3rem; font-weight: 800;
}
.r2t-section-title small { color: var(--r2t-muted); font-size: .85rem; font-weight: 500; }
.r2t-muted { color: var(--r2t-muted); }

/* ---------- States ---------- */
.r2t-empty {
    padding: 20px; text-align: center; color: var(--r2t-muted);
    background: rgba(14, 15, 19, .9); border: 1px dashed #4a4b53; border-radius: var(--r2t-radius-sm);
}
.r2t-notice {
    margin: 0 0 18px; padding: 12px 15px; border-radius: var(--r2t-radius-sm);
    background: var(--r2t-panel-2); border: 1px solid var(--r2t-border); border-left: 4px solid var(--r2t-accent);
    color: var(--r2t-text);
}
.r2t-notice.is-success { border-left-color: #4caf6e; background: rgba(54, 117, 72, .2); }
.r2t-notice.is-error { border-left-color: #e06055; background: rgba(150, 42, 42, .2); }
.r2t-notice.is-info { border-left-color: #5b9bd5; }

@media (max-width: 600px) {
    .r2t-page { width: calc(100% - 20px); padding-top: 20px; }
    .r2t-header { padding: 20px 18px; }
    .r2t-panel { padding: 18px 15px; }
    .r2t-actions .btn { flex: 1 1 auto; }
}

/* r2t-ui.css | Version 1.0 */
