/* =========================================
   Gamer Review Module - CSS Standalone
   Basado en diseño Tailwind "Cyberpunk/Gamer"
   ========================================= */

/* Variables de color y fuentes */
:root {
    --gaming-dark: #0f172a;
    /* Fondo muy oscuro (slate-950) */
    --gaming-panel: #1e293b;
    /* Fondo del panel (slate-800) */
    --gaming-accent: #8b5cf6;
    /* Violeta neón */
    --gaming-accent-glow: #a78bfa;
    /* Violeta claro para brillos */
    --gaming-success: #10b981;
    /* Verde esmeralda */
    --gaming-danger: #ef4444;
    /* Rojo */

    --font-gamer: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   CONTENEDOR PRINCIPAL
   ========================================= */

#review-module {
    width: 100%;
    max-width: 100%;
    /* Se adapta al contenedor padre */
    background-color: var(--gaming-panel);
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* shadow-2xl heavy */
    overflow: hidden;
    position: relative;
    border: 1px solid #334155;
    /* border-gray-700 */
    font-family: var(--font-body);
    color: #fff;
    margin: 30px 0;
    box-sizing: border-box;
}

/* Luz ambiental de fondo */
.gamer-ambient-light {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background-color: var(--gaming-accent);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   HEADER (Imagen y Título)
   ========================================= */
.gamer-header {
    position: relative;
    height: 12rem;
    /* h-48 */
    overflow: hidden;
}

@media (min-width: 768px) {
    .gamer-header {
        height: 14rem;
        /* md:h-56 */
    }
}

.gamer-header__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.7s ease;
}

.gamer-header:hover .gamer-header__img {
    transform: scale(1.05);
}

.gamer-header__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--gaming-panel) 0%, rgba(30, 41, 59, 0.7) 50%, transparent 100%);
}

.gamer-header__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    /* p-6 */
    z-index: 10;
    box-sizing: border-box;
}

.gamer-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--gaming-accent);
    color: #fff;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
    /* shadow-neon */
}

.gamer-title {
    font-family: var(--font-gamer);
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .gamer-title {
        font-size: 2.25rem;
        /* md:text-4xl */
    }
}

.gamer-subtitle {
    color: #d1d5db;
    /* gray-300 */
    font-size: 0.875rem;
    /* text-sm */
    font-style: italic;
    opacity: 0.9;
    margin: 0;
}

@media (min-width: 768px) {
    .gamer-subtitle {
        font-size: 1rem;
        /* md:text-base */
    }
}

/* =========================================
   CUERPO (Grid Notas)
   ========================================= */
.gamer-body {
    padding: 1.5rem;
    /* p-6 */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .gamer-body {
        padding: 2rem;
        /* md:p-8 */
        grid-template-columns: repeat(12, 1fr);
    }
}

/* Columna Izquierda (Chart) */
.gamer-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #374151;
    /* border-gray-700 */
}

@media (min-width: 768px) {
    .gamer-score-col {
        grid-column: span 4;
        border-bottom: none;
        border-right: 1px solid #374151;
        padding-bottom: 0;
        padding-right: 1.5rem;
    }
}

.gamer-chart-wrapper {
    position: relative;
    width: 9rem;
    /* w-36 */
    height: 9rem;
    /* h-36 */
}

.gamer-chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    /* Tailwind rotate gives -90 but SVG logic handles it */
}

.gamer-chart-bg {
    color: #374151;
    /* gray-700 */
}

.gamer-chart-circle {
    /* Clases dinámicas se aplicarán aquí (colors + stroke-dasharray) */
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dasharray 2s ease-out, color 1s ease;
    filter: drop-shadow(0 0 8px currentColor);
}

/* Animación de entrada del círculo (opcional, controlada por JS mejor) */
/* .circle-chart-fill { animation: fillCircle 2s reverse; } */

