/* Genel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ekran yüksekliğinin %100'ünü kapla */
}
/* Üst Mavi Bar */
.navbar {
    background-color: #0056b3;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.search-box input {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    width: 300px;
    outline: none;
}

/* Ana konteynerin boş kalan tüm dikey alanı kaplamasını sağlıyoruz */
.main-container {
    display: flex;
    flex: 1; /* İşte sihirli değnek burası! Boşluğu bu alan emerek footer'ı dibe iter */
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 10px;
}

/* İçerik alanındaki min-height ayarını artık kaldırabiliriz veya esnek bırakabiliriz */
.content-area {
    flex: 1;
    margin: 0 20px;
}

/* Reklam Alanları (AdSense / MediaVine Uyumlu Sabit Genişlikler) */
.sidebar-ad {
    width: 160px; /* Standart Skyscraper reklam boyutu */
    min-height: 600px;
    background-color: #e9ecef;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
}

.inline-ad {
    width: 100%;
    min-height: 90px; /* Standart Banner boyutu */
    background-color: #e9ecef;
    border: 1px dashed #ccc;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
}

/* Featured Tools Grid Yapısı */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.content-area {
    flex: 1;
    margin: 0 20px;
    /* Ekran yüksekliğinin %70'i kadar minimum yükseklik veriyoruz */
    min-height: 70vh; 
}

/* --- MOBİL UYUMLULUK AYARLARI (Zorunlu Mod) --- */
@media screen and (max-width: 768px) {
    
    /* Yan reklamları mobilde KESİN OLARAK GİZLE */
    .sidebar-ad {
        display: none !important; 
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ana konteyneri dikey düzene zorla */
    .main-container {
        flex-direction: column !important;
        margin: 10px auto !important;
        padding: 0 10px !important;
        width: 100% !important;
    }

    .content-area {
        margin: 0 !important;
        width: 100% !important;
    }

    .navbar {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .search-box input {
        width: 100% !important;
    }

    .tools-grid {
        grid-template-columns: 1fr !important;
    }
}