﻿/* seed-bank/seed-bank.css */

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}
.page-header h1 {
    font-weight: 300;
    font-size: 3rem;
    color: var(--accent-color-darker, #4a7c4a);
}

/* Filter Bar Styles */
#filter-section {
    margin-bottom: 2.5rem;
}
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}
.filter-container > * {
    flex: 1;
}
#seed-search-bar {
    min-width: 300px;
    flex-grow: 3;
}

/* Seed Card Styles */
.seed-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.seed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.seed-card-img {
    /* --- THIS IS THE CHANGE FOR SQUARE IMAGES --- */
    aspect-ratio: 1 / 1; /* Makes the element a perfect square */
    width: 100%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.seed-card-body {
    padding: 1rem;
    flex-grow: 1;
}
.seed-card-body .card-title {
    font-weight: 600;
    color: var(--accent-color-darker, #4a7c4a);
    margin-bottom: 0.1rem;
}
.seed-card-body .scientific-name {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 0.75rem;
}
.seed-card-body .seed-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.seed-tags {
    margin-bottom: 1rem;
}
.seed-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: color-mix(in srgb, var(--accent-color, #609966) 20%, #ffffff);
    color: var(--accent-color-darker, #4a7c4a);
    border: 1px solid color-mix(in srgb, var(--accent-color, #609966) 50%, #ffffff);
}

/* --- NEW styles for the icon-based details grid --- */
.details-section {
    margin-top: 1rem;
}
.details-section h6 {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.75rem;
}
.icon-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two neat columns */
    gap: 0.75rem;
    font-size: 0.9rem;
}
.icon-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}
.icon-detail-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.instructions-list {
    font-size: 0.85rem;
    padding-left: 1.25rem;
    margin-bottom: 0;
}
.instructions-list li {
    margin-bottom: 0.25rem;
}

.seed-card-footer {
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}
.seed-card-footer h6 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.seed-card-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}