/* =================================================================
   UNDERGROUND FARMER - SEEDS SYSTEM STYLES
   ================================================================= */

/* Seeds dialog */
.seeds-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    max-width: 90vw;
    max-height: 80vh;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 2px solid #3498db;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1100;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    animation: seedsDialogSlideIn 0.3s ease-out;
}

@keyframes seedsDialogSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Dialog header */
.seeds-dialog-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-bottom: 2px solid #3498db;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.seeds-dialog-header h3 {
    color: #ecf0f1;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.seeds-back-btn,
.seeds-close-btn {
    background: transparent;
    border: none;
    color: #ecf0f1;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seeds-back-btn {
    position: absolute;
    left: 12px;
}

.seeds-close-btn {
    position: absolute;
    right: 12px;
    font-size: 20px;
}

.seeds-back-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.seeds-close-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Dialog content */
.seeds-dialog-content {
    max-height: calc(80vh - 60px);
    overflow-y: auto;
    padding: 16px;
}

/* Scrollbar styling */
.seeds-dialog-content::-webkit-scrollbar {
    width: 6px;
}

.seeds-dialog-content::-webkit-scrollbar-track {
    background: rgba(52, 73, 94, 0.3);
    border-radius: 3px;
}

.seeds-dialog-content::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.6);
    border-radius: 3px;
}

.seeds-dialog-content::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

/* Main seed categories */
.seed-main-category {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seed-main-category:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(52, 152, 219, 0.2));
    border-color: rgba(46, 204, 113, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.seed-main-icon {
    font-size: 32px;
    margin-right: 16px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.seed-main-info {
    flex: 1;
}

.seed-main-name {
    color: #ecf0f1;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.seed-main-desc {
    color: #bdc3c7;
    font-size: 12px;
}

.seed-main-arrow {
    font-size: 18px;
    color: #3498db;
    margin-left: 12px;
}

/* Sub categories */
.seed-sub-category {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.1));
    border: 2px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seed-sub-category:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2));
    border-color: rgba(155, 89, 182, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.seed-sub-icon {
    font-size: 24px;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.seed-sub-info {
    flex: 1;
}

.seed-sub-name {
    color: #ecf0f1;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
}

.seed-sub-count {
    color: #bdc3c7;
    font-size: 11px;
}

.seed-sub-arrow {
    font-size: 16px;
    color: #9b59b6;
    margin-left: 8px;
}

/* Plants grid */
.seed-plants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.seed-plant-option {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(243, 156, 18, 0.1));
    border: 2px solid rgba(241, 196, 15, 0.3);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.seed-plant-option:hover {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.2));
    border-color: rgba(241, 196, 15, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.seed-plant-icon {
    font-size: 28px;
    margin-bottom: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.seed-plant-info {
    width: 100%;
}

.seed-plant-name {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.seed-plant-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.seed-plant-cost,
.seed-plant-time,
.seed-plant-resource {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-right: 4px;
}

.seed-plant-cost {
    color: #f1c40f;
}

.seed-plant-time {
    color: #3498db;
}

.seed-plant-resource {
    color: #2ecc71;
}

/* Responsive design */
@media (max-width: 600px) {
    .seeds-dialog {
        width: 95vw;
        max-width: none;
    }
    
    .seed-plants-grid {
        grid-template-columns: 1fr;
    }
    
    .seed-main-category,
    .seed-sub-category {
        padding: 12px;
    }
    
    .seed-main-icon,
    .seed-sub-icon {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }
    
    .seed-main-name {
        font-size: 16px;
    }
    
    .seed-sub-name {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .seeds-dialog-header {
        padding: 8px 12px;
    }
    
    .seeds-dialog-content {
        padding: 12px;
    }
    
    .seed-plant-stats {
        justify-content: center;
        gap: 6px;
    }
    
    .seed-plant-cost,
    .seed-plant-time,
    .seed-plant-resource {
        font-size: 9px;
    }
}

/* Loading animation */
.seeds-loading {
    text-align: center;
    padding: 40px 20px;
    color: #bdc3c7;
}

.seeds-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 