/* Animal Sounds Quiz - Complete Styling */

.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #10b981;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '🐶🦁🐘';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

.animal-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    color: #374151;
    min-width: 140px;
}

.mode-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.mode-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.mode-icon {
    font-size: 36px;
}

.mode-name {
    font-size: 16px;
}

/* Mode Sections */
.mode-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.mode-section.active {
    display: block;
}

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

/* Category Filter */
.category-filter {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.category-filter h3 {
    color: #10b981;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.category-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 15px;
    color: #374151;
}

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

.category-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.category-btn span {
    font-size: 20px;
}

/* Search Section */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135d, #ecfdf5 0%, #d1fae5 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.stats-card .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #10b981;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

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

.animal-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.animal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.animal-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

.animal-card:hover::before {
    opacity: 1;
}

.animal-card.learned {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.animal-emoji {
    font-size: 56px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    animation: animalFloat 3s ease-in-out infinite;
}

@keyframes animalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animal-name {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.animal-category {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #ef4444;
}

.learned-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

/* Quiz Mode */
.quiz-header {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.quiz-header h2 {
    color: #10b981;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.quiz-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-stats .stat-value {
    font-size: 24px;
    color: #10b981;
    font-weight: 900;
}

/* Quiz Settings */
.quiz-settings {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.quiz-settings label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
    color: #374151;
}

.quiz-select {
    padding: 12px 16px;
    border: 2px solid #10b981;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Quiz Question Card */
.quiz-question-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
    border: 3px solid #10b981;
}

.play-sound-btn {
    padding: 20px 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.play-sound-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.play-sound-btn:active {
    transform: scale(0.95);
}

.play-sound-btn.large {
    padding: 24px 50px;
    font-size: 24px;
}

.sound-hint {
    margin-top: 20px;
    font-size: 18px;
    color: #6b7280;
    font-weight: 600;
}

/* Quiz Options */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option {
    background: white;
    padding: 25px 15px;
    border-radius: 15px;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quiz-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.quiz-option-emoji {
    font-size: 48px;
}

.quiz-option-name {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
}

.quiz-option.correct {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    animation: correctPulse 0.6s ease;
}

.quiz-option.correct .quiz-option-name {
    color: white;
}

.quiz-option.wrong {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
    animation: wrongShake 0.6s ease;
}

.quiz-option.wrong .quiz-option-name {
    color: white;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Quiz Result */
.quiz-result {
    display: none;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.quiz-result.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.result-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.result-message {
    font-size: 36px;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 15px;
}

.result-score {
    font-size: 28px;
    color: #6b7280;
    margin-bottom: 15px;
}

.result-score span {
    color: #10b981;
    font-weight: 900;
    font-size: 36px;
}

.result-accuracy {
    font-size: 22px;
    color: #6b7280;
    margin-bottom: 30px;
}

.result-accuracy span {
    color: #3b82f6;
    font-weight: 900;
    font-size: 28px;
}

/* Favorites Mode */
.favorites-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.favorites-header h2 {
    color: #10b981;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.favorites-subtitle {
    color: #6b7280;
    font-size: 16px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 16px;
    color: #6b7280;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-large {
    padding: 18px 45px;
    font-size: 20px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #10b981;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.info-box h4 {
    color: #065f46;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.info-item strong {
    color: #065f46;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Features Box */
.features-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(245, 158, 11, 0.2);
    margin-top: 30px;
}

.features-box h4 {
    color: #92400e;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.features-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-box li {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #78350f;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid rgba(245, 158, 11, 0.1);
}

.features-box li strong {
    color: #92400e;
}

/* SEO Content */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #10b981;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #10b981;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 15px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
}

.notification-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

/* Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .mode-btn {
        width: 100%;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
    }
    
    .animals-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .animal-emoji {
        font-size: 30px;
        line-height: 32px;
    }
	
    .favorite-btn {
		width: 20px;
		height: 20px;
		font-size: 13px;
		background: #e0e2e5;
		border-radius: 0px;
	}
	
    .animal-name {
        font-size: 14px;
    }
    
    .quiz-header {
        padding: 20px;
    }
    
    .quiz-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .quiz-question-card {
        padding: 30px 20px;
    }
    
    .play-sound-btn {
        padding: 16px 30px;
        font-size: 18px;
    }
    
    .quiz-options {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .quiz-option-emoji {
        font-size: 36px;
    }
    
    .quiz-option-name {
        font-size: 14px;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .tool-header {
        padding: 40px 20px;
    }
    
    .tool-header h1 {
        font-size: 28px;
    }
    
    .tool-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-separator {
        display: none;
    }
    
    .stats-card {
        flex-direction: column;
    }
    
    .animals-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .animal-card {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .result-message {
        font-size: 28px;
    }
    
    .result-score {
        font-size: 22px;
    }
    
    .result-score span {
        font-size: 28px;
    }
    
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}







@media (max-width:280px){
	
}

@media (max-width:767px){
	.mode-btn {
        width: auto;
    }
	.mode-selector {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-buttons {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-btn {
        width: auto;
    }
	.stats-card {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
	.stats-card .stat-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0px;
	}
	.stat-icon {
		font-size: 30px;
	}

	.stat-value {
		font-size: 28px;
		font-weight: 900;
		color: #10b981;
	}

	.stat-label {
		font-size: 12px;
		color: #6b7280;
		font-weight: 600;
	}
}

@media (max-width:1024px) and (min-width:768px) {
		.mode-btn {
        width: auto;
    }
	.mode-selector {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-buttons {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-btn {
        width: auto;
    }
	.stats-card {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
	.stats-card .stat-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0px;
	}
	.stat-icon {
		font-size: 30px;
	}

	.stat-value {
		font-size: 28px;
		font-weight: 900;
		color: #10b981;
	}

	.stat-label {
		font-size: 12px;
		color: #6b7280;
		font-weight: 600;
	}
}
@media (max-width:1280px) and (min-width:1024px) {
	
}
@media (min-width:1280px) and (max-width:1400px) {
	.visual-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 15px;
		perspective: 1000px;
	}
}
/* ==================== PLAY & INFO BUTTONS ==================== */

.animal-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.play-btn:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.info-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* ==================== ANIMAL MODAL ==================== */

.animal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.animal-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: #dc2626;
}

.modal-emoji {
    font-size: 80px;
    text-align: center;
    padding: 25px 20px 10px;
}

.modal-content {
    padding: 15px 25px 25px;
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 18px;
    color: #1f2937;
    text-align: center;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.detail-item {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.detail-item strong {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.detail-item span {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.modal-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.modal-info strong {
    display: block;
    font-size: 14px;
    color: #065f46;
    margin-bottom: 8px;
}

.modal-info p {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-play-btn,
.modal-favorite-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-play-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.modal-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.modal-favorite-btn {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.modal-favorite-btn:hover {
    background: #e5e7eb;
}

.modal-favorite-btn.active {
    background: #fecaca;
    color: #ef4444;
    border-color: #ef4444;
}

/* Mobile responsive for buttons and modal */
@media (max-width: 767px) {
	.animal-card div {
		margin: 0;
	}
    .animal-actions {
        gap: 5px;
        margin-top: 8px;
    }
    
    .action-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .modal-emoji {
        font-size: 60px;
        padding: 20px 15px 8px;
    }
    
    .modal-content {
        padding: 12px 18px 18px;
    }
    
    .modal-content h2 {
        font-size: 22px;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-play-btn,
    .modal-favorite-btn {
        width: 100%;
    }
}