﻿/* =====================================================
   Imperius Draconis – Tema "Hufflepuff" (amarillo & negro)
   Activa: <body data-theme="hufflepuff">
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&display=swap');

body[data-theme="hufflepuff"] {
    --font-ui: 'Raleway', sans-serif;
    /* Colores base */
    --bg-1: #1a1a1a; /* negro profundo */
    --bg-2: #2b2b2b; /* gris oscuro */
    --text: #fdfdfd; /* texto claro */
    --muted: #e5c07b; /* dorado apagado */
    /* Paleta Hufflepuff */
    --border: #facc15;
    --ring: rgba(234,179,8,0.35);
    --accent: #facc15; /* amarillo dorado */
    --accent-2: #eab308; /* hover más intenso */
    --success: #fcd34d;
    --danger: #dc2626;
    --warning: #fbbf24;
    /* Sombras */
    --shadow-1: 0 1px 3px rgba(250,204,21,.4);
    --shadow-2: 0 6px 16px rgba(234,179,8,.6);
    /* Fondo degradado */
    --grad-bg: linear-gradient(180deg, #1a1a1a 0%, #2b2b2b 100%);
    /* Componentes */
    --card-bg: #262626;
    --card-border: var(--accent);
    --table-th-bg: #3b3b3b;
    --table-td-bg: #1f1f1f;
    /* Botones */
    --btn-primary-bg: var(--accent);
    --btn-primary-bg-hover: var(--accent-2);
    --btn-primary-text: #000;
    --btn-ghost-bg: #3b3b3b;
    --btn-ghost-text: #fdfdfd;
}

    /* Tarjetas */
    body[data-theme="hufflepuff"] .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="hufflepuff"] .hp-card:hover {
            box-shadow: var(--shadow-2) !important;
            transform: translateY(-2px) !important;
        }

    /* Tablas */
    body[data-theme="hufflepuff"] .table-hogwarts th {
        background: var(--table-th-bg) !important;
        color: var(--accent) !important;
    }

    body[data-theme="hufflepuff"] .table-hogwarts td {
        background: var(--table-td-bg) !important;
        color: var(--text) !important;
    }

    body[data-theme="hufflepuff"] .table-hogwarts tbody tr:hover {
        background-color: rgba(250,204,21,0.15) !important;
    }

    /* Textos */
    body[data-theme="hufflepuff"] .welcome-text,
    body[data-theme="hufflepuff"] .welcome-text-home,
    body[data-theme="hufflepuff"] .sub-welcome {
        color: var(--accent) !important;
        font-family: var(--font-ui) !important;
        text-shadow: 0 0 6px rgba(250,204,21,0.5);
    }

    /* Botones */
    body[data-theme="hufflepuff"] .btn-gold,
    body[data-theme="hufflepuff"] .btn-hp,
    body[data-theme="hufflepuff"] .btn-hp-create {
        background: var(--btn-primary-bg) !important;
        color: var(--btn-primary-text) !important;
        border: 1px solid var(--btn-primary-bg) !important;
    }

        body[data-theme="hufflepuff"] .btn-gold:hover,
        body[data-theme="hufflepuff"] .btn-hp:hover,
        body[data-theme="hufflepuff"] .btn-hp-create:hover {
            background: var(--btn-primary-bg-hover) !important;
            transform: translateY(-1px) scale(1.02) !important;
        }

    /* Inputs */
    body[data-theme="hufflepuff"] .form-control,
    body[data-theme="hufflepuff"] input,
    body[data-theme="hufflepuff"] select {
        background-color: #1a1a1a !important;
        color: var(--text) !important;
        border: 1px solid var(--border) !important;
    }

        body[data-theme="hufflepuff"] .form-control:focus,
        body[data-theme="hufflepuff"] input:focus,
        body[data-theme="hufflepuff"] select:focus {
            border-color: var(--accent) !important;
            box-shadow: 0 0 0 3px var(--ring) !important;
        }

    /* Radios & checkboxes */
    body[data-theme="hufflepuff"] .form-check-input {
        border: 1.5px solid var(--border) !important;
        background: #1a1a1a !important;
    }

        body[data-theme="hufflepuff"] .form-check-input:checked {
            background-color: var(--accent) !important;
            border-color: var(--accent) !important;
        }

    /* Íconos */
    body[data-theme="hufflepuff"] .action-icon {
        color: var(--accent) !important;
    }

        body[data-theme="hufflepuff"] .action-icon:hover {
            color: var(--accent-2) !important;
        }

    body[data-theme="hufflepuff"] .dracoins-icon {
        color: var(--accent) !important;
        filter: drop-shadow(0 0 3px #facc15) !important;
    }

    /* Utilidades */
    body[data-theme="hufflepuff"] .text-gold {
        color: var(--accent) !important;
    }

    body[data-theme="hufflepuff"] .border-gold {
        border-color: var(--accent) !important;
    }

    body[data-theme="hufflepuff"] .bg-gold {
        background: var(--accent) !important;
        color: #000 !important;
    }

    /* Partículas doradas */
    body[data-theme="hufflepuff"] #particles-js canvas {
        filter: hue-rotate(50deg) brightness(1.2);
    }
