/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Stilleri */
.sidebar {
    width: 250px;
    background-color: #2a2a2a;
    padding: 20px 0;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.logo {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.menu ul {
    list-style: none;
}

.menu li {
    position: relative;
    margin: 5px 0;
}

.menu li a {
    display: block;
    padding: 14px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 16px;
    min-height: 44px;
}

.menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu li a:hover {
    color: #fff;
}

.menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    z-index: -1;
    transition: width 0.3s ease;
}

.menu li a:hover::before {
    width: 100%;
}

/* Main Content Stilleri */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    line-height: 1.6;
}

/* HABER GÖRÜNÜMÜ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sütun */
    gap: 20px;
    margin-top: 30px;
}

/* HABER RESİMLERİ */
.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
    background-color: #111;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        padding: 10px 0;
        overflow: visible;
        max-height: 300px;
        overflow-y: auto;
    }
    .logo {
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #333;
    }
    .menu li a {
        padding: 12px 15px;
        font-size: 18px;
        min-height: 44px;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px 10px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    body {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .menu li a {
        padding: 14px 10px;
        font-size: 16px;
    }
    body {
        font-size: 14px;
    }
}

/* Dokunmatik cihazlarda hover efektlerini kaldır */
@media (hover: none) {
    .menu li a:hover::before {
        width: 0;
    }
}
