/* ==========================================================================
   Plant Disease & Fungicide Page Styles
   Location: /public/assets/css/pages/plant-disease.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Disease CTA Banner (กล่องรับปรึกษาถ่ายรูปอาการโรคพืช)
   -------------------------------------------------------------------------- */
.disease-cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 25px auto;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.disease-banner-desc {
    flex: 1;
}

.disease-banner-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #38bdf8;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disease-banner-text {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #d1d5db;
    margin: 0;
}

.highlight-text-white {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.disease-banner-guide-box {
    flex-shrink: 0;
    width: 280px;
}

.guide-inner-blur {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
}

.guide-title-mini {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3faf7;
    margin: 0 0 10px 0;
}

.guide-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-list-items li {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Section 1: Disease Diagnosis Cards (Responsive Auto-Grid)
   -------------------------------------------------------------------------- */
.disease-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.disease-diagnose-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.disease-diagnose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.06);
}

.disease-card-title-row {
    margin-bottom: 14px;
}

.diagnose-status-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
}

.tag-danger { background-color: #fee2e2; color: #ef4444; }
.tag-warning { background-color: #fef3c7; color: #d97706; }
.tag-pink { background-color: #fce7f3; color: #db2777; }
.tag-purple { background-color: #f3e8ff; color: #7e22ce; }
.tag-blue { background-color: #e0f2fe; color: #0369a1; }

.disease-diagnose-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.diagnose-sub-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 12px 0 4px 0;
}

.diagnose-desc-detail {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

/* Border styling for cards */
.box-chemical { border-top: 4px solid #ef4444; }
.box-soil-doctor { border-top: 4px solid #2563eb; }
.box-organic-chemical { border-top: 4px solid #db2777; }
.box-leaf-blight { border-top: 4px solid #7e22ce; }
.box-powdery { border-top: 4px solid #0284c7; }

/* --------------------------------------------------------------------------
   Section 2: FRAC Fungicide Groups (Timeline / List Item Style)
   -------------------------------------------------------------------------- */
.frac-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.step-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 18px 20px;
}

.frac-group-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    min-width: 75px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.border-blue { border-color: #bae6fd; }
.bg-light-blue { background-color: #f0f9ff; }
.text-blue-text { color: #0284c7; }

.border-purple { border-color: #e9d5ff; }
.bg-light-purple { background-color: #faf5ff; }
.text-purple { color: #9333ea; }

.border-emerald { border-color: #a7f3d0; }
.bg-light-emerald { background-color: #f0fdf4; }
.text-emerald { color: #059669; }

.border-orange { border-color: #fed7aa; }
.bg-light-orange { background-color: #fff7ed; }
.text-orange { color: #ea580c; }

.step-list-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Section 3: Treatment Steps (Numbered Cards)
   -------------------------------------------------------------------------- */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fee2e2;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .disease-cta-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .disease-banner-guide-box {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .step-list-item {
        flex-direction: column;
        gap: 12px;
    }
    .frac-group-badge {
        align-self: flex-start;
    }
}