/**
 * SuccuCare Plant Disease Identifier Styles
 * Responsive and accessible styling for the plant disease identifier
 */

.succucare-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.succucare-header {
    text-align: center;
    margin-bottom: 2rem;
}

.succucare-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #22c55e;
    border-radius: 50%;
    margin-bottom: 1rem;
    color: white;
}

.succucare-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.succucare-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Main Card */
.succucare-main-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Section Styles */
.succucare-selection-section {
    padding: 1.5rem;
    background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 100%);
    border-bottom: 1px solid #e5e7eb;
}

.succucare-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.succucare-section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

/* Input Group */
.succucare-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .succucare-input-group {
        flex-direction: row;
        align-items: flex-end;
    }
}

.succucare-select-wrapper {
    flex: 1;
}

.succucare-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.succucare-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    color: #1f2937;
    transition: border-color 0.2s ease;
}

.succucare-select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Buttons */
.succucare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
}

.succucare-button-primary {
    background: #22c55e;
    color: white;
}

.succucare-button-primary:hover:not(.succucare-button-disabled) {
    background: #16a34a;
}

.succucare-button-secondary {
    background: #a3e635;
    color: #1f2937;
}

.succucare-button-secondary:hover:not(.succucare-button-disabled) {
    background: #84cc16;
}

.succucare-button-ghost {
    background: transparent;
    color: #6b7280;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.succucare-button-ghost:hover {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.05);
}

.succucare-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #d1d5db !important;
    color: #6b7280 !important;
}

.succucare-identify-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .succucare-identify-btn {
        width: auto;
    }
}

/* Symptoms Section */
.succucare-symptoms-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.succucare-symptoms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.succucare-symptoms-container {
    min-height: 60px;
    margin-bottom: 1rem;
}

.succucare-empty-state {
    text-align: center;
    padding: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    color: #6b7280;
}

.succucare-symptoms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.succucare-symptom-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.succucare-symptom-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.succucare-remove-symptom {
    background: none;
    border: none;
    color: rgba(34, 197, 94, 0.6);
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.succucare-remove-symptom:hover {
    color: #22c55e;
}

/* Results Section */
.succucare-results-section {
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-in;
}

.succucare-disease-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #22c55e;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.succucare-disease-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.succucare-matching-symptoms {
    margin-bottom: 1rem;
}

.succucare-symptoms-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.succucare-symptoms-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.succucare-matching-badge {
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
}

.succucare-treatment-section {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
}

.succucare-treatment-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #166534;
    margin: 0 0 0.5rem 0;
    gap: 0.5rem;
}

.succucare-treatment-text {
    color: #15803d;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* No Results Section */
.succucare-no-results {
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-in;
}

.succucare-warning-card {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.succucare-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fef3c7;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    color: #d97706;
}

.succucare-warning-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 0.5rem 0;
}

.succucare-warning-text {
    color: #b45309;
    line-height: 1.5;
    margin: 0;
}

/* Information Grid */
.succucare-info-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .succucare-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.succucare-info-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.succucare-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.succucare-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.succucare-info-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.succucare-info-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.succucare-info-title {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.succucare-info-text {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .succucare-container {
        padding: 1rem 0.5rem;
    }
    
    .succucare-title {
        font-size: 2rem;
    }
    
    .succucare-subtitle {
        font-size: 1rem;
    }
    
    .succucare-input-group {
        gap: 1rem;
    }
    
    .succucare-symptoms-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Accessibility */
.succucare-button:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.succucare-select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Loading state (optional enhancement) */
.succucare-loading {
    opacity: 0.6;
    pointer-events: none;
}

.succucare-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #22c55e;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}