:root { /* Remove this block if vars are only in clay-theme.css */
    /* Keep only layout-specific variables if needed, */
    /* otherwise remove if all colors come from clay-theme.css */
}

.farm-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 5rem); /* Adjusted height calculation */
    background-color: var(--clay-darkest); /* Use theme variable */
    color: var(--clay-text-primary); /* Use theme variable */
    box-sizing: border-box;
    padding: 0rem; /* Add padding to main container */
}

#farm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    background-color: var(--clay-dark); /* Use theme variable */
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--clay-shadow); /* Use theme variable */
    border: 1px solid var(--clay-border); /* Use theme variable */
    flex-shrink: 0; /* Prevent header shrinking */
}

.back-button, .buy-plot-btn {
    /* Styles handled by clay-theme.css */
}

#farm-stats {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
    color: var(--clay-text-secondary); /* Use theme variable */
    font-size: 0.9rem; /* Adjust size */
}

.farm-plots-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* Adjusted min size */
    gap: 1rem; 
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--clay-dark); /* Add background to grid area */
    border-radius: 0.75rem;
    border: 1px solid var(--clay-border);
}

.farm-plot {
    aspect-ratio: 1 / 1; /* Keep layout */
    background: var(--gradient-surface); /* Use theme variable */
    border: 1px solid var(--clay-border); /* Use theme variable */
    border-radius: 0.5rem; /* Adjusted rounding */
    cursor: pointer; /* Keep interaction */
    transition: all 0.2s ease; /* Keep transition */
    display: flex; /* Keep layout */
    flex-direction: column; /* Keep layout */
    justify-content: center; /* Keep layout */
    align-items: center; /* Keep layout */
    padding: 0.75rem; /* Adjusted padding */
    text-align: center; /* Keep layout */
    box-shadow: var(--clay-shadow); /* Use theme variable */
    position: relative; /* Keep layout */
    padding-bottom: 20px; /* Space for progress bar */
    color: var(--clay-text-secondary); /* Use theme variable */
}

.farm-plot img {
    width: 45%; /* Adjusted size */
    height: 45%; /* Adjusted size */
    object-fit: contain; /* Keep layout */
    margin-bottom: 0.5rem; /* Keep spacing */
}
.farm-plot span { /* Target the text */
    font-size: 0.8rem; /* Adjusted size */
    font-weight: 500;
}

.progress-bar-container {
    position: absolute; /* Keep layout */
    bottom: 6px; /* Adjusted position */
    left: 10%; /* Keep layout */
    width: 80%; /* Keep layout */
    height: 6px; /* Adjusted height */
    background-color: var(--clay-darker); /* Use theme variable */
    border-radius: 3px; /* Adjusted rounding */
    overflow: hidden; /* Keep layout */
    border: 1px solid var(--clay-border); /* Add border */
}

.progress-bar {
    height: 100%; /* Keep layout */
    background: var(--gradient-accent); /* Use theme variable */
    border-radius: 3px; /* Keep rounding */
    transition: width 0.5s ease; /* Keep transition */
}

.harvest-tag {
    /* Styles handled by clay-theme.css */
    position: absolute; /* Keep layout */
    bottom: 18px; /* Position above progress bar space */
    left: 50%; /* Keep layout */
    transform: translateX(-50%); /* Keep layout */
    font-size: 0.75rem; /* Adjusted size */
    padding: 0.2rem 0.6rem; /* Adjusted padding */
}
/* Style harvestable plot */
.farm-plot.harvestable {
    border-color: var(--clay-success); /* Use theme variable */
    box-shadow: 0 0 10px var(--clay-success); /* Use theme variable */
}


#farm-footer {
    background-color: var(--clay-dark); /* Use theme variable */
    padding: 1rem; /* Increased padding */
    box-shadow: 0 -4px 12px var(--clay-shadow); /* Use theme variable */
    margin-top: 0.5rem; /* Keep spacing */
    border-top: 1px solid var(--clay-border); /* Use theme variable */
    border-radius: 0.75rem; /* Add rounding */
}

#seed-selection-container {
    display: grid; /* Keep layout */
    grid-template-columns: 3fr 1fr; /* Adjust ratio */
    gap: 1rem; /* Increased gap */
}

.seed-selector {
    display: grid; /* Keep layout */
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* Adjusted min size */
    gap: 0.75rem; /* Adjusted gap */
    max-height: 185px; /* Adjusted height */
    overflow-y: auto; /* Keep layout */
    padding: 0.75rem; /* Adjusted padding */
    background-color: var(--clay-darker); /* Use theme variable */
    border-radius: 0.5rem; /* Keep rounding */
    border: 1px solid var(--clay-border); /* Use theme variable */
}

.seed-item {
    background: var(--gradient-surface); /* Use theme variable */
    border: 1px solid var(--clay-border); /* Use theme variable */
    border-radius: 0.5rem; /* Keep rounding */
    padding: 0.5rem; /* Keep padding */
    cursor: pointer; /* Keep interaction */
    transition: all 0.2s ease; /* Keep transition */
    aspect-ratio: 1 / 1; /* Make square */
    display: flex; /* Center image */
    justify-content: center;
    align-items: center;
}

/* REMOVED HOVER EFFECT FOR SEED ITEM */
.seed-item.selected {
    border-color: var(--clay-focus); /* Use theme variable */
    transform: scale(1.05); /* Keep interaction */
    box-shadow: 0 0 8px var(--clay-glow); /* Use theme variable */
}

.seed-item img {
    width: 90%; /* Adjust size */
    height: 90%; /* Adjust size */
    object-fit: contain; /* Keep layout */
}

.seed-details-container {
    background-color: var(--clay-darker); /* Use theme variable */
    border: 1px solid var(--clay-border); /* Use theme variable */
    border-radius: 0.5rem; /* Keep rounding */
    padding: 1rem; /* Keep padding */
    text-align: left; /* Keep layout */
    color: var(--clay-text-secondary); /* Use theme variable */
}

.seed-details-header {
    display: flex; /* Keep layout */
    align-items: center; /* Keep layout */
    gap: 0.75rem; /* Adjusted gap */
    margin-bottom: 0.75rem; /* Adjusted margin */
    padding-bottom: 0.5rem; /* Add padding */
    border-bottom: 1px solid var(--clay-border); /* Add divider */
}

.seed-details-container h4 {
    margin: 0; /* Keep layout */
    font-size: 1rem; /* Adjusted size */
    font-weight: 600; /* Adjusted weight */
    color: var(--clay-text-primary); /* Use theme variable */
}

.seed-details-container img {
    max-width: 30px; /* Adjusted size */
    margin: 0; /* Keep layout */
}

.seed-details-container p {
    margin: 0.3rem 0; /* Adjusted margin */
    font-size: 0.85rem; /* Adjusted size */
}
.seed-details-container p strong {
    color: var(--clay-text-tertiary); /* Adjust strong tag color */
}
