/* Biomes Database Styles */

.biomes-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Category Section */
.biome-category {
    margin-top: 40px;
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #7cb342;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Biome Grid */
.biomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

/* Biome Card */
.biome-card {
    background: #f3ede1;
    border: 2px solid #000;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.05s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
}

.biome-card:hover {
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    transform: translate(2px, 2px);
}

.biome-card:active {
    box-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    transform: translate(3px, 3px);
}

.biome-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.biome-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.biome-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.05s ease;
}

.biome-card:hover .biome-card-image img {
    transform: scale(1.02);
}

.biome-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.biome-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px 0;
    line-height: 1.3;
    border-bottom: 2px solid #000;
    padding-bottom: 3px;
}

.biome-description {
    font-size: 13px;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

/* Search Functionality */
.biome-search-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 2px solid #000;
    border-radius: 0;
    transition: all 0.05s ease;
    background: #fff;
    font-family: inherit;
}

.biome-search-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: inset 0 0 0 2px #8B6F47;
}

/* Search Bar Container */
.search-bar-container {
    margin-bottom: 40px;
}

.welcome-search {
    display: flex;
    gap: 6px;
}

.welcome-search input[type="text"] {
    flex: 1;
}

.welcome-search button,
.search-btn {
    padding: 6px 10px !important;
    background: #ffa500 !important;
    color: #000 !important;
    border: 3px solid #000 !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    transition: all 0.05s !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: "Arial", sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.welcome-search button:hover,
.search-btn:hover {
    background: #ffb733 !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3) !important;
    transform: translate(2px, 2px) !important;
}

.welcome-search button:active,
.search-btn:active {
    box-shadow: 1px 1px 0 rgba(0,0,0,0.3) !important;
    transform: translate(3px, 3px) !important;
}

/* Welcome Header */
.welcome-section-header {
    background: linear-gradient(135deg, #2d5016 0%, #558b2f 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-section-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
}

.welcome-section-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
    .biomes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .biome-title {
        font-size: 1.1rem;
    }

    .welcome-section-header h1 {
        font-size: 1.8rem;
    }

    .biome-card-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .biomes-grid {
        grid-template-columns: 1fr;
    }

    .welcome-search {
        flex-direction: column;
    }

    .welcome-search button {
        width: 100%;
    }

    .biome-card-content {
        padding: 12px;
    }

    .category-title {
        font-size: 1.2rem;
    }
}

/* No results message */
.no-biomes {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-biomes h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-biomes p {
    font-size: 1rem;
    margin: 0;
}
