﻿/* =====================================================
   Imperius Draconis – Tema "Slytherin" (verde & plata)
   Activa: <body data-theme="slytherin">
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&display=swap');

body[data-theme="slytherin"] {
    --font-ui: 'Playfair Display', serif;
    /* Colores base */
    --bg-1: #0b1d0b; /* verde oscuro profundo */
    --bg-2: #1a2f1a; /* verde secundario */
    --text: #e5e5e5; /* texto claro */
    --muted: #b0b0b0; /* gris plata */
    /* Paleta Slytherin */
    --border: #3f4f3f;
    --ring: rgba(52, 211, 153, 0.3); /* verde esmeralda suave */
    --accent: #34d399; /* verde esmeralda */
    --accent-2: #059669; /* hover más intenso */
    --success: #10b981;
    --danger: #dc2626;
    --warning: #eab308;
    /* Sombras */
    --shadow-1: 0 1px 3px rgba(0,0,0,.4);
    --shadow-2: 0 6px 16px rgba(0,0,0,.6);
    /* Fondo degradado */
    --grad-bg: linear-gradient(180deg, #0b1d0b 0%, #1a2f1a 100%);
    /* Componentes */
    --card-bg: #112011;
    --card-border: #34d399;
    --table-th-bg: #1f3521;
    --table-td-bg: #142414;
    /* Botones */
    --btn-primary-bg: var(--accent);
    --btn-primary-bg-hover: var(--accent-2);
    --btn-primary-text: #fff;
    --btn-ghost-bg: #2a3c2a;
    --btn-ghost-text: #e5e5e5;
}

    /* Tarjetas */
    body[data-theme="slytherin"] .hp-card {
        background: var(--card-bg) !important;
        border: 2px solid var(--card-border) !important;
        border-radius: 14px !important;
        color: var(--text) !important;
        box-shadow: var(--shadow-1) !important;
    }

        body[data-theme="slytherin"] .hp-card:hover {
            box-shadow: var(--shadow-2) !important;
            transform: translateY(-2px) !important;
        }

    /* Tablas */
    body[data-theme="slytherin"] .table-hogwarts th {
        background: var(--table-th-bg) !important;
        color: var(--accent) !important;
        text-shadow: none !important;
    }

    body[data-theme="slytherin"] .table-hogwarts td {
        background: var(--table-td-bg) !important;
        color: var(--text) !important;
    }

    body[data-theme="slytherin"] .table-hogwarts tbody tr:hover {
        background-color: rgba(52, 211, 153, 0.1) !important;
    }

    /* Textos */
    body[data-theme="slytherin"] .welcome-text,
    body[data-theme="slytherin"] .welcome-text-home,
    body[data-theme="slytherin"] .sub-welcome {
        color: var(--accent) !important;
        text-shadow: none !important;
        font-family: var(--font-ui) !important;
    }

    /* Botones */
    body[data-theme="slytherin"] .btn-gold,
    body[data-theme="slytherin"] .btn-hp,
    body[data-theme="slytherin"] .btn-hp-create {
        background: var(--btn-primary-bg) !important;
        color: var(--btn-primary-text) !important;
        border: 1px solid var(--btn-primary-bg) !important;
        box-shadow: none !important;
    }

        body[data-theme="slytherin"] .btn-gold:hover,
        body[data-theme="slytherin"] .btn-hp:hover,
        body[data-theme="slytherin"] .btn-hp-create:hover {
            background: var(--btn-primary-bg-hover) !important;
            transform: translateY(-1px) scale(1.02) !important;
        }

    /* Inputs */
    body[data-theme="slytherin"] .form-control,
    body[data-theme="slytherin"] input,
    body[data-theme="slytherin"] select {
        background-color: #0f1c0f !important;
        color: var(--text) !important;
        border: 1px solid var(--border) !important;
    }

        body[data-theme="slytherin"] .form-control:focus,
        body[data-theme="slytherin"] input:focus,
        body[data-theme="slytherin"] select:focus {
            border-color: var(--accent) !important;
            box-shadow: 0 0 0 3px var(--ring) !important;
        }

    /* Radios & checkboxes */
    body[data-theme="slytherin"] .form-check-input {
        border: 1.5px solid var(--border) !important;
        background: #0f1c0f !important;
    }

        body[data-theme="slytherin"] .form-check-input:checked {
            background-color: var(--accent) !important;
            border-color: var(--accent) !important;
        }

    /* Íconos */
    body[data-theme="slytherin"] .action-icon {
        color: var(--accent) !important;
    }

        body[data-theme="slytherin"] .action-icon:hover {
            color: var(--accent-2) !important;
        }

    body[data-theme="slytherin"] .dracoins-icon {
        color: var(--accent) !important;
        filter: drop-shadow(0 0 3px #064e3b) !important;
    }

    /* Utilidades */
    body[data-theme="slytherin"] .text-gold {
        color: var(--accent) !important;
    }

    body[data-theme="slytherin"] .border-gold {
        border-color: var(--accent) !important;
    }

    body[data-theme="slytherin"] .bg-gold {
        background: var(--accent) !important;
        color: #fff !important;
    }

    /* Partículas verdes en lugar de doradas */
    body[data-theme="slytherin"] #particles-js canvas {
        filter: hue-rotate(120deg) brightness(1.2);
    }
