/* Corvidae-specific styles */
.corvidae-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #e0e0e0;
}

.corvidae-header {
    text-align: center;
    margin-bottom: 3rem;
}

.corvidae-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff8800, #ffaa44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.corvidae-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.wiki-section {
    margin-bottom: 3rem;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid #ff8800;
    transition: all 0.3s ease;
    outline: none;
}

.wiki-section:focus {
    background: rgba(50, 50, 50, 0.95);
    border-left-color: #ffaa33;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.3);
    transform: translateX(5px);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ff8800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wiki-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.wiki-content p {
    margin-bottom: 1.2rem;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.species-card {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #555;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.species-card:hover {
    transform: translateY(-2px);
    border-color: #ff8800;
}

.species-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff8800;
    margin-bottom: 0.5rem;
}

.species-scientific {
    font-style: italic;
    color: #888;
    margin-bottom: 1rem;
}

.species-description {
    line-height: 1.6;
}

.fact-box {
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid rgba(255, 136, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.fact-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff8800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.characteristics-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.characteristic-item {
    background: rgba(30, 30, 30, 0.6);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ff8800;
}

.characteristic-name {
    font-weight: 600;
    color: #ff8800;
    margin-bottom: 0.5rem;
}

.intelligence-examples {
    list-style: none;
    padding: 0;
}

.intelligence-examples li {
    background: rgba(30, 30, 30, 0.6);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ff8800;
    position: relative;
    padding-left: 2.5rem;
}

.intelligence-examples li::before {
    content: "🧠";
    position: absolute;
    left: -0.5rem;
    top: 0.8rem;
    background: #ff8800;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.subsection-title {
    color: #ff8800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.fun-facts-list {
    list-style: none;
    padding: 0;
}

.fun-fact-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 6px;
    border-left: 3px solid #ff8800;
}

/* Species List Styles */
.species-filter-container {
    margin-bottom: 2rem;
    background: rgba(30, 30, 30, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #555;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.search-box {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid #666;
    border-radius: 6px;
    padding: 0.8rem;
    color: #e0e0e0;
    font-size: 1rem;
    width: 100%;
}

.search-box:focus {
    outline: none;
    border-color: #ff8800;
    box-shadow: 0 0 0 2px rgba(255, 136, 0, 0.2);
}

.filter-select {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid #666;
    border-radius: 6px;
    padding: 0.8rem;
    color: #e0e0e0;
    font-size: 1rem;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #ff8800;
}

.clear-filters {
    background: #ff8800;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-filters:hover {
    background: #e67700;
}

.species-count {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 1rem;
}

.species-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.species-item {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.species-item:hover {
    transform: translateY(-2px);
    border-color: #ff8800;
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.1);
}

.species-item.hidden {
    display: none;
}

.species-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.8rem;
}

.species-icon {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
    filter: drop-shadow(0 0 2px rgba(255, 136, 0, 0.3));
}

.species-title {
    flex: 1;
}

.species-links {
    display: flex;
    gap: 0.5rem;
}

.wiki-link {
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid #ff8800;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    color: #ff8800;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.wiki-link:hover {
    background: rgba(255, 136, 0, 0.2);
    border-color: #ffaa33;
    color: #ffaa33;
    transform: translateY(-1px);
}

.species-common-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff8800;
    margin-bottom: 0.3rem;
}

.species-scientific-name {
    font-style: italic;
    color: #888;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.species-details {
    font-size: 0.9rem;
    line-height: 1.5;
}

.species-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding: 0.2rem 0;
}

.detail-label {
    color: #b0b0b0;
    font-weight: 500;
}

.detail-value {
    color: #e0e0e0;
    text-align: right;
}

.region-tag {
    display: inline-block;
    background: rgba(255, 136, 0, 0.2);
    color: #ff8800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0.2rem 0.2rem 0 0;
}

.no-results {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 3rem;
    font-size: 1.1rem;
    display: none;
}

.no-results.show {
    display: block;
}

@media (max-width: 768px) {
    .corvidae-container {
        padding: 1rem;
    }
    
    .corvidae-title {
        font-size: 2.5rem;
    }
    
    .wiki-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .species-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .species-list {
        grid-template-columns: 1fr;
    }
}
