/**
 * VISS Core — Frontend Stilleri
 * ---------------------------------------------------------------
 * Bu dosya, daha önce shortcode fonksiyonlarının içine PHP echo ile
 * gömülü olan <style> bloklarının (maliyet hesaplayıcı + gelişmiş
 * filtre paneli) taşındığı yer. Artık:
 *   - Tek dosyadan, tarayıcı tarafından önbelleğe alınabilir şekilde yükleniyor
 *   - Aşağıdaki :root değişkenleriyle SİTEYE GÖRE kolayca özelleştirilebiliyor
 *
 * SİTEYE GÖRE RENK/ÖLÇÜ DEĞİŞTİRMEK İÇİN:
 * Bu dosyayı değiştirmene gerek yok. WordPress'in kendi "Ek CSS" panelini
 * kullan: Görünüm > Özelleştir > Ek CSS. Oraya şunun gibi birkaç satır
 * yazman yeterli, otomatik bu dosyanın üzerine yazar:
 *
 *   :root {
 *     --viss-primary: #0766de;
 *     --viss-radius: 10px;
 *   }
 */

:root {
    --viss-primary: #a42424;
    --viss-primary-dark: #8a1e1e;
    --viss-primary-soft: rgba(164, 36, 36, .1);
    --viss-panel-bg: #f9f9f9;
    --viss-ink: #2c3e50;
    --viss-radius: 16px;
}


