/* ===================================================
   ANTBİRLİK ÇİFTÇİ HAVA DURUMU - V4.8 STRICT GRID STACK
   =================================================== */

.farmer-vertical-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 35px 0;
    padding: 0;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.farmer-vertical-dashboard * {
    box-sizing: border-box;
}

/* 1. Üst Seçici Çubuğu: Masaüstünde 3 eşit kolonlu Grid, mobilde 1 kolonlu sıkı dikey */
.fvd-top-selector-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    background: #ffffff !important;
    padding: 16px 20px !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    border: 1px solid #e2e8f0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.fvd-selector-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.fvd-label {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
}

.fvd-select-wrap {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 44px !important;
}

.fvd-select {
    width: 100% !important;
    height: 44px !important;
    padding: 8px 36px 8px 14px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%231f5343'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
}

.fvd-select:focus {
    border-color: #1f5343 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(31, 83, 67, 0.12) !important;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 6px #16a34a;
}

/* 2. Büyük Güncel Kart */
.fvd-hero-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.fvd-card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.fvd-card-clean-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fvd-main-city-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #1f5343;
    letter-spacing: 1px;
    line-height: 1.1;
}

.fvd-main-district-sub {
    font-size: 17px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.5px;
}

.fvd-card-update-badge {
    font-size: 13px;
    font-weight: 600;
    background: #f8fafc;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.fvd-hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.fvd-mobile-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-icon-slot .google-weather-icon {
    width: 110px;
    height: 110px;
    margin-bottom: 4px;
}

.hero-icon-slot svg {
    width: 100%;
    height: 100%;
}

.fvd-mobile-temp-wrap .temp-val {
    font-size: 64px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -2px;
}

.fvd-mobile-summary {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    margin-top: 10px;
    max-width: 520px;
    line-height: 1.4;
}

/* 4'lü İstatistik Şeridi */
.fvd-hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 800px;
}

.metric-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.m-lbl {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.m-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.m-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 3. Tahmin Bölümü */
.fvd-forecast-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.forecast-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.fvd-forecast-main-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.fvd-toggle-pill-wrap {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 30px;
    gap: 4px;
}

.fvd-tab-pill {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fvd-tab-pill.active {
    background-color: #1f5343;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.fvd-slider-outer-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.fvd-side-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    outline: none;
}

.fvd-side-slider-arrow:hover {
    background-color: #1f5343;
    border-color: #1f5343;
    color: #ffffff;
}

.fvd-arrow-left {
    left: -10px;
}

.fvd-arrow-right {
    right: -10px;
}

.fvd-forecast-scroll-wrapper {
    width: 100%;
    overflow: hidden;
}

.fvd-forecast-cards-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.fvd-forecast-cards-row.is-hourly-view {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 20px;
}

.fvd-forecast-cards-row.is-hourly-view::-webkit-scrollbar {
    display: none;
}

.fvd-forecast-cards-row.is-hourly-view .fvd-forecast-card {
    min-width: 130px;
    flex: 0 0 130px;
}

.fvd-forecast-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fvd-forecast-card:hover {
    transform: translateY(-3px);
}

.fvd-forecast-card.is-today {
    border: 2px solid #1f5343;
    background: #f0fdf4;
}

.fc-day {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.fc-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.fc-icon {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.g-svg-med {
    width: 50px;
    height: 50px;
}

.fc-status-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    display: block;
    line-height: 1.2;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-row-info {
    font-size: 13px;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 4px;
}

.fc-row-info .fc-lbl {
    font-weight: 600;
}

.fc-row-info .fc-val {
    color: #0f172a;
    font-weight: 800;
}

.fc-row-info .fc-rain {
    color: #2563eb;
}

/* 4. Tarımsal Uyarı Rehberi */
.fvd-agri-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fvd-section-heading {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}

.fvd-agri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fvd-agri-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    gap: 14px;
}

.agri-box-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agri-icon-box {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.agri-box-head h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    letter-spacing: 0.5px;
}

.agri-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.badge-safe { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #0369a1; }

.agri-desc-box {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}

/* 5. Şehir İlçeleri Tablosu */
.antbirlik-districts-table-wrap {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.table-top-header {
    margin-bottom: 18px;
}

.table-title {
    margin: 0 0 4px 0;
    font-size: 19px;
    font-weight: 800;
    color: #1f5343;
}

.table-subtitle {
    font-size: 14px;
    color: #64748b;
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
}

.farmer-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.farmer-data-table th {
    background-color: #1f5343;
    color: #ffffff;
    padding: 10px 8px;
    font-weight: 700;
    white-space: nowrap;
}

.farmer-data-table th:first-child {
    border-radius: 8px 0 0 0;
}

.farmer-data-table th:last-child {
    border-radius: 0 8px 0 0;
}

.farmer-data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    white-space: nowrap;
}

.farmer-data-table tr:hover td {
    background: #f8fafc;
}

.col-district-name {
    font-size: 14px;
    color: #0f172a;
}

.status-pill {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.table-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* 6. En Alt Yasal Bilgilendirme Kutusu */
.fvd-footer-disclaimer-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fvd-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #1f5343;
    background: #e2ede8;
    padding: 4px 12px;
    border-radius: 14px;
    width: fit-content;
}

.fvd-disclaimer-text {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive: 768px altında Grid 1 kolona iner, öğeler tek beyaz kutuda 10px boşlukla sıkı dizilir */
@media (max-width: 1024px) {
    .fvd-agri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fvd-forecast-cards-row:not(.is-hourly-view) {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .fvd-top-selector-bar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: min-content !important;
        gap: 10px !important;
        padding: 14px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
        height: auto !important;
    }
    .fvd-selector-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }
    .fvd-label {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin: 0 0 2px 0 !important;
        line-height: 1 !important;
    }
    .fvd-select-wrap {
        width: 100% !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .fvd-select {
        width: 100% !important;
        height: 40px !important;
        padding: 6px 36px 6px 12px !important;
        font-size: 14px !important;
        background-color: #f8fafc !important;
        margin: 0 !important;
    }
    .fvd-hero-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fvd-agri-grid {
        grid-template-columns: 1fr;
    }
    .fvd-forecast-cards-row:not(.is-hourly-view) {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .fvd-arrow-left {
        left: 0px;
    }
    .fvd-arrow-right {
        right: 0px;
    }
}
