:root {
    --bg-grad: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --glass: rgba(255, 255, 255, 0.25);
    --orange-grad: linear-gradient(90deg, #FF7E5F, #FEB47B);
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #8e94f2;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    flex: 1;
}
.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}
/* Butonlar */
.header-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-orange {
    background: var(--orange-grad);
    border-radius: 20px; padding: 12px; color: white;
    text-align: center; text-decoration: none; font-size: 13px; font-weight: bold;
}
/* Makale Listesi */
.article-item { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; }
.article-item img { width: 80px; height: 80px; border-radius: 15px; object-fit: cover; }
.article-info h4 { margin: 0; color: #fff; font-size: 15px; }
.article-info p { margin: 5px 0; font-size: 12px; color: #eee; }
/* Harfler */
.alphabet-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.letter-box {
    background: white; color: #4facfe; width: 32px; height: 32px;
    display: grid; place-items: center; border-radius: 8px;
    text-decoration: none; font-weight: bold; font-size: 14px;
}
/* Footer */
.footer-container {
    background: rgba(0, 0, 0, 0.1);
    padding: 30px 15px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.footer-links a { color: #fff; text-decoration: none; font-size: 13px; opacity: 0.8; }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 11px; }

/* Arama */
.search-card { display: flex; padding: 5px 15px; }
.search-card input { flex: 1; border: none; background: transparent; padding: 10px; outline: none; color: white; }
.search-btn { background: #4facfe; border: none; border-radius: 12px; color: white; padding: 8px 15px; }

/* Domain Brand Stili */
.domain-brand {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

/* Tema Değiştirici Buton Tasarımı */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.3);
    transition: .4s; border-radius: 34px;
    display: flex; align-items: center; justify-content: space-around;
    padding: 0 5px; font-size: 12px;
}
.theme-slider:before {
    position: absolute; content: "";
    height: 20px; width: 20px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
    z-index: 2;
}
input:checked + .theme-slider { background-color: #2c3e50; }
input:checked + .theme-slider:before { transform: translateX(24px); }

/* --- KARANLIK MOD (DARK MODE) AYARLARI --- */
body.dark-mode {
    background: #1a1a2e !important; /* Koyu lacivert/siyah arka plan */
}
body.dark-mode .card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
body.dark-mode .page-content, 
body.dark-mode .article-info h4, 
body.dark-mode h3 {
    color: #e0e0e0 !important;
}
body.dark-mode .search-card {
    background: rgba(0, 0, 0, 0.5);
}
/* Bölüm Başlığı */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.see-all-btn {
    font-size: 13px;
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 12px;
    transition: 0.3s;
}

/* Makale Listesi Tasarımı */
.mini-article-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15); /* Hafif şeffaf arka plan */
    padding: 12px;
    border-radius: 18px;
    margin-bottom: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-img-wrapper {
    flex-shrink: 0; /* Resmin küçülmesini engeller */
    width: 75px;
    height: 75px;
}

.mini-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Bilgi Alanı ve Başlıklar */
.mini-article-info {
    flex-grow: 1;
}

.mini-article-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff; /* Başlıklar net beyaz */
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.mini-article-info p {
    font-size: 12px;
    color: #f0f0f0; /* Metinler hafif gri-beyaz, göz yormaz */
    margin: 0 0 8px 0;
    line-height: 1.4;
    opacity: 0.9;
}

.mini-read-more {
    font-size: 11px;
    color: #FF7E5F;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Karanlık Mod Uyumu */
body.dark-mode .mini-article-item {
    background: rgba(0, 0, 0, 0.3);
}
.long-content-card h1, .long-content-card h2 { color: #4facfe; margin-top: 25px; }
.long-content-card h3 { color: #FEB47B; }
.long-content-card p { margin-bottom: 15px; opacity: 0.9; }
.long-content-card ul { padding-left: 20px; margin-bottom: 20px; }
.long-content-card li { margin-bottom: 8px; list-style: disc; }
.long-content-card section { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px; }

/* Popüler Aramalar Etiketleri */
.popular-tag {
    display: inline-block;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Canlı Mavi Gradyan */
    color: white !important;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Hafif derinlik */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popular-tag:hover {
    transform: translateY(-2px); /* Üzerine gelince hafif yükselme */
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
    filter: brightness(1.1);
}



/* Karanlık Modda Daha Belirgin Olsun */
body.dark-mode .popular-tag {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Yatay Makale Kartı */
.article-horizontal-card {
    display: flex;
    gap: 20px;
    padding: 15px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.article-horizontal-card:hover {
    transform: scale(1.02);
}

/* Görsel Kutusu Sabitleme */
.article-thumb {
    flex-shrink: 0;
    width: 120px; /* Görsel genişliğini sabitledik */
    height: 120px;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görselin bozulmadan kutuya dolmasını sağlar */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Metin Alanı */
.article-summary {
    flex-grow: 1;
}

.article-summary h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.3;
}

.article-summary p {
    font-size: 14px;
    color: #f0f0f0;
    margin-bottom: 10px;
    line-height: 1.5;
    opacity: 0.9;
}

.read-more-link {
    color: #FF7E5F;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

/* Mobil Ekranlar İçin (Görseli üste alır) */
@media (max-width: 480px) {
    .article-horizontal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .article-thumb {
        width: 100%;
        height: 200px;
    }
}

.detail-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
}

.detail-img-wrapper {
    margin: -30px -30px 25px -30px; /* Görseli karta tam sıfırlar */
    overflow: hidden;
    border-radius: 30px 30px 0 0;
}

.detail-main-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.detail-title {
    font-size: 26px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.detail-content {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

/* Karanlık modda yazı rengini koru */
body.dark-mode .detail-content {
    color: #e0e0e0;
}

.detail-content p { margin-bottom: 15px; }
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: 0.3s;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.search-item span {
    color: #feb47b;
    font-weight: bold;
}