/* Garden Tracker Specific Styles */

/* Garden Tabs */
.garden-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.garden-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.garden-tab:hover {
    color: var(--primary);
    background: var(--accent);
}

.garden-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Plants Grid */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plant-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1rem;
    transition: box-shadow 0.2s;
}

.plant-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.plant-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.plant-info {
    font-size: 0.85rem;
    line-height: 1.8;
}

.plant-info > div {
    margin-bottom: 0.25rem;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.calculator-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.5rem;
}

.calculator-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.calc-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid var(--success);
    font-size: 0.9rem;
    line-height: 1.8;
}

.calc-result div {
    margin-bottom: 0.5rem;
}

/* Schedule */
.schedule-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.schedule-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.9rem;
}

.schedule-list {
    display: grid;
    gap: 1rem;
}

.schedule-item {
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 3px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-item.overdue {
    border-left-color: var(--danger);
    background: #fff5f5;
}

.schedule-item.today {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.schedule-item.upcoming {
    border-left-color: var(--success);
}

.schedule-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.schedule-item-info .schedule-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.schedule-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Progress Bars (for plants) */
.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #27ae60);
    transition: width 0.3s ease;
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #a02a1d;
}

/* Small Button */
.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Results Cards - Garden Specific */
.results-section .result-card {
    min-height: 200px;
}

.results-section .result-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.results-section .result-item:last-child {
    border-bottom: none;
}

/* Modal Adjustments */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 3px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .garden-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .garden-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .plants-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Additional Garden Elements */
.garden-tip {
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.garden-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.garden-success {
    background: #d4edda;
    border-left: 4px solid var(--success);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Plant Type Icons/Colors */
.plant-type-vegetable { color: #27ae60; }
.plant-type-herb { color: #2ecc71; }
.plant-type-flower { color: #e74c3c; }
.plant-type-fruit { color: #e67e22; }
.plant-type-tree { color: #795548; }

/* Season Badges */
.season-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--accent);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.season-spring { background: #d4edda; color: #155724; }
.season-summer { background: #fff3cd; color: #856404; }
.season-fall { background: #f8d7da; color: #721c24; }
.season-winter { background: #d1ecf1; color: #0c5460; }

/* AeroGarden Specific Styles */
.aerogarden-units {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.aerogarden-unit-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    max-width: none;
    overflow: visible;
}

.aerogarden-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.aerogarden-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
}

.aerogarden-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--accent);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.aerogarden-info {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.aerogarden-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.aerogarden-controls select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Pod Grid */
.pod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
    box-sizing: border-box;
}

.pod-card {
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: 3px;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.pod-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.pod-empty {
    background: #f8f9fa;
    border-style: dashed;
    opacity: 0.6;
}

.pod-growing {
    background: #fff3cd;
    border-color: #ffc107;
}

.pod-almost {
    background: #d4edda;
    border-color: #28a745;
}

.pod-ready {
    background: #d4edda;
    border-color: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(40, 167, 69, 0); }
    50% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
}

.pod-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pod-plant {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.3rem;
    word-wrap: break-word;
    line-height: 1.2;
}

.pod-days {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.3rem 0;
}

.pod-status {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pod-progress-mini {
    margin-top: 0.5rem;
    height: 6px;
    background: var(--accent);
    border-radius: 3px;
    overflow: hidden;
}

.pod-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.pod-btn {
    width: 100%;
    padding: 0.6rem 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.pod-btn:hover {
    background: var(--secondary);
}

.pod-btn-small {
    padding: 0.4rem 0.6rem;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.pod-btn-small:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Pod Setup Modal */
.pod-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.pod-setup-card {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1rem;
}

.pod-setup-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.pod-plant-select,
.pod-date-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Modal sizes */
.modal-large {
    max-width: 700px;
}

.modal-xlarge {
    max-width: 900px;
}

/* Responsive */
@media (max-width: 768px) {
    .aerogarden-units {
        grid-template-columns: 1fr;
    }
    
    .aerogarden-unit-card {
        width: 100%;
    }
    
    .pod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .pod-card {
        min-height: 120px;
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .pod-setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pod-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

@media (min-width: 1025px) {
    .pod-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .pod-card {
        min-height: 140px;
    }
}
