/* Rhyme Finder Styles */

.rhyme-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.rhyme-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);
}

.search-section {
    margin-bottom: 2rem;
}

.search-wrapper-rhyme {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box-rhyme {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.3s ease;
}

.search-box-rhyme:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.clear-btn {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}

.search-btn-rhyme {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn-rhyme:hover {
    background: #4f46e5;
    transform: translateY(-50%) scale(1.05);
}

.filter-input {
    max-width: 400px;
    margin: 0 auto;
}

.results-container {
    min-height: 200px;
}

.rhyme-section {
    margin-bottom: 2.5rem;
}

.rhyme-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.rhyme-section-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.syllable-group {
    margin-bottom: 2rem;
}

.syllable-header {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.rhyme-words-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rhyme-word-btn {
    background: #f3f4f6;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.rhyme-word-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.rhyme-word-btn.next-tier {
    background: #d1fae5;
    border-color: #10b981;
}

.rhyme-word-btn.next-tier:hover {
    background: #10b981;
    color: white;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.recent-search-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.recent-search-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
}

.recent-search-word {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-transform: capitalize;
    letter-spacing: -0.01em;
}

.recent-search-card:hover .recent-search-word {
    color: var(--accent-primary);
}

.recent-search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    gap: 0.5rem;
}

.recent-search-stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
}

.recent-search-stat-item i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.recent-search-stat-item span:not(:first-child) {
    font-weight: 500;
}

@media (max-width: 576px) {
    .rhyme-card {
        padding: 1.5rem;
    }
    
    .search-box-rhyme {
        font-size: 1rem;
        padding: 0.875rem 3rem 0.875rem 1rem;
    }
}

