/* Wordle Solver Styles */

.solver-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.solver-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.grid-section {
    position: relative;
}

.grid-label {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.grid-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tile-input {
    width: 56px;
    height: 56px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    caret-color: transparent;
    transition: all 0.2s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.tile-input:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Specific Colors */
.tile-correct {
    background-color: rgba(106, 170, 100, 0.1); /* Light Green */
    border-color: #6aaa64;
    color: #6aaa64;
}
.tile-correct:focus, .tile-correct:not(:placeholder-shown) {
    background-color: #6aaa64;
    color: white;
    border-color: #538d4e;
}

.tile-valid {
    background-color: rgba(201, 180, 88, 0.1); /* Light Yellow */
    border-color: #c9b458;
    color: #b59f3b;
}
.tile-valid:focus, .tile-valid:not(:placeholder-shown) {
    background-color: #c9b458;
    color: white;
    border-color: #b59f3b;
}

.absent-input {
    max-width: 320px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    padding: 0.75rem;
}

.absent-input:focus {
    border-color: var(--text-muted);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* Result Chips */
.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.result-word {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.result-word:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.x-small {
    font-size: 0.75rem;
}

@media (max-width: 576px) {
    .tile-input {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    .solver-card {
        padding: 1.5rem;
    }
}
