﻿/* =========================================
   AÇIK TEMA (Varsayılan Mevcut Ayarlarınız)
   ========================================= */
.arama-kutusu {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    background-color: #ffffff;
    color: #202124;
}

.arama-butonu {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    background-color: #4285F4;
    color: white;
    border: none;
    cursor: pointer;
}

.sonuc-kapsayici {
    margin-top: 30px;
    max-width: 800px;
    font-family: Arial, sans-serif;
}

.sonuc-ogesi {
    margin-bottom: 25px;
}

.sonuc-baslik {
    color: #1a0dab; /* Klasik koyu mavi */
    font-size: 20px;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

    .sonuc-baslik:hover {
        text-decoration: underline;
    }

.sonuc-detay {
    color: #4d5156; /* Koyu gri */
    font-size: 14px;
    line-height: 1.5;
}

.puan-bilgisi {
    font-size: 12px;
    color: #006621; /* Koyu yeşil */
    margin-top: 3px;
}


/* =========================================
   KARANLIK TEMA (body.dark-theme eklendiğinde)
   ========================================= */
body.dark-theme .arama-kutusu {
    background-color: #202124; /* Koyu arka plan */
    color: #e8eaed; /* Açık renkli metin */
    border-color: #5f6368; /* Daha koyu ve uyumlu bir kenarlık */
}

    body.dark-theme .arama-kutusu:focus {
        background-color: #303134; /* Odaklanınca hafif aydınlanma */
    }

/* Buton karanlık temada da genelde aynı kalabilir, 
   ama isterseniz tonunu bir tık açabiliriz */
body.dark-theme .arama-butonu {
    background-color: #8ab4f8; /* Daha pastel bir mavi */
    color: #202124; /* İçindeki yazıyı koyulaştırarak zıtlık yaratırız */
}

body.dark-theme .sonuc-baslik {
    color: #8ab4f8; /* Koyu temada parlayan açık mavi (Google stili) */
}

body.dark-theme .sonuc-detay {
    color: #bdc1c6; /* Göz yormayan açık gri */
}

body.dark-theme .puan-bilgisi {
    color: #81c995; /* Karanlık temada okunabilir açık, pastel yeşil */
}

/* Açık Tema (Varsayılan) */
.fiyat-istatistik-kutusu {
    border: 1px solid #2e7d32;
    padding: 15px;
    margin-bottom: 20px;
    background: #e8f5e9;
    color: #1b5e20;
    border-radius: 8px;
}

.istatistik-tablo {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
}

    .istatistik-tablo th {
        background: #dcedc8;
        padding: 8px;
        border: 1px solid #c8e6c9;
        text-align: center;
    }

    .istatistik-tablo td {
        padding: 8px;
        border: 1px solid #c8e6c9;
        text-align: center;
    }

/* Karanlık Tema */
body.dark-theme .fiyat-istatistik-kutusu {
    background: #1b261b;
    border-color: #4caf50;
    color: #a5d6a7;
}

body.dark-theme .istatistik-tablo th {
    background: #2e3b2e;
    border-color: #4caf50;
}

body.dark-theme .istatistik-tablo td {
    border-color: #4caf50;
}

.sozluk-kutusu {
    border: 1px solid #dee2e6; /* İnce, zarif bir kenarlık */
    padding: 20px;
    margin-bottom: 25px;
    background-color: #fcfcfc; /* Neredeyse beyaz, çok hafif gri arka plan */
    color: #212529; /* Koyu gri okunabilir metin */
    border-radius: 10px; /* Modern yuvarlak köşeler */
    border-left: 5px solid #0d6efd; /* Sol tarafta dikkat çekici mavi vurgu çizgisi */
}

/* Karanlık Tema (body.dark-theme) */
body.dark-theme .sozluk-kutusu {
    background-color: #202124 !important; /* Koyu gri arka plan (Google Dark uyumlu) */
    border-color: #5f6368 !important; /* Koyu temaya uygun kenarlık */
    border-left: 5px solid #8ab4f8 !important; /* Koyu temada parlayan pastel mavi vurgu */
    color: #e8eaed !important; /* Açık gri okunabilir metin */
}

.bunu-mu-demek-istediniz {
    background-color: #fff3cd; /* Hafif sarımsı bir uyarı rengi */
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 15px;
}

    .bunu-mu-demek-istediniz a {
        color: #856404;
        text-decoration: underline;
    }

/* Kartların Genel Yapısı */
.istatistik-kart {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Başlık Stili */
.kart-baslik {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

/* Liste Yapısı */
.istatistik-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Liste Elemanları */
.istatistik-item {
    margin-bottom: 12px;
    padding: 5px 0;
    transition: transform 0.2s;
}

    .istatistik-item:hover {
        transform: translateX(5px);
    }

    .istatistik-item a {
        text-decoration: none;
        display: flex;
        align-items: center;
        color: #444;
    }

/* Kelime ve Link Metinleri */
.kelime-adi, .link-adi {
    font-size: 14px;
    font-weight: 500;
}

/* İstatistik Detayları (Kez/Sn) */
.kelime-hit, .link-sure {
    font-size: 12px;
    margin-left: auto;
    font-weight: normal;
}

/* Karanlık Tema Desteği (Opsiyonel) */
body.dark-theme .istatistik-kart {
    background: #202124;
    border-color: #5f6368;
}

body.dark-theme .kart-baslik {
    color: #e8eaed;
    border-color: #3c4043;
}

body.dark-theme .istatistik-item a {
    color: #bdc1c6;
}