/* Plant Identification & Detailed Care Styles */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(12px);
    --glass-border: rgba(255, 255, 255, 0.3);
    --color-timeline: var(--color-primary);
}

/* Identification Section */
.id-container {
    padding: var(--space-lg) 0;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.id-upload-box {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    max-width: 500px;
    margin: 0 auto;
}

.id-upload-box:hover {
    border-color: var(--color-accent);
    background: rgba(142, 174, 106, 0.05);
}

.id-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    display: none;
}

/* Detailed Care View (Modal or Full Page) */
.care-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.care-modal-content {
    background: var(--color-surface);
    max-width: 900px;
    margin: 40px auto;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

/* Timeline */
.growth-timeline {
    display: flex;
    justify-content: space-between;
    margin: var(--space-xl) 0;
    position: relative;
    padding: 0 20px;
}

.growth-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--color-border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 80px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.timeline-step.active .step-icon {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(82, 113, 255, 0.3);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Care Grid */
.care-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.care-info-card {
    background: var(--color-bg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.care-info-card h4 {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 1rem;
}

.care-info-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .growth-timeline {
        flex-direction: column;
        gap: var(--space-md);
        padding-left: 60px;
    }
    .growth-timeline::before {
        left: 35px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
    }
    .timeline-step {
        flex-direction: row;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .step-icon { margin: 0; }
}

/* Encyclopedia Grid Enhancements */
.plant-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

.meta-item i {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.meta-item span {
    text-transform: capitalize;
    font-weight: 600;
}

.guide-btn-inline {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.guide-btn-inline:hover {
    background: var(--color-primary);
    color: white;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-easy {
    background: #e8f5e9;
    color: #2e7d32;
    margin-right: 5px;
}

.badge-guide {
    background: var(--color-accent);
    color: white;
}

.plant-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
