/* Animal Anagram Tool - WordPress Plugin Styles - FIXED VERSION 2.0.0 */

.animal-anagram-tool-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: #f3f4f6;
}

/* Filter Section */
.filter-section {
    margin-bottom: 30px;
    text-align: center;
}

.filter-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #374151;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #374151;
}

.filter-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

/* Random Button */
.random-section {
    margin-bottom: 30px;
    text-align: center;
}

.random-btn {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.random-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

/* Animal Grid */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.animal-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.animal-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.animal-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.animal-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.animal-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.animal-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease-in-out;
}

.results-section.hidden {
    display: none;
}

.animal-info-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.animal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.animal-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.category-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.animal-illustration {
    font-size: 64px;
    line-height: 1;
}

/* Anagrams Grid */
.anagrams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.anagram-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out both;
}

.anagram-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.anagram-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.anagram-text {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.copy-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.anagram-meaning {
    font-size: 16px;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.5;
}

.language-info {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.cta-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Back Button */
.back-button-container {
    text-align: center;
    margin-top: 30px;
}

.back-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .animal-anagram-tool-container {
        padding: 15px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .animal-grid {
        grid-template-columns: 1fr;
    }
    
    .animal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .animal-title h2 {
        font-size: 24px;
    }
    
    .animal-illustration {
        font-size: 48px;
    }
    
    .anagrams-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .random-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .animal-card {
        padding: 15px;
    }
    
    .anagram-card {
        padding: 20px;
    }
    
    .anagram-text {
        font-size: 20px;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}