@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background-color: #f0f4f1;
    color: #1e293b;
    padding: 25px 15px;
}

.mandi-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* हेडर सेक्शन */
.mandi-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #1b5e20 #2e7d32);
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(27, 94, 32, 0.3);
}

.mandi-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.mandi-header p {
    font-size: 15px;
    color: #a7f3d0;
    font-weight: 600;
}

/* 4-4 कार्ड्स का ग्रिड */
.mandi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* कार्ड का प्रीमियम डिज़ाइन */
.mandi-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* कार्ड का टॉप एक्सेंट बार */
.mandi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #15803d);
}

.mandi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* जिंस/फसल का नाम और बैज */
.crop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.crop-name {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.badge-tez {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-mandi {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* प्राइस बॉक्स */
.price-box {
    background: #f8fafc;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.price-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-range {
    font-size: 20px;
    color: #166534;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.unit-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 600;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
}

/* मोबाइल व टैबलेट रिस्पॉन्सिव */
@media (max-width: 1024px) {
    .mandi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .mandi-grid { grid-template-columns: repeat(1, 1fr); }
    .mandi-header h1 { font-size: 22px; }
}