@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/*
  Base visual compartida por todo el panel (Inicio, Moderación, Servidor, Música).
  Cualquier página que la use debe envolver su contenido en <div class="page">
  y puede combinarla con una hoja de estilos propia para detalles específicos
  (ver music.css como ejemplo).
*/

:root {
    --bg: #0b0a14;
    --bg-glow-1: #2d1a4d;
    --bg-glow-2: #3a1030;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --surface-border: rgba(255, 255, 255, 0.09);
    --lilac: #b98eff;
    --pink: #ff8ed4;
    --cream: #f5e6c8;
    --text: #f1edfb;
    --text-muted: #9a92b8;
    --danger: #ff6b81;
    --success: #7ee0a8;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(60% 50% at 15% 0%, var(--bg-glow-1) 0%, transparent 60%),
        radial-gradient(50% 40% at 100% 10%, var(--bg-glow-2) 0%, transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin: 0;
}

/* ---------- Encabezado de página ---------- */

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.back-link:hover { color: var(--text); }

/* ---------- Tarjetas de cristal ---------- */

.glass-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 24px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
}

/* ---------- Grid de servidores ---------- */

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.guild-card {
    display: block;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.guild-card:hover {
    transform: translateY(-2px);
    background: var(--surface-hover);
    border-color: rgba(185, 142, 255, 0.35);
}

.guild-card-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-card-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.empty-state {
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 4px;
}

/* ---------- Formularios ---------- */

.field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13px;
    margin-bottom: 8px;
}

.field::placeholder { color: var(--text-muted); }

.field:focus,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--lilac);
    outline-offset: 2px;
}

/* ---------- Botones ---------- */

.btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-block { width: 100%; }

.btn-primary {
    color: #16121f;
    background: linear-gradient(135deg, var(--lilac), var(--pink));
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-warn {
    color: #16121f;
    background: linear-gradient(135deg, #ffd479, var(--pink));
}

.btn-danger {
    color: var(--text);
    background: rgba(255, 107, 129, 0.18);
    border: 1px solid rgba(255, 107, 129, 0.35);
}

.btn-danger:hover { background: rgba(255, 107, 129, 0.28); }

.btn-ghost {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
}

.btn-ghost:hover { color: var(--text); background: var(--surface-hover); }

/* ---------- Alertas ---------- */

.alert {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(126, 224, 168, 0.12);
    border-color: rgba(126, 224, 168, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 107, 129, 0.12);
    border-color: rgba(255, 107, 129, 0.3);
    color: var(--danger);
}

/* ---------- Listas de entradas (warns / eventos) ---------- */

.entry-list { display: flex; flex-direction: column; }

.entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--surface-border);
}

.entry:first-child { border-top: none; padding-top: 0; }

.entry-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
}

.entry-id {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.entry-sub {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.entry-reasons {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Grid de dos columnas (servidor) ---------- */

.split-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

.stack { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 760px) {
    .split-layout { grid-template-columns: 1fr; }
}

/* ---------- Páginas de documentos (Términos y Condiciones) ---------- */

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(185, 142, 255, 0.12);
    border: 1px solid rgba(185, 142, 255, 0.3);
    color: var(--lilac);
}

.terms-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.terms-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 28px;
    transition: border-color 0.2s ease;
}

.terms-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.terms-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--surface-border);
}

.terms-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(185, 142, 255, 0.2), rgba(255, 142, 212, 0.2));
    border: 1px solid rgba(185, 142, 255, 0.4);
    color: var(--lilac);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.terms-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.terms-text {
    font-size: 14px;
    line-height: 1.65;
    color: #d1cbe3;
    margin: 0 0 12px;
}

.terms-text:last-child {
    margin-bottom: 0;
}

.terms-list {
    margin: 10px 0 14px;
    padding-left: 22px;
    color: #d1cbe3;
    font-size: 14px;
    line-height: 1.65;
}

.terms-list li {
    margin-bottom: 6px;
}

.terms-highlight {
    background: rgba(185, 142, 255, 0.1);
    border-left: 3px solid var(--lilac);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 14px 0;
    font-size: 13.5px;
    color: var(--text);
}

