: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 */
}

.hatchery-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: 1.5rem; /* Add padding to main container */
}

#hatchery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.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 */
}

#hatchery-back-button {
    /* Styles handled by clay-theme.css */
}

#hatchery-header h1 {
    font-size: 1.5rem; /* Adjusted size */
    font-weight: 600; /* Adjusted weight */
    color: var(--clay-text-primary); /* Use theme variable */
    margin: 0; /* Remove default margin */
}

.hatchery-slots-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Adjusted min size */
    gap: 1rem; /* Adjusted gap */
    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);
}

.hatchery-slot {
    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 */
    color: var(--clay-text-secondary); /* Use theme variable */
}

/* REMOVED HOVER EFFECTS FOR HATCHERY SLOT
.hatchery-slot:hover {
    transform: translateY(-3px);
    border-color: var(--clay-focus);
    box-shadow: var(--clay-shadow-heavy);
}

.hatchery-slot.empty:hover {
    background: var(--gradient-raised);
} */

.hatchery-slot img {
    width: 60%; /* Adjusted size */
    height: 60%; /* Adjusted size */
    object-fit: contain; /* Keep layout */
    margin-bottom: 0.5rem; /* Keep spacing */
}

.hatchery-slot span {
    font-size: 0.8rem; /* Adjusted size */
    font-weight: 500;
}

.progress-bar-container {
    position: absolute; /* Keep layout */
    bottom: 8px; /* 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 subtle 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 */
}

.hatch-tag {
    /* Styles handled by clay-theme.css */
    margin-top: 0.5rem; /* Keep spacing */
    position: absolute; /* Position tag */
    bottom: 18px; /* Position above progress bar space */
    left: 50%;
    transform: translateX(-50%);
}
/* Style for hatching state */
.hatchery-slot.hatchable {
    border-color: var(--clay-success); /* Green border when hatchable */
    box-shadow: 0 0 10px var(--clay-success); /* Green glow */
}
/* REMOVED HOVER EFFECT FOR HATCHABLE SLOT
.hatchery-slot.hatchable:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, var(--clay-medium) 100%);
} */


#hatchery-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: 1.5rem; /* Keep spacing */
    border-top: 1px solid var(--clay-border); /* Use theme variable */
    border-radius: 0.75rem; /* Add rounding */
}

#egg-selection-container {
    display: grid; /* Keep layout */
    grid-template-columns: 3fr 1fr; /* Adjust ratio */
    gap: 1rem; /* Increased gap */
}

.egg-selector {
    display: grid; /* Keep layout */
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* Adjusted min size */
    gap: 0.75rem; /* Adjusted gap */
    max-height: 150px; /* 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 */
}

.egg-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 */
    position: relative; /* Keep layout */
    aspect-ratio: 1 / 1; /* Make items square */
    display: flex; /* Center image */
    justify-content: center;
    align-items: center;
}

/* REMOVED HOVER EFFECT FOR EGG ITEM */
.egg-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 */
}

.egg-item img {
    width: 90%; /* Adjust size */
    height: 90%; /* Adjust size */
    object-fit: contain; /* Keep layout */
}

.egg-quantity {
    position: absolute; /* Keep layout */
    bottom: 3px; /* Adjusted position */
    right: 3px; /* Adjusted position */
    background-color: var(--clay-overlay); /* Use theme variable */
    color: var(--clay-text-primary); /* Use theme variable */
    font-size: 0.7rem; /* Adjusted size */
    padding: 1px 4px; /* Adjusted padding */
    border-radius: 0.25rem; /* Keep rounding */
    border: 1px solid var(--clay-border); /* Add subtle border */
}

.egg-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 */
}

.egg-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 */
}

.egg-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 */
}

.egg-details-container img {
    max-width: 30px; /* Adjusted size */
    margin: 0; /* Keep layout */
}

.egg-details-container p {
    margin: 0.3rem 0; /* Adjusted margin */
    font-size: 0.85rem; /* Adjusted size */
}
.egg-details-container p strong {
    color: var(--clay-text-tertiary); /* Adjust strong tag color */
}

.egg-item.disabled {
    /* Styles handled by clay-theme.css */
}
