/* style.css */

/* --- Genel Sıfırlama ve Yapı --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
}
.hidden { display: none !important; }
.clickable { cursor: pointer; }

/* --- Oturum Açma Ekranı --- */
#auth-screen { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.auth-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 350px; text-align: center; margin: 10px; }
.auth-card input { width: 90%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; }
.auth-card button { background-color: #1DA1F2; color: white; padding: 10px; border: none; border-radius: 9999px; width: 95%; font-weight: bold; cursor: pointer; margin-top: 10px; }
.link { color: #1DA1F2; cursor: pointer; text-decoration: underline; }


/* --- Ana Uygulama Düzeni --- */
#main-app {
    display: flex;
    max-width: 950px; 
    margin: 0 auto;
    min-height: 100vh;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    background-color: white;
    position: relative; 
}

.sidebar { 
    width: 250px; 
    padding: 20px; 
    border-right: 1px solid #eee; 
}
.content-area { 
    flex-grow: 1; 
    max-width: 700px; 
    padding: 0 20px; 
}

/* Sidebar Görünüm Ayarları */
.user-info-area { text-align: center; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.profile-photo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid #1DA1F2; }
.settings-btn {
    width: 100%;
    padding: 10px;
    background-color: #777;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.user-info-area p {
    line-height: 1.5; 
}
.user-info-area strong, .user-info-area .verified-icon {
    vertical-align: middle;
}


/* --- Paylaşım Formu --- */
.post-form { padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.post-form textarea { width: 95%; min-height: 80px; border: 1px solid #ddd; border-radius: 10px; padding: 10px; resize: none; margin-bottom: 10px; }
.post-actions { display: flex; justify-content: space-between; align-items: center; }
.file-input { display: none; }

.file-label { 
    background-color: #eee; 
    padding: 8px 15px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    transition: background-color 0.2s;
}
.file-label:hover { background-color: #e0e0e0; }

.post-actions button { background-color: #1DA1F2; color: white; padding: 8px 15px; border: none; border-radius: 9999px; font-weight: bold; cursor: pointer; }

/* Medya Önizleme */
#media-preview-container {
    position: relative; 
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px;
    display: inline-block; 
}
.media-preview-image {
    max-width: 100%;
    max-height: 200px; 
    height: auto;
    border-radius: 8px;
    display: block;
}
.remove-media-btn {
    position: absolute; top: -5px; right: -5px; background-color: #f44336; color: white;
    border: 2px solid white; border-radius: 50%; width: 25px; height: 25px; line-height: 1;
    text-align: center; font-weight: bold; cursor: pointer; padding: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); z-index: 10;
}


/* --- Gönderi Kartları ve Mavi Tik --- */
.post-card { border: 1px solid #eee; border-radius: 10px; padding: 15px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: relative; }
.post-card .post-header { display: flex; align-items: center; margin-bottom: 10px; }
.post-card .post-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 10px; cursor: pointer; }
.post-card .post-header strong { cursor: pointer; } 

.delete-post-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #f44336;
    font-size: 1.2em;
    cursor: pointer;
}
.verified-icon {
    color: #1DA1F2; 
    font-size: 1.2em; 
    font-weight: bold; 
    margin-left: 5px; 
    display: inline-block;
    vertical-align: middle; 
}

/* ================================ */
/* RESİM BOYUTU DÜZELTMESİ */
/* Post kartının içindeki resimleri sınırlama */
.post-card .post-image {
    max-width: 100%; /* Konteynırın genişliğini aşmamasını sağlar */
    height: auto;    /* Oranları korur */
    display: block;  /* Satır içi boşlukları kaldırır */
    margin-top: 10px;
    border-radius: 8px;
}
/* ================================ */


/* --- PROFİL SAYFASI STİLLERİ --- */
#profile-view {
    padding-top: 20px;
}
.profile-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}
#profile-username-display {
    display: inline-block; 
    margin: 5px 0 0 0;
}
#profile-join-date {
    color: #777;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}
#back-to-feed-btn {
    float: left;
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}
.profile-header:after {
    content: "";
    display: table;
    clear: both;
}

/* --- AYARLAR MODALI STİLLERİ --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1000;
    display: flex; justify-content: center; align-items: center;
}
.modal-content {
    background-color: white; padding: 30px; border-radius: 10px; width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); position: relative;
}
.close-btn {
    position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold;
    cursor: pointer; color: #aaa;
}
.modal-content input[type="password"], .modal-content input[type="file"] {
    width: 95%; padding: 10px; margin: 5px 0 15px 0; border: 1px solid #ddd; border-radius: 5px;
}
.save-btn {
    background-color: #28a745; color: white; padding: 10px 15px; border: none; border-radius: 5px;
    font-weight: bold; cursor: pointer; margin-top: 10px; width: 100%;
}
.photo-save-btn { margin-top: 5px; }
.modal-profile-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }
hr { margin: 20px 0; border: 0; border-top: 1px solid #eee; }


/* --- YÖNETİCİ KONTROL PANELİ STİLLERİ --- */
.admin-widget {
    position: absolute; bottom: 0; right: 0; width: 250px; padding: 15px; background: #fff3e0; 
    border-top-left-radius: 15px; border-left: 1px solid #ffcc80; border-top: 1px solid #ffcc80;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
.admin-widget select { width: 100%; padding: 8px; margin-bottom: 10px; }
.admin-button { width: 100%; padding: 8px; margin-bottom: 5px; border: none; font-weight: bold; cursor: pointer; border-radius: 5px; }
.verify-button { background-color: #1DA1F2; color: white; }
.ban-button { background-color: #f44336; color: white; }