@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #161920, #2a0a3a);
    color: #fff;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 30px; 
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(255, 119, 0, 0.4);
    border: 2px solid #ff7700;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Creepster', cursive;
    color: #ff7700;
    font-size: 3rem;
    margin-bottom: 10px;
}

p {
    color: #b0b0b0;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; 
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #ff7700;
}

/* Aplicamos estilo a todos los inputs, textarea, y select */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background-color: #161920;
    border: 2px solid #9c27b0;
    border-radius: 10px;
    /* Mantenemos el padding interno de 12px para que el texto no toque el borde */
    padding: 12px; 
    color: #fff;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box; /* Añadimos esto para que el padding se incluya en el ancho total y no haya desborde */
}

/* --- CORRECCIÓN FINAL: Desactivar la redimensión del textarea --- */
textarea {
    resize: none; 
}

/* Sobreescribimos la apariencia nativa del SELECT */
select {
    /* Oculta la flecha nativa */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Añadimos un icono SVG blanco de flecha hacia abajo */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 14px;
    padding-right: 35px; 
}

/* Estilo para las opciones dentro del select para que tengan texto blanco */
select option {
    background-color: #161920;
    color: #fff;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #9c27b0;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #ff7700;
    cursor: pointer;
    border-radius: 50%;
}

button {
    background-color: #ff7700;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #9c27b0;
    color: #fff;
    box-shadow: 0 0 15px #ff7700;
}

.hidden {
    display: none;
}

#playlist-result {
    margin-top: 30px;
    background-color: #161920;
    border-radius: 10px;
    padding: 20px;
    border: 2px dashed #9c27b0;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-link {
    color: #ff7700;
    text-decoration: none;
    font-weight: bold;
}

.auth-form a {
    color: #ff7700;
    font-weight: bold;
    text-decoration: none;
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
}

/* Estilos para el botón de Google y el separador */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

.google-btn:hover {
    background-color: #f1f1f1;
}

.google-btn img {
    width: 20px; /* Tamaño reducido */
    height: 20px; /* Tamaño reducido */
}

.separator {
    text-align: center;
    color: #b0b0b0;
    margin: 15px 0;
}

/* Estilos para chips (géneros/artistas) */
.genre-chip {
    display: inline-block;
    background-color: #3e3e3e;
    color: white;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.genre-chip.selected {
    background-color: #9c27b0;
    border-color: #ff7700;
}
.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* --- ESTILOS PARA ENLACES DE PRIVACIDAD --- */

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.auth-footer p, .footer-link {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.auth-footer a, .footer-link a {
    color: #ff7700;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover, .footer-link a:hover {
    color: #9c27b0;
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 30px;
}

/* ========================================================= */
/* --- NUEVOS ESTILOS PARA EL FEED Y DETALLE (SIMULACIÓN APP) --- */
/* ========================================================= */

.playlist-card {
    background-color: #1a1a1a; /* Fondo más oscuro */
    border: 1px solid #333;
    border-radius: 15px; /* Bordes más redondeados */
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer; /* Indica que es clickable (para "entrar") */
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.playlist-card:hover {
    transform: translateY(-5px); /* Efecto 3D al pasar el mouse */
    box-shadow: 0 8px 20px rgba(255, 119, 0, 0.2); /* Sombra naranja */
}

.playlist-card h3 {
    color: #ff7700;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.playlist-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: flex-start; /* Alineamos a la izquierda */
    gap: 20px; /* Espacio entre likes y comentarios */
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid #333;
    padding-top: 10px;
}

/* Estilos para los contadores de likes y comentarios (icono + texto) */
.interaction-count {
    display: flex;
    align-items: center;
    color: #9c27b0;
    font-weight: bold;
    font-size: 0.9rem;
}

.interaction-count span {
    margin-left: 5px;
    color: #fff;
}

/* Iconos de interacciones (usamos íconos unicode por simplicidad) */
.like-icon, .comment-icon {
    font-size: 1.2rem;
    margin-right: 2px;
}

.like-icon {
    color: #ff7700; /* Corazón naranja */
}

.comment-icon {
    color: #9c27b0; /* Burbuja morada */
}

/* Ocultamos el enlace antiguo de Spotify de las tarjetas del feed */
.spotify-link {
    display: none;
}

/* Estilo para el botón de Spotify en la página de detalle */
#spotify-open-btn {
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
}

/* === TEMPORARY FIX: HIDE SOCIAL INTERACTIONS IN FEED CARDS === */
.playlist-card .card-footer {
    display: none !important;
}