/* --- context.css --- */

.context-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.context-header {
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    color: var(--text-secondary, #8892b0);
    font-weight: 700;
    line-height: 1.5;
}

/* BUSCADOR (Reutilizamos estilos base, pero los aseguramos) */
.search-section {
    width: 100%;
    position: relative;
    z-index: 50;
    margin-bottom: 30px;
}

.custom-input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 12px;
    background: rgba(20, 24, 34, 0.9);
    border: 2px solid var(--neon-blue, #00f2ff);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    outline: none;
    text-align: center;
}

.suggestions-list {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 26, 0.95);
    border: 1px solid var(--border-dark, #2a3441);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    list-style: none;
    padding: 0; margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.sugg-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: 0.2s;
}

.sugg-item:hover { background: rgba(0, 242, 255, 0.1); }
.sugg-img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; background: #fff; }
.sugg-name { font-weight: 800; color: #fff; font-size: 1rem; }

/* CONTENEDOR DE INTENTOS */
.guesses-container {
    width: 100%;
    background: rgba(20, 24, 34, 0.6);
    border: 1px solid var(--border-dark, #2a3441);
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.guesses-header {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-secondary);
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.guesses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* FILA DE INTENTO (LA MAGIA VISUAL) */
.guess-row {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 12px 15px;
    animation: fadeIn 0.4s ease forwards;
}

/* Barra de progreso de fondo */
.guess-bar {
    position: absolute;
    top: 0; left: 0; height: 100%;
    z-index: 1;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Contenido de la fila por encima de la barra */
.guess-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.guess-name {
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.guess-rank {
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botones genéricos */
.btn-context {
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s;
}
.btn-context:hover { transform: scale(1.02); }