/* Combinations Solver Styles */

.solver-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.solver-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solver-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f7c948 0%, #f59e0b 100%);
}

.solver-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Input Section */
.combinations-input {
    font-size: 1.1rem;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.combinations-input:focus {
    border-color: #f7c948;
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.2);
    outline: none;
}

.combinations-input::placeholder {
    color: #9ca3af;
}

/* Combo Preview Grid */
.combo-preview {
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.combo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.combo-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.combo-tile:hover {
    border-color: #f7c948;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Stats Container */
.stats-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #f7c948;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Results Area */
.results-area {
    margin-top: 2rem;
}

.results-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.results-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.results-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.results-section-count {
    background: #f7c948;
    color: #1a1a1a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.word-item {
    background: #f9fafb;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.word-item:hover {
    border-color: #f7c948;
    background: #fffbeb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.word-item .word-breakdown {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 400;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading-state {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(247, 201, 72, 0.2);
    border-top-color: #f7c948;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .solver-card {
        padding: 1.5rem;
    }
    
    .combo-tile {
        min-width: 50px;
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
    
    .words-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.5rem;
    }
    
    .word-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