/* =====================================================================
   MALİYET HESAPLAYICI — [dinamik_hesaplayici]
   ===================================================================== */


        .viss-calc-widget {
            background: #ffffff; /* Saf Beyaz Arka Plan */
            border-radius: var(--viss-radius, 16px);
            padding: 30px;
            color: #333333; /* Koyu Yazı Rengi */
            font-family: inherit;
            box-shadow: 0 10px 40px rgba(0,0,0,0.06); /* Çok Hafif Gölge */
            max-width: 800px;
            margin: 0 auto;
            box-sizing: border-box;
            border: 1px solid #eeeeee; /* Hafif Çerçeve */
        }
        .viss-calc-widget * { box-sizing: border-box; }

        /* Header */
        .viss-calc-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 1px solid #eeeeee;
            padding-bottom: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 20px;
        }
        .viss-calc-title-box h3 { margin: 0 0 8px 0; font-size: 22px; font-weight: 700; color: var(--viss-ink, #2c3e50); }
        .viss-calc-title-box p { margin: 0; font-size: 14px; color: #7f8c8d; }
        
        .viss-calc-stats { display: flex; gap: 25px; }
        .stat-item { display: flex; flex-direction: column; align-items: flex-end;}
        .stat-label { font-size: 11px; color: #95a5a6; font-weight: 600; letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase; }
        .stat-value { font-size: 18px; font-weight: 700; color: var(--viss-primary, #a42424); } /* Başlık Kırmızısı */

        /* Top Section (Activities & Circle) */
        .viss-calc-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            background: var(--viss-panel-bg, #f9f9f9); /* Çok Açık Gri Panel */
            padding: 25px;
            border-radius: 12px;
            flex-wrap: wrap;
            gap: 20px;
            border: 1px solid #f0f0f0;
        }
        .viss-activities h4 { margin: 0 0 15px 0; font-size: 15px; color: var(--viss-ink, #2c3e50); font-weight: 600;}
        .viss-activities ul { list-style: none; padding: 0; margin: 0; }
        .viss-activities li { font-size: 14px; color: #555; margin-bottom: 9px; display: flex; align-items: center; gap: 8px;}
        .viss-activities li::before { content: "✓"; color: var(--viss-primary, #a42424); font-weight: bold; }

        /* Circle Progress */
        .viss-score-circle { display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
        .circle-wrap { position: relative; width: 120px; height: 120px; }
        .circle-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
        .bg-circle { fill: none; stroke: #e0e0e0; stroke-width: 8; }
        .progress-circle { fill: none; stroke: var(--viss-primary, #a42424); stroke-width: 8; stroke-dasharray: 283; stroke-dashoffset: 100; transition: stroke-dashoffset 0.5s ease; stroke-linecap: round; }
        
        .circle-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .circle-inner svg { width: 22px; height: 22px; color: #7f8c8d; margin-bottom: 6px; transform: none; }
        .circle-inner span { font-size: 10px; font-weight: 700; color: #7f8c8d; letter-spacing: 1.5px; text-transform: uppercase; text-align: center; padding: 0 10px;}
        
        .score-badge { margin-top: 15px; border: 1px solid #ccc; background: #fff; color: #333; padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.05);}

        /* Chart Area */
        .viss-calc-chart { margin-bottom: 30px; border-top: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee; padding: 25px 0; }
        .chart-row { display: flex; align-items: center; margin-bottom: 16px; }
        .row-label { width: 110px; font-size: 13px; color: #555; font-weight: 500;}
        .bar-track { flex-grow: 1; background: #e0e0e0; height: 20px; border-radius: 10px; overflow: hidden; margin: 0 15px; }
        .bar-fill { height: 100%; width: 0%; transition: width 0.5s ease; border-radius: 10px; }
        
        /* Bar Renkleri - Açık Tema Uyumlu */
        .bar-fill.color-1 { background: var(--viss-primary, #a42424); } /* Ana Kırmızı */
        .bar-fill.color-2 { background: #c67171; } /* Açık Kırmızı */
        .bar-fill.color-3 { background: #888888; } /* Gri */
        .bar-fill.color-4 { background: #aaaaaa; } /* Açık Gri */
        
        .row-value { width: 50px; font-size: 14px; font-weight: 700; text-align: right; color: #333;}
        .chart-axis { text-align: right; font-size: 11px; color: #999; margin-top: 10px; font-style: italic;}

        /* Controls */
        .viss-calc-controls { display: flex; gap: 20px; flex-wrap: wrap; background: var(--viss-panel-bg, #f9f9f9); padding: 20px; border-radius: 12px; border: 1px solid #f0f0f0;}
        .control-group { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
        .control-group.full-width { flex: 100%; }
        .viss-calc-controls label { font-size: 13px; color: #555; margin-bottom: 10px; font-weight: 600; }
        
        .viss-calc-controls select {
            background: #ffffff;
            border: 1px solid #cccccc;
            color: #333333;
            padding: 12px 15px;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1em;
        }
        .viss-calc-controls select:focus { border-color: var(--viss-primary, #a42424); box-shadow: 0 0 0 2px var(--viss-primary-soft, rgba(164,36,36,.1)); }

        .slider-wrapper { display: flex; align-items: center; gap: 15px; }
        .viss-calc-controls input[type="range"] { flex-grow: 1; -webkit-appearance: none; background: #e0e0e0; height: 6px; border-radius: 3px; outline: none; cursor: pointer;}
        .viss-calc-controls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--viss-primary, #a42424); cursor: pointer; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: transform 0.2s; }
        .viss-calc-controls input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }

        .slider-val { background: #ffffff; border: 1px solid #cccccc; color: #333; padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 700; min-width: 65px; text-align: center; }

        /* Responsive */
        @media (max-width: 650px) {
            .viss-calc-header { flex-direction: column; align-items: flex-start; }
            .viss-calc-stats { flex-direction: row; gap: 15px; width: 100%; justify-content: space-between; margin-top: 15px;}
            .stat-item { align-items: flex-start; }
            .viss-calc-top { flex-direction: column; text-align: center; }
            .viss-activities li { justify-content: center; }
            .chart-row { flex-wrap: wrap; }
            .row-label { width: 100%; margin-bottom: 8px; text-align: center;}
            .bar-track { margin: 0 0 8px 0; width: 80%;}
            .row-value { width: 20%; text-align: right;}
        }


/* =====================================================================
   ANASAYFA GELİŞMİŞ FİLTRE PANELİ — [viss_gelismis_filtre]
   ===================================================================== */

        .viss-filtre-panel {
            background: #ffffff;
            border-radius: var(--viss-radius, 16px);
            padding: 28px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.06);
            border: 1px solid #eeeeee;
            max-width: 1100px;
            margin: 0 auto;
            box-sizing: border-box;
        }
        .viss-filtre-panel * { box-sizing: border-box; }
        .viss-filtre-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 16px;
        }
        @media (max-width: 900px) { .viss-filtre-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 560px) { .viss-filtre-grid { grid-template-columns: repeat(2, 1fr); } }
        .viss-ff-field label {
            display: flex; align-items: center; gap: 6px; justify-content: space-between;
            font-size: 12px; font-weight: 700; color: var(--viss-ink, #2c3e50); margin-bottom: 8px;
            text-transform: uppercase; letter-spacing: .3px;
        }
        .viss-ff-field label .viss-ff-val { color: var(--viss-primary, #a42424); font-weight: 700; text-transform: none; }
        .viss-ff-field select {
            width: 100%; background: var(--viss-panel-bg, #f9f9f9); border: 1.5px solid #e0e0e0; border-radius: 8px;
            padding: 11px 12px; font-size: 13.5px; color: #333; appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat; background-position: right 12px center; background-size: 1em;
        }
        .viss-ff-field select:focus { outline: none; border-color: var(--viss-primary, #a42424); }
        .viss-ff-field input[type=range] {
            width: 100%; margin-top: 14px; -webkit-appearance: none; background: #e0e0e0;
            height: 6px; border-radius: 3px; outline: none; cursor: pointer;
        }
        .viss-ff-field input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
            background: var(--viss-primary, #a42424); cursor: pointer; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2);
        }
        .viss-ff-foot {
            display: flex; align-items: center; justify-content: space-between; margin-top: 22px;
            padding-top: 18px; border-top: 1px solid #eeeeee; flex-wrap: wrap; gap: 12px;
        }
        .viss-ff-btn {
            background: var(--viss-primary, #a42424); color: #fff; border: none; border-radius: 8px; padding: 13px 26px;
            font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
        }
        .viss-ff-btn:hover { background: var(--viss-primary-dark, #8a1e1e); }
        .viss-ff-clear { background: none; border: 1.5px solid #e0e0e0; color: #555; border-radius: 999px;
            padding: 9px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
        .viss-ff-clear:hover { border-color: var(--viss-primary, #a42424); color: var(--viss-primary, #a42424); }