/* ============================================
   Collections & Species Database Styles
   ============================================ */

.container-wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    font-size: 13px;
    margin-bottom: 15px;
    color: #666;
}

.breadcrumb a {
    color: #006d33;
}

.collections-layout {
    display: flex;
    gap: 30px;
}

.collections-main {
    flex: 1;
}

.collections-main h2 {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

.collection-highlight {
    color: #006d33;
}

/* Collections Grid (index page) */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.collection-card {
    text-align: center;
}

.collection-card a {
    display: block;
    text-decoration: none;
    color: #006d33;
    font-size: 14px;
}

.collection-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    transition: opacity 0.2s;
}

.collection-card img:hover {
    opacity: 0.85;
}

.collection-card .collection-name {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

/* Species Grid */
.species-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.species-card {
    text-align: center;
}

.species-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.2s;
}

.species-card img:hover {
    transform: scale(1.03);
}

.species-name {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-style: italic;
    color: #006d33;
    line-height: 1.3;
}

/* Sidebar */
.collections-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.collections-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.sidebar-species,
.sidebar-collection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sidebar-species img,
.sidebar-collection img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.sidebar-species span,
.sidebar-collection span {
    font-size: 12px;
    font-style: italic;
    color: #006d33;
    line-height: 1.3;
}

.sidebar-collection a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-collection a:hover span {
    text-decoration: underline;
}

/* Background styling to match original */
body {
    background-image: url('images/2020-03-bunchberry-background-1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.collections-main,
.collections-sidebar {
    background: rgba(255, 255, 255, 0.92);
    padding: 20px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .collections-layout {
        flex-direction: column;
    }

    .collections-sidebar {
        width: 100%;
    }

    .collections-grid,
    .species-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .collections-grid,
    .species-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