.gamer-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gamer-score-val {
    font-family: var(--font-gamer);
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.gamer-score-label {
    font-size: 0.625rem;
    /* 10px */
    color: #9ca3af;
    /* gray-400 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.gamer-verdict {
    margin-top: 1rem;
    padding: 0.375rem 1rem;
    background-color: #1f2937;
    /* gray-800 */
    border: 1px solid #4b5563;
    /* gray-600 */
    border-radius: 9999px;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #d1d5db;
    /* gray-300 */
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Variantes de veredicto (se aplicarán con JS) */
.gamer-verdict.v-high {
    background-color: rgba(6, 78, 59, 0.4);
    /* green-900/30 */
    color: #4ade80;
    /* green-400 */
    border-color: #166534;
    /* green-800 */
}

.gamer-verdict.v-mid {
    background-color: rgba(49, 46, 129, 0.4);
    /* indigo-900/30 */
    color: #a5b4fc;
    /* indigo-300 */
    border-color: #3730a3;
    /* indigo-800 */
}

.gamer-verdict.v-low {
    background-color: rgba(127, 29, 29, 0.4);
    /* red-900/30 */
    color: #f87171;
    /* red-400 */
    border-color: #991b1b;
    /* red-800 */
}

/* Clases de color para el chart */
.text-gaming-success {
    color: var(--gaming-success);
}

.text-gaming-accent {
    color: var(--gaming-accent);
}

.text-gaming-danger {
    color: var(--gaming-danger);
}

/* Nuevos Niveles de Puntuación (7 Niveles) */
.text-score-legendario {
    color: #1E8F4E;
}

/* Verde intenso */
.text-score-elite {
    color: #4CAF50;
}

/* Verde claro */
.text-score-combo {
    color: #A4C639;
}

/* Verde-amarillo */
.text-score-casual {
    color: #F4C430;
}

/* Amarillo */
.text-score-respawn {
    color: #FF9800;
}

/* Naranja */
.text-score-mission-failed {
    color: #E53935;
}

/* Rojo claro */
.text-score-game-over {
    color: #B71C1C;
}

/* Rojo oscuro */

/* Veredicto Backgrounds (Opaco con borde) */
.bg-score-legendario {
    background-color: rgba(30, 143, 78, 0.2);
    border-color: #1E8F4E;
    color: #1E8F4E;
}

.bg-score-elite {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

.bg-score-combo {
    background-color: rgba(164, 198, 57, 0.2);
    border-color: #A4C639;
    color: #A4C639;
}

.bg-score-casual {
    background-color: rgba(244, 196, 48, 0.2);
    border-color: #F4C430;
    color: #F4C430;
}

.bg-score-respawn {
    background-color: rgba(255, 152, 0, 0.2);
    border-color: #FF9800;
    color: #FF9800;
}

.bg-score-mission-failed {
    background-color: rgba(229, 57, 53, 0.2);
    border-color: #E53935;
    color: #E53935;
}

.bg-score-game-over {
    background-color: rgba(183, 28, 28, 0.2);
    border-color: #B71C1C;
    color: #B71C1C;
}


/* Columna Derecha (Barras) */
.gamer-bars-col {
    width: 100%;
}

@media (min-width: 768px) {
    .gamer-bars-col {
        grid-column: span 8;
    }
}

.gamer-criteria-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* space-y-3 */
}

.gamer-bar-item {
    margin-bottom: 0.5rem;
}

.gamer-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.25rem;
    padding: 0 0.25rem;
}

.gamer-bar-label {
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 600;
    color: #d1d5db;
    /* gray-300 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gamer-bar-val {
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    color: #fff;
    font-family: var(--font-gamer);
}

.gamer-bar-track {
    width: 100%;
    background-color: rgba(31, 41, 55, 0.8);
    /* gray-800/80 */
    border-radius: 9999px;
    height: 0.5rem;
    /* h-2 */
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.5);
    /* gray-700/50 */
}

.gamer-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(to right, #2563eb, var(--gaming-accent));
    /* blue-600 to accent */
    width: 0%;
    /* JS lo animará */
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer del módulo */
.gamer-footer {
    background-color: rgba(17, 24, 39, 0.5);
    /* gray-900/50 */
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #374151;
    /* border-gray-700 */
    text-align: right;
}

.gamer-id {
    font-size: 0.75rem;
    /* text-xs */
    color: #6b7280;
    /* gray-500 */
    font-family: monospace;
}