/* Analysis Results Styles */
.analysis-results {
    background-color: var(--light-color);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 3rem 0;
}

.analysis-header {
    position: relative;
    margin-bottom: 3rem;
}

.analysis-title-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.analysis-title-icon i {
    animation: grow 2s infinite alternate;
}

.crop-title-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

.eco-icons {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--primary-light);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.eco-icons i {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.analysis-card:hover .eco-icons i {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.result-meter {
    background: var(--primary-light);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
}

.progress {
    height: 0.8rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 1.5s ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

@keyframes grow {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.analysis-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.analysis-card:hover::before {
    transform: scaleX(1);
}

.analysis-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.analysis-card:hover .analysis-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.analysis-card h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.analysis-content {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Crop Recommendations Styles */
.crop-recommendations {
    padding-top: 2rem;
    border-top: 2px solid var(--primary-light);
}

.crop-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.crop-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.crop-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.crop-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.crop-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-light);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
