/*
 * Strah Metal Name Forge CSS
 * Versión Final: Dark Metal UI/UX (Poppins, High Impact, Mobile-First)
 * Fecha: 15 de Diciembre de 2025
 */

/*=====================================
  1. RESET & VARIABLES GLOBALES
======================================*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colores Metaleros */
    --color-dark-primary: #0F0F0F;       /* Negro Carbón (Fondo/Header) */
    --color-metal-accent: #590A1C;       /* Rojo Oscuro (Sombra 3D/Gradiente) */
    --color-metal-light: #DA0032;        /* Rojo Brillante (Acento/Glow) */
    --color-text-main: #FFFFFF;          /* Blanco */
    --color-text-secondary: #FFFFFF;     /* White */
    
    /* Tipografía (Requiere enlazar Poppins en el HTML) */
    --font-heading: 'Poppins', sans-serif; /* Títulos y Elementos de Impacto */
    --font-body: 'Poppins', sans-serif;    /* Cuerpo del Texto */
}

/*=====================================
  2. BODY & ESTRUCTURA PRINCIPAL
======================================*/
body {
    /* Fondo con gradiente dramático */
    background: linear-gradient(180deg, var(--color-dark-primary) 15%, var(--color-metal-accent) 100%);
    color: var(--color-text-main);
    font-family: var(--font-body);       /* Fuente base legible */
    text-align: center;
    min-height: 100vh;
    background-attachment: fixed;
}

.header {
    background-color: var(--color-dark-primary);
    padding: 30px 0;
}

.container {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

.logo {
    max-width: 300px;
    width: 90%; 
    height: auto;
    margin: auto;
}

/*=====================================
  3. CONTROLES Y MENÚS
======================================*/
.controls {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px; 
    margin-top: 40px;
}

/* Instrucción para el usuario (En Inglés y con acento metálico) */
.controls-instruction {
    width: 100%;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--color-metal-light); 
    text-shadow: 0 0 5px rgba(218, 0, 50, 0.5);
    text-transform: uppercase;
    font-weight: 700;
}

/* Estilos compartidos: Botones y Contenedor Custom Select */
.controls button,
.controls .custom-select {
    /* Fondo de control oscuro con gradiente */
    background: linear-gradient(180deg, var(--color-metal-accent) 0%, var(--color-dark-primary) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-metal-light); 
    padding: 16px 30px;
    font-size: 1.2rem;
    font-family: var(--font-heading); 
    font-weight: 700; 
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    flex-grow: 1; 
    max-width: 350px; 
}

/* Estilos de Hover (Efecto de Glow y Escala) */
.controls button:hover, 
.controls .custom-select:hover {
    transform: scale(1.03); 
    box-shadow: 0 0 15px var(--color-metal-light); 
    background: linear-gradient(0deg, var(--color-metal-light) 0%, var(--color-metal-accent) 100%);
}

/* Custom Select Fix para UI/UX oscuro */
.custom-select {
    position: relative;
    display: inline-block;
    padding: 0; 
    overflow: hidden; 
}

.custom-select select {
    /* Reset de estilos nativos de OS/navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    width: 100%;
    height: 100%;
    padding: 16px 50px 16px 30px; 
    background: transparent; /* Fondo transparente para ver el gradiente del div padre */
    color: var(--color-text-main); 
    border: none;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700; 
    cursor: pointer;
}

/* Flecha custom para el Select */
.custom-select::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--color-metal-light);
    pointer-events: none; 
    font-size: 0.8rem;
}

/* Media query (Corrección de Mobile - Apilado vertical) */
@media (max-width: 600px) {
    .controls {
        flex-direction: column; 
    }
    .controls button,
    .controls .custom-select {
        width: 100%; 
        max-width: none;
    }
}


/*=====================================
  4. RESULTADO (NOMBRE GENERADO) - TÍTULO DE IMPACTO MÁXIMO
======================================*/
#result { 
    font-size: clamp(2.5rem, 8vw + 1rem, 6rem); 
    font-family: var(--font-heading);
    font-weight: 900; 
    margin: 60px auto 0 auto; 
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--color-text-main);
    word-break: break-word; 

    /* Efecto de Texto Popping Extremo (Glow + Sombra 3D) */
    text-shadow: 
        0 0 15px var(--color-metal-light), 
        0 0 35px rgba(218, 0, 50, 1.0), 
        5px 5px 0 var(--color-metal-accent); /* La clave del efecto 3D */
    
    transition: text-shadow 0.3s;
}

/*=====================================
  5. TEXTO SEO Y ANUNCIOS
======================================*/
.ad {
    margin: 30px auto;
    max-width: 900px;
}

.seo-text {
    margin-top: 50px;
    padding: 30px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    /* Fondo semitransparente para legibilidad */
    background-color: rgba(15, 15, 15, 0.7); 
    border-radius: 12px;
    border: 1px solid var(--color-metal-accent);
}

.seo-text h2 {
    text-align: center;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 30px;
    color: var(--color-metal-light); 
    text-shadow: 0 0 5px rgba(218, 0, 50, 0.5);
    border-bottom: 2px solid var(--color-metal-light);
    padding-bottom: 10px;
}

/* Dentro de la sección 5. TEXTO SEO Y ANUNCIOS */
.seo-text p {
    margin-bottom: 1.5rem; /* Añade un espacio visible después de cada párrafo */
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8; /* Asegura buena legibilidad */
    color: var(--color-text-secondary);
}
/*=====================================
  6. FOOTER
======================================*/
footer.footer {
    background: var(--color-dark-primary);
    padding: 35px 0; 
    font-size: 0.95rem; 
    margin-top: 80px; 
    border-top: 4px solid var(--color-metal-accent); 
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5);
}

footer p {
    font-family: var(--font-body); 
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

footer .share a {
    color: var(--color-text-secondary);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    font-family: var(--font-heading); 
    text-transform: uppercase;
}

footer .share a:hover {
    color: var(--color-metal-light); 
    text-shadow: 0 0 8px rgba(218, 0, 50, 0.6); 
}

/*=====================================
  7. SOLUCIÓN EXTREMA: MENÚ DESPLEGABLE OSCURO
======================================*/

/* Estilo de las opciones que aparecen al hacer clic (funciona en Webkit/Gecko) */
.custom-select select option {
    /* Forzar fondo oscuro y texto blanco para las opciones individuales */
    background: var(--color-dark-primary) !important; 
    color: var(--color-text-main) !important;
    padding: 5px 15px;
}

/* Intenta forzar el color de fondo del menú desplegable completo (Webkit/Blink) */
.custom-select select:focus {
    outline: none; /* Quita el borde de enfoque nativo */
}