:root {
    --bg-color: #0f172a; /* Koyu lacivert/siyah arka plan */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6; /* Dikkat çekici mavi */
    --primary-hover: #2563eb;
    --card-bg: #1e293b;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-main);
}

/* --- HEADER & NAV --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(15, 23, 42);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
	z-index:9999;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-color);
}

.lang-switcher select {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
}

/* --- MAIN CONTENT --- */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* AdSense Alanı */
.adsense-area {
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* SEO Metin ve Rehberler */
.content-section {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.content-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.guide-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.guide-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    /*padding: 2rem;*/
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- DROPDOWN MENU --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.dropdown {
    position: relative;
    display: flex; /* İçindeki yazının hizasını koruması için flex yaptık */
    align-items: center;
    /* padding-bottom: 15px; SİLİNDİ: Sorunu yaratan buydu */
}

/* Farenin menüden alt menüye geçerken kullanacağı GÖRÜNMEZ KÖPRÜ */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; /* Köprünün uzunluğu */
    background: transparent;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 99;
    border-radius: 8px;
    top: calc(100% + 10px); /* Menüyü ana menünün 10px aşağısından başlatır */
    left: 0;
    margin-top: 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--border-color);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BLOG LAYOUT & DETAIL PAGE --- */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* Sol taraf esnek, sağ taraf sabit 320px */
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; /* Sticky özelliğinin çalışması için şart */
}

/* Sol Sütun (Makale) */
.blog-detail-container {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.blog-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.blog-header h1 {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.blog-content h2, .blog-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Sağ Sütun (Sidebar) */
.blog-sidebar {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: sticky; /* Ekran kaydırıldığında asılı kalmasını sağlar */
    top: 100px; /* Yukarıdan bırakılacak boşluk (Header'ı kapatmaması için) */
}

.blog-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.recent-post-item {
    display: block;
    margin-bottom: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-item:hover {
    transform: translateX(5px); /* Üzerine gelince hafif sağa kayar */
}

.recent-post-item h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.2s;
}

.recent-post-item:hover h4 {
    color: var(--primary-color);
}

.recent-post-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobilde ve Tablette Yan Yana Sığmazsa Alt Alta Al */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
    .blog-sidebar {
        position: static; /* Mobilde sticky özelliğini iptal et */
    }
    .blog-detail-container {
        padding: 1.5rem;
    }
    .blog-header h1 {
        font-size: 1.8rem;
    }
}

/* --- HOMEPAGE GUIDE LIST (İnce ve Tek Satır) --- */
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Satırlar arası ince boşluk */
    margin-top: 1.5rem;
}

.guide-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color); /* Koyu arka planla uyumlu */
    padding: 0.9rem 1.5rem; /* Kalınlığı azaltıp ince bir bar yaptık */
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.guide-list-item h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
    transition: color 0.2s;
    /* Eğer başlık çok uzunsa tek satırda kalıp sonuna ... koysun */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.guide-list-item .arrow {
    color: var(--text-muted);
    font-weight: bold;
    transition: all 0.2s ease;
}

/* Üzerine gelindiğinde (Hover) Efekti */
.guide-list-item:hover {
    transform: translateX(5px); /* Hafif sağa kayma hissi */
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05); /* Çok hafif mavi bir parlama */
}

.guide-list-item:hover h3 {
    color: var(--primary-color);
}

.guide-list-item:hover .arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* --- HOW IT WORKS (3 ADIM) SECTION --- */
.how-it-works-section {
    padding: 2rem 5% 4rem 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hiw-header h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.hiw-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-box {
    text-align: center;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

/* Görseldeki gibi Yuvarlak Yeşil Numara Rozeti */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(16, 185, 129, 0.15); /* Saydam tatlı bir yeşil */
    color: #10b981; /* Belirgin yeşil numara */
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-box h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 0;
}

.step-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobilde alt alta gelmesi için */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- FULLSCREEN DEAD PIXEL TEST --- */
.test-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999; /* Her şeyin üstünde */
    background-color: #ffffff;
    transition: background-color 0.1s ease;
    cursor: default;
}

