/* Paleta de Colores de Halloween */
:root {
    --primary-color: #ff6600;      /* Naranja Calabaza Brillante */
    --secondary-color: #8b0000;    /* Rojo Sangre Oscuro */
    --dark-bg: #1c1c1c;            /* Negro Carbón */
    --light-text: #f0f0f0;         /* Gris Niebla */
    --card-bg: #2a2a2a;            /* Gris Oscuro de Tumba */
    --shadow-color: rgba(0, 0, 0, 0.8);
}

/* Base y Tipografía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Fuente espeluznante para títulos, fuente legible para texto */
    font-family: 'Roboto', sans-serif; 
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    background-image: url('assets/images/halloween_pattern.png'); /* Asume que tienes un patrón sutil */
    background-repeat: repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header/Hero Section */
.hero {
    /* Fondo con degradado naranja y negro */
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    border-bottom: 5px solid var(--primary-color);
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    /* Borde de calabaza */
    border: 7px solid var(--primary-color); 
    margin-bottom: 25px;
    box-shadow: 0 0 20px var(--primary-color);
    transition: transform 0.4s;
}

.profile-pic:hover {
    transform: rotate(5deg) scale(1.05);
}

h1 {
    font-family: 'Creepster', cursive; /* Fuente temática de Halloween (asume que la tienes enlazada en el HTML) */
    font-size: 3.5em;
    color: var(--primary-color);
    text-shadow: 3px 3px var(--secondary-color);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.4em;
    color: #ffcc99; /* Naranja más suave */
    opacity: 0.9;
}

/* Secciones */
section {
    padding: 50px 0;
}

h2 {
    font-family: 'Creepster', cursive;
    font-size: 2.5em;
    color: var(--light-text);
    border-bottom: 3px dashed var(--primary-color); /* Línea discontinua */
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px var(--secondary-color);
}

/* Grid de Juegos */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 15px var(--shadow-color);
    overflow: hidden;
    border: 2px solid var(--secondary-color);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.game-card:hover {
    box-shadow: 0 10px 25px var(--primary-color);
    border-color: var(--primary-color);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1); /* Toque oscuro/dramático */
}

.game-card h3 {
    font-family: 'Creepster', cursive;
    color: var(--primary-color);
    margin: 10px 0;
    font-size: 1.8em;
}

.card-content {
    padding: 20px;
}

.game-card p {
    font-size: 0.95em;
}


/* Footer y Redes Sociales */
.social-links {
    background-color: var(--card-bg);
    padding: 40px 20px;
    text-align: center;
    border-top: 5px double var(--primary-color);
}

.social-links h2 {
    color: var(--light-text);
    border-bottom: none;
    margin-bottom: 20px;
}

.links-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 50px; /* Botones redondos */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Colores específicos de las redes, con un toque de Halloween */
.btn.twitch { background-color: #6441a5; border: 2px solid var(--primary-color); }
.btn.youtube { background-color: #b00000; border: 2px solid var(--primary-color); }
.btn.twitter { background-color: #1A79A5; border: 2px solid var(--primary-color); }
.btn.instagram { 
    background: linear-gradient(45deg, #cc2366, #dc2743); /* Un poco más oscuro */
    border: 2px solid var(--primary-color); 
}

.social-links p {
    margin-top: 15px;
    font-size: 0.85em;
    color: var(--primary-color);
}

/* Media Queries */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
}

/* --- Estilos para el Botón del Catálogo en Index --- */
.btn-primary-index {
    display: inline-block;
    background-color: var(--primary-color); /* Naranja Calabaza */
    color: var(--dark-bg); /* Negro Carbón */
    font-weight: bold;
    font-size: 1.2em; /* Un poco más grande */
    padding: 15px 30px; /* Más padding */
    margin-top: 40px;
    text-decoration: none;
    border-radius: 8px; /* Bordes ligeramente más suaves */
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: 3px solid var(--light-text); /* Borde más grueso */
    /* Sombra de caja para darle un efecto de brillo tenebroso */
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.7); 
}

.btn-primary-index:hover {
    background-color: #e65c00; /* Naranja más oscuro al pasar el mouse */
    transform: scale(1.05);
    /* El brillo aumenta al pasar el mouse */
    box-shadow: 0 0 25px var(--primary-color), 0 0 5px var(--light-text); 
}
