/* Quordle Solver Styles */

.solver-wrapper {
    max-width: 1200px;
    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);
}

/* Guess Input Section */
.guess-section {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1.5rem;
}

.guess-input-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.guess-input {
    width: 200px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.guess-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Quordle Grids Container */
.quordle-grids-container {
    margin: 2rem 0;
}

.word-grid-wrapper {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.word-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.word-grid-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-main);
}

.word-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guess-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.quordle-tile {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-main);
    user-select: none;
}

.quordle-tile:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.quordle-tile.gray {
    background-color: #787c7e;
    border-color: #787c7e;
    color: white;
}

.quordle-tile.yellow {
    background-color: #c9b458;
    border-color: #b59f3b;
    color: white;
}

.quordle-tile.green {
    background-color: #6aaa64;
    border-color: #538d4e;
    color: white;
}

/* Results Section */
.results-area {
    margin-top: 2rem;
}

.word-results {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.word-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.word-results-header h5 {
    margin: 0;
    font-weight: 600;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.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);
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
}

.result-word:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    background: rgba(99, 102, 241, 0.05);
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

.grid-label {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .quordle-tile {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .guess-input {
        width: 100%;
        max-width: 200px;
    }
    
    .solver-card {
        padding: 1.5rem;
    }
    
    .word-grid-wrapper {
        padding: 1rem;
    }
}