/* UI Elemanları (Fare durunca gizlenecek) */
.test-ui {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.test-ui.hidden {
    opacity: 0;
    pointer-events: none; /* Gizliyken tıklanmasınlar */
    cursor: none; /* Fareyi de tamamen gizle */
}

/* Çıkış Butonu (X) */
.test-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.test-close:hover {
    background: rgba(239, 68, 68, 0.8); /* Kırmızımsı hover */
}

/* Sağ Sol Oklar */
.test-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
    transition: background 0.2s;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.test-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.test-arrow.left { left: 20px; }
.test-arrow.right { right: 20px; }

/* Alt Renk Paleti */
.test-palette {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 8px;
}

.test-color-box {
    width: 35px;
    height: 35px;
    cursor: pointer;
    border: 1px solid #334155;
    transition: transform 0.2s;
}

.test-color-box:hover {
    transform: scale(1.1);
}

/* Bilgi Modalı (Got it!) */
.test-modal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.test-modal-content {
    background-color: #212121;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #334155;
}

.test-modal-content .modal-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.test-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.btn-got-it {
    background-color: #f87171; /* Tatlı kırmızı/somon rengi */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-got-it:hover {
    background-color: #ef4444;
}

/* --- QUICK TEST SECTION (Ana Sayfa Alt Renkler) --- */
.quick-test-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color); /* Adımlarla arasına ince çizgi */
    text-align: center;
}

.quick-palette {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Mobilde alt satıra geçsin */
    gap: 12px;
    margin-bottom: 2.5rem;
}

.quick-color-box {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    background-clip: padding-box;
}

.quick-color-box:hover {
    transform: translateY(-8px) scale(1.05); /* Yukarı zıplama efekti */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--text-muted);
}

.btn-quick-test {
    background-color: #0ea5e9; /* Görseldeki mavi renk */
    color: #ffffff;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-quick-test:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
}

/* Mobilde kutuları biraz küçültelim ki sığsınlar */
@media (max-width: 768px) {
    .quick-color-box {
        width: 45px;
        height: 45px;
    }
}

/* --- FIXER CANVAS --- */
.canvas-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 5; /* Arka planın üstünde, butonların altında */
}

#pixel-canvas {
    position: absolute;
    cursor: grab;
}

/* --- UI ELEMANLARI (Görünmez Kalkan Mantığı) --- */
.test-ui {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none; /* BOŞLUKLARDAKİ TIKLAMALARI ARKA PLANA (CANVAS'a) GEÇİRİR */
    opacity: 1;
    transition: opacity 0.5s ease;
}

.test-ui.hidden {
    opacity: 0;
}

/* Sadece butonlar, oklar ve renkler tıklanabilir kalsın */
.test-close, .test-arrow, .test-palette {
    pointer-events: auto; 
}

/* UI gizlendiğinde fare yanlışlıkla görünmez oklara tıklamasın */
.test-ui.hidden .test-close,
.test-ui.hidden .test-arrow,
.test-ui.hidden .test-palette {
    pointer-events: none;
}

/* --- BİLGİ MODALI --- */
.test-modal {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20; /* Her şeyin en üstünde */
}

/* --- RGB MIXER (How Do Pixels Work) --- */
.rgb-mixer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.rgb-preview-box {
    width: 150px;
    height: 150px;
    background-color: #000; /* Varsayılan başlangıç */
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    transition: background-color 0.1s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rgb-controls {
    width: 100%;
    max-width: 250px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.slider-group label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* Range Slider Özel Tasarımı */
.slider-group input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background: var(--border-color);
}

.slider-group input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.slider-group input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-group input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- ANCHOR (ÇAPA) LİNKLERİ İÇİN MENÜ BOŞLUĞU --- */
.how-it-works-section,
.fixer-section,
.info-block,
[id] {
    scroll-margin-top: 100px; /* Menünün yüksekliği kadar bir değer. Gerekirse 120px veya 80px olarak değiştirebilirsin. */
}