/* GENEL AYARLAR */
body {
    background-color: #050505;
    margin: 0;
    padding-top: 80px; /* Navbar yüksekliği kadar */
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    color: #eee;
}

/* --- ÜST BAR (NAVBAR) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-sizing: border-box;
}

/* SOL: LOGO */
.nav-left { flex: 1; display: flex; align-items: center; }
.nav-logo {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.nav-logo span { color: #00ff80; text-shadow: 0 0 10px rgba(0, 255, 128, 0.6); }

/* ORTA: SEKMELER */
.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    height: 100%;
    gap: 10px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: #777;
    height: 100%;
    padding: 0 20px;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid transparent;
    gap: 4px;
}

.nav-tab-icon {
    font-size: 1.2rem;
    filter: grayscale(100%);
    transition: 0.3s;
}

.nav-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }
.nav-tab:hover .nav-tab-icon { filter: grayscale(0%); transform: translateY(-2px); }

.nav-tab.active {
    color: #00ff80;
    border-bottom-color: #00ff80;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,255,128,0.05) 100%);
}
.nav-tab.active .nav-tab-icon { filter: grayscale(0%) drop-shadow(0 0 5px rgba(0,255,128,0.5)); }

/* SAĞ: KONTROLLER */
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hud-container {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0 10px;
    height: 36px;
    gap: 10px;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #aaa;
}

.hud-val { color: #ff4757; font-weight: bold; font-family: monospace; }
.hud-input { 
    background: transparent; border: none; color: #00ff80; 
    width: 25px; text-align: center; font-weight: bold; font-size: 0.9rem;
    outline: none;
}

.btn-navbar {
    height: 36px;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-auth {
    background: #222;
    border: 1px solid #444;
    color: #ffd700;
}
.btn-auth:hover { border-color: #ffd700; background: rgba(255, 215, 0, 0.1); color: #fff; }

.btn-logout {
    background: #d63031;
    border: 1px solid #d63031;
    color: #fff;
}
.btn-logout:hover { background: #ff4757; border-color: #ff4757; box-shadow: 0 0 10px rgba(255, 71, 87, 0.3); }

/* --- SAYFA İÇERİĞİ --- */
.tab-content { 
    display: none; 
    animation: fadeIn 0.4s; 
    padding: 20px; 
    max-width: 1000px; /* Tüm sekmelerin yayılma alanını artırır */
    margin: 0 auto; 
}

.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* MEDYA OYNATICI */
.viewer-container { text-align: center; margin-top: 20px; }
.counter { color: #555; margin-bottom: 10px; font-family: monospace; }
.media-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}
.media-content { max-width: 100%; max-height: 60vh; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.caption-box { background: #111; padding: 15px; border-radius: 8px; border: 1px solid #333; margin-bottom: 20px; min-height: 24px; }
.caption-text { color: #00ff80; font-style: italic; }

.controls { display: flex; justify-content: center; gap: 20px; }
.btn-prev, .btn-next { padding: 12px 25px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-prev { background: #333; color: #fff; }
.btn-next { background: #ff4757; color: #fff; box-shadow: 0 0 15px rgba(255, 71, 87, 0.3); }

.user-card {
  display: flex;           /* Elemanları yan yana dizer */
  align-items: center;     /* Dikeyde ortalar */
  gap: 10px;               /* Resim ve yazı arasına boşluk koyar */
}

.user-avatar {
  width: 50px;             /* Sabit genişlik */
  height: 50px;            /* Sabit yükseklik */
  border-radius: 50%;      /* Yuvarlak yapmak için */
  object-fit: cover;       /* Resmi kutuya sığdırır, yamulmasını engeller */
}

/* --- CANLI AKIŞ (BÜYÜTÜLMÜŞ SÜRÜM) --- */
.live-feed-container { 
    background: #080808; 
    border: 1px solid #333; 
    border-radius: 12px; 
    padding: 25px; 
    border-left: 5px solid #00ff80; 
    max-width: 900px; /* Listeyi daha geniş ve okunaklı yapar */
    margin: 20px auto; /* Ortalar */
}

.feed-header { 
    color: #00ff80; 
    margin-bottom: 20px; 
    font-weight: bold; 
    border-bottom: 1px solid #333; 
    padding-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.feed-item { 
    padding: 18px 15px !important; 
    border-bottom: 1px solid #1a1a1a; 
    transition: all 0.2s ease; 
    display: flex; 
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.feed-item:hover { background: #121212; border-left: 2px solid #00ff80; }

.feed-item span {
    font-size: 1.15rem !important; /* Mesaj fontu büyütüldü */
    line-height: 1.5;
    color: #efefef;
}

/* Zaman damgasını hedefleyen kural */
.feed-item span[style*="color: #666"], 
.feed-item span[style*="font-family: monospace"] {
    font-size: 0.95rem !important; 
    color: #888 !important;
    margin-right: 15px;
    font-weight: 500;
}

/* Detay Kutusu */
.feed-details { 
    background: #0d0d0d !important; 
    padding: 20px !important; 
    margin: 10px 5px !important; 
    border-radius: 8px !important; 
    border: 1px solid #222 !important; 
    box-shadow: inset 0 0 15px rgba(0,255,128,0.05) !important;
    color: #ccc !important;
}

.feed-details div {
    font-size: 1.05rem !important; /* Detay yazıları büyütüldü */
    margin-bottom: 10px !important;
}

.feed-details strong, 
.feed-details div[style*="font-size: 0.65rem"] {
    font-size: 0.85rem !important; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555 !important;
}

/* TTS Alanı Düzeltme */
.tts-container { 
    background: #111; 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid #333; 
    text-align: center; 
    max-width: 500px; /* Butonun ve kutunun çok yayılmasını engeller */
    margin: 40px auto; /* Sayfayı ortalar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tts-input { 
    width: 100%; /* Kendi kutusuna tam yayılır */
    max-width: 100%;
    background: #000; 
    border: 1px solid #444; 
    color: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    resize: none; 
    height: 100px; 
    outline: none; 
    box-sizing: border-box;
}

#ttsBtn {
    width: 100% !important; /* tts-container kadar geniş olur, tüm ekran kadar değil */
    max-width: 400px;
}

/* MODAL */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); }
.modal-content { background-color: #111; margin: 8% auto; padding: 25px; border: 1px solid #333; width: 90%; max-width: 450px; border-radius: 12px; border-left: 4px solid #ffd700; color: #eee; position: relative; }
.close-modal-btn { position: absolute; right: 20px; top: 15px; color: #666; font-size: 28px; cursor: pointer; }

/* DİĞER */
.floating-text { position: fixed; color: #ff4757; font-weight: bold; font-size: 1.2rem; pointer-events: none; animation: floatUp 0.8s ease-out forwards; z-index: 9999; }
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-50px) scale(1.5); } }

/* MOBİL UYUM */
@media screen and (max-width: 900px) {
    .navbar { height: auto; flex-direction: column; padding: 10px; gap: 10px; }
    .nav-center { width: 100%; border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 5px 0; }
    .nav-right { width: 100%; justify-content: space-between; }
    body { padding-top: 180px; }
}