/* Genel Ayarlar */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* --- LOGIN SAYFASI --- */
.login-container {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; background: linear-gradient(135deg, #ece9e6, #ffffff);
    padding: 20px;
}
.login-box {
    background: white; padding: 40px; border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center;
    width: 100%; max-width: 400px;
}
.login-title { margin-bottom: 20px; color: #2c3e50; font-size: 1.5em; }
.login-input {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd;
    border-radius: 8px; box-sizing: border-box; font-size: 1em;
}
.login-button {
    width: 100%; padding: 12px; background-color: #d32f2f; color: white;
    border: none; border-radius: 8px; font-size: 1.1em; cursor: pointer;
    transition: background 0.3s;
}
.login-button:hover { background-color: #b71c1c; }
.info-box {
    margin-top: 20px; background: #e3f2fd; padding: 15px;
    border-radius: 8px; font-size: 0.9em; color: #0d47a1; text-align: left;
}

/* --- PANEL STİLLERİ --- */
.top-bar {
    background-color: #ffffff; padding: 10px 20px; display: flex;
    justify-content: space-between; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky;
    top: 0; z-index: 1000; flex-wrap: wrap; gap: 10px;
}
.top-logo { height: 40px; }
.top-info { font-size: 0.85em; color: #666; display: flex; gap: 10px; align-items: center; }
.top-info span { background: #f0f2f5; padding: 4px 8px; border-radius: 5px; }
.xpanel-button {
    background-color: #d32f2f; color: white; padding: 6px 15px;
    text-decoration: none; border-radius: 5px; font-weight: bold;
    font-size: 0.9em; transition: background 0.3s;
}
.xpanel-button:hover { background-color: #b71c1c; }

/* KOLON YAPISI (MASAÜSTÜ İÇİN GÜNCELLENDİ) */
.columns-container {
    display: flex;
    padding: 15px;
    gap: 10px; /* Aradaki boşluğu azalttık */
    align-items: flex-start;
    flex-wrap: nowrap; /* Asla aşağı kaydırma (Masaüstü varsayılanı) */
    overflow-x: auto; /* Çok daralırsa kaydır ama genelde sığacak */
}

.column {
    flex: 1; /* Eşit genişlikte dağıl */
    min-width: 0; /* İçeriğe göre değil, alana göre daralmasına izin ver */
    background-color: #eef2f3;
    border-radius: 8px;
    padding: 10px; /* İç boşluğu biraz azalttık */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.column-title {
    text-align: center; color: #2c3e50; font-size: 1.1em; /* Başlığı biraz küçülttük */
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid #ddd; padding-bottom: 8px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* Başlık sığmazsa ... koy */
}

/* Haber Kartı */
.article-card {
    background: white; border-radius: 6px; padding: 12px;
    margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid transparent; height: auto;
    display: flex; flex-direction: column;
}
.article-card:hover {
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-left-color: #3498db;
}
.article-card.duplicate { background-color: #f9fbe7; border: 1px solid #cddc39; }

.article-title {
    font-weight: 600; margin: 0 0 8px 0; font-size: 0.95em;
    line-height: 1.3; color: #2c3e50;
}
.article-title.duplicate { color: #388e3c; }

.article-summary {
    font-size: 0.85em; color: #555; margin-bottom: 8px;
    line-height: 1.4; display: block;
}

.article-time {
    font-size: 0.75em; color: #999; text-align: right; margin-top: auto;
}

/* Popup */
.popup-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    z-index: 2000; backdrop-filter: blur(3px);
}
.popup-container {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%); background: white;
    width: 90%; max-width: 800px; max-height: 90vh;
    overflow-y: auto; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 2001; padding: 0;
}
.popup-inner { padding: 30px; position: relative; }
.popup-close {
    position: absolute; top: 15px; right: 20px; background: none;
    border: none; font-size: 28px; cursor: pointer; color: #666;
}
.popup-title { margin-top: 0; color: #2c3e50; font-size: 1.6em; line-height: 1.3; }
.popup-description {
    font-style: italic; color: #666; border-left: 4px solid #3498db;
    padding-left: 15px; margin: 20px 0; font-size: 1.1em;
}
.popup-content { line-height: 1.8; font-size: 1.1em; color: #333; }
.popup-meta {
    margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee;
    font-size: 0.9em; color: #777;
}

/* --- MEDIA QUERIES (TABLET VE MOBİL İÇİN) --- */

/* Tablet (1024px altı) - Burada sığmayacağı için wrap açıyoruz */
@media (max-width: 1024px) {
    .columns-container {
        flex-wrap: wrap; /* Sığmazsa aşağı at */
    }
    .column {
        flex: 0 0 45%; /* İkişerli diz */
        min-width: 250px;
    }
}

/* Mobil (768px altı) */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; align-items: flex-start; }
    .column { flex: 0 0 100%; /* Tekli diz */ }
}
