/* Bağnam specific styles */

.home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.guess-input-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

#word-input {
    flex: 1;
    min-height: 48px;
    font-size: 1.1rem;
    padding: 12px 16px;
    background: var(--code-bg);
    border: 1px solid rgba(200, 162, 200, 0.4);
    border-radius: 12px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

#word-input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(166, 77, 255, 0.3);
}

#btn-guess {
    min-height: 48px;
    padding: 0 24px;
    font-size: 1rem;
}

.history-panel {
    background: var(--footer-bg);
    border: 1px solid var(--lilac-muted);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 300px; /* Ensure space for list */
    overflow: hidden;
}

.history-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(138, 43, 226, 0.15);
    font-weight: 600;
    color: var(--lilac);
    border-bottom: 1px solid var(--lilac-muted);
    font-size: 0.95rem;
}

#guess-history {
    list-style: none;
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.history-item .word {
    text-transform: capitalize;
}

.history-item .rank-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.history-item .rank {
    font-size: 1.15rem;
    font-weight: 800;
}

.history-item .score {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Color scaling classes */
/* Target word - very bright green */
.history-item.color-1 { background: rgba(46, 204, 113, 0.5); border: 1px solid rgba(46, 204, 113, 1); }
/* Extremely close (Rank < 100) - green */
.history-item.color-2 { background: rgba(39, 174, 96, 0.4); border: 1px solid rgba(39, 174, 96, 0.8); }
/* Very close (Rank < 1000) - yellow-green */
.history-item.color-3 { background: rgba(241, 196, 15, 0.4); border: 1px solid rgba(241, 196, 15, 0.8); }
/* Moderate (Rank < 10000) - orange */
.history-item.color-4 { background: rgba(230, 126, 34, 0.3); border: 1px solid rgba(230, 126, 34, 0.7); }
/* Far (Rank >= 10000) - default dark background */
.history-item.color-5 { background: var(--input-bg); border: 1px solid transparent; }

.success-banner {
    background: var(--success-bg);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-main);
}

.hidden {
    display: none !important;
}

/* Modal and toast styles exist in shared/portal style but if needed can override */
