/* Paleta de colores Clase Cojones! */
:root {
    --bg-dark: #0f172a;      /* Fondo casi negro */
    --card-bg: #1e293b;      /* Fondo de la historia (azul oscuro) */
    --pr-red: #ef4444;       /* Rojo Bandera */
    --pr-blue: #2563eb;      /* Azul Bandera */
    --pr-white: #f8fafc;     /* Texto claro */
}

body {
    background-color: var(--bg-dark) !important; /* Forzamos el fondo oscuro */
    color: var(--pr-white) !important;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* Navbar con degradado de la bandera */
nav {
    background: linear-gradient(90deg, var(--pr-red) 0%, var(--pr-blue) 100%);
    border-bottom: 3px solid var(--pr-white);
}

/* Tarjetas de historias */
.historia-card {
    background-color: var(--card-bg) !important;
    border-left: 5px solid var(--pr-red);
    border-radius: 12px;
    color: var(--pr-white) !important; /* Forzamos texto blanco en la tarjeta */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.historia-card p {
    color: var(--pr-white) !important;
}

/* Botones de votación */
.btn-asco {
    background-color: transparent;
    border: 2px solid var(--pr-red);
    color: var(--pr-red);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 99px;
    transition: all 0.2s;
}

.btn-asco:hover {
    background-color: var(--pr-red);
    color: white;
}

.btn-buscaste {
    background-color: transparent;
    border: 2px solid var(--pr-blue);
    color: var(--pr-blue);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 99px;
    transition: all 0.2s;
}

.btn-buscaste:hover {
    background-color: var(--pr-blue);
    color: white;
}

/* Inputs y Selects */
input, textarea, select {
    background-color: #334155 !important;
    border: 2px solid #475569 !important;
    color: white !important;
}

input:focus, textarea:focus {
    border-color: var(--pr-red) !important;
    outline: none;
}

/* Estilo del Logo */
.logo-font {
    text-shadow: 2px 2px 0px var(--bg-dark);
}
.logo-font {
    transition: all 0.3s ease;
}

.logo-font:hover {
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.8));
    transform: scale(1.05) rotate(-1deg);
}

.logo-font span {
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}
/* Botones de compartir */
.share-btn {
    transition: transform 0.2s ease, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn:active {
    transform: scale(0.95);
}

/* Ajuste para que los botones de votación no se vean apretados */
.btn-asco, .btn-buscaste {
    min-width: 80px;
    white-space: nowrap;
}
.bg-pr-blue { background-color: var(--pr-blue); }

/* Efecto para el más votado */
#comments-container div:first-child {
    border-left-color: var(--accent-yellow) !important;
}

input::placeholder {
    color: #64748b;
    font-size: 0.8rem;
}
.filter-btn {
    background-color: #1e293b;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--pr-red);
    color: white;
    background-color: rgba(239, 68, 68, 0.1);
}
#badges-container span {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    cursor: help;
    transition: transform 0.2s;
}

#badges-container span:hover {
    transform: scale(1.3) rotate(10deg);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}
/* Footer Fijo y Bonito */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9); /* Fondo oscuro con transparencia */
    backdrop-filter: blur(10px); /* Efecto de cristal empañado */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 12px 0;
    z-index: 100;
}
.footer-content {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.footer-content span {
    color: var(--pr-red);
}

/* Espacio extra al final del feed para que el footer no tape la última queja */
main {
    padding-bottom: 80px !important;
}
/* Post Infame (Salón de la Infamia) */
.infame-card {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, var(--card-bg) 100%) !important;
}

/* Dropdown de Notificaciones */
#noti-dropdown {
    max-height: 300px;
    overflow-y: auto;
}