/* Genel Sayfa Stilleri */
body {
    background-color: transparent;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f0f0f0;
}

/* Anket Overlay Ana Kapsayıcı */
#poll-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 420px; /* Biraz daha genişletildi */
    background-color: rgba(20, 20, 30, 0.92); /* Hafif daha opak */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(100, 100, 120, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    box-sizing: border-box;
}

#poll-overlay.visible {
     opacity: 1;
}

#poll-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}
#poll-overlay:not(.hidden) {
    display: block;
}

/* Anket Sorusu */
#poll-question {
    margin-top: 0;
    margin-bottom: 25px; /* Biraz daha boşluk */
    font-size: 1.35em;
    font-weight: 600;
    border-bottom: 1px solid rgba(100, 100, 120, 0.8);
    padding-bottom: 15px;
    color: #ffffff;
    line-height: 1.4;
}

/* Anket Seçenekleri Listesi */
#poll-options {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

/* Anket Seçeneği (Liste Öğesi) - Artık sadece kapsayıcı */
#poll-options li {
    margin-bottom: 12px;
    /* --- Giriş Animasyonu Ayarları --- */
    opacity: 0;
    transform: translateY(20px); /* Aşağıdan yukarı gelsin */
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
/* Anket görünür olduğunda seçenekleri animasyonla getir */
#poll-overlay.visible #poll-options li {
    opacity: 1;
    transform: translateY(0);
}
/* Kademeli (staggered) animasyon gecikmeleri */
#poll-overlay.visible #poll-options li:nth-child(1) { transition-delay: 0.1s; }
#poll-overlay.visible #poll-options li:nth-child(2) { transition-delay: 0.18s; } /* Biraz daha aralıklı */
#poll-overlay.visible #poll-options li:nth-child(3) { transition-delay: 0.26s; }
#poll-overlay.visible #poll-options li:nth-child(4) { transition-delay: 0.34s; }


/* --- Yeni Bar Stilleri --- */
.poll-bar-wrapper {
    position: relative; /* İçerideki absolute konumlandırma için */
    background-color: rgba(255, 255, 255, 0.1); /* Barın boş arka planı */
    border-radius: 6px;
    height: 35px; /* Bar yüksekliği */
    overflow: hidden; /* Doldurma çubuğu taşmasın */
    display: flex; /* İçerik hizalama için */
    align-items: center; /* Dikey ortalama */
    padding: 0 15px; /* İçerik için sağ/sol boşluk */
    box-sizing: border-box;
}

.poll-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0; /* height: 100% yerine */
    width: 0%; /* Başlangıç genişliği JavaScript ile ayarlanacak */
    background-image: linear-gradient(to right, #6a11cb, #2575fc); /* Renk geçişi */
    border-radius: 6px 0 0 6px; /* Sol köşeleri yuvarlat (tamamen dolunca sağ da yuvarlanır) */
    transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); /* Yumuşak geçiş animasyonu */
    z-index: 1; /* Metnin altında kalacak */
}
/* Bar tamamen dolduğunda sağ köşeleri de yuvarlat */
.poll-bar-fill[style*="width: 100%"] {
    border-radius: 6px;
}


.poll-bar-wrapper .option-text {
    position: relative; /* z-index çalışsın diye */
    z-index: 2; /* Dolgu çubuğunun üzerinde */
    color: #ffffff; /* Seçenek metni rengi */
    font-weight: 500; /* Biraz daha kalın */
    font-size: 1.0em;
    white-space: nowrap; /* Metin bölünmesin */
    overflow: hidden; /* Taşarsa gizle */
    text-overflow: ellipsis; /* Taşarsa ... ile göster */
    margin-right: auto; /* Sağdaki detaylardan ayırmak için */
    padding-right: 10px; /* Detaylara yapışmasın */
}

.poll-bar-wrapper .vote-details {
    position: relative; /* z-index çalışsın diye */
    z-index: 2; /* Dolgu çubuğunun üzerinde */
    font-size: 0.9em;
    color: #d0d0d0; /* Biraz soluk */
    font-weight: bold;
    white-space: nowrap; /* Tek satırda kalsın */
    background-color: rgba(0, 0, 0, 0.3); /* Okunabilirlik için hafif arka plan */
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px; /* Metinden ayır */
}

.vote-details .vote-percentage {
    /* Ekstra stil gerekirse */
}
.vote-details .vote-count {
     margin-left: 4px; /* Yüzde ve sayı arasını aç */
}
/* --- Bar Stilleri Sonu --- */

#poll-overlay p.voting-instruction {
    margin-top: 25px; /* Barlardan sonra boşluk */
    margin-bottom: 8px; /* Zamanlayıcıdan önceki boşluğu azalt */
    font-size: 0.9em;
    color: #b0b0b0;
    text-align: center;
}

/* Zamanlayıcı Paragrafı */
#poll-overlay p#timer-paragraph {
    margin-top: 0; /* Üstündeki paragrafla bitişik */
    margin-bottom: 0; /* Alt boşluğu kaldır */
    font-size: 0.95em;
    color: #cccccc;
    text-align: center;
}

/* Kalan Süre Sayacı (Span) */
#poll-timer {
    font-weight: bold;
    color: #ffffff;
}

/* Yükleme/Bağlantı Durumu (değişiklik yok) */
#loading {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

/* Weather/Clock Overlay (Tokyo-style) */
.tokyo-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.time-display {
    font-size: 16px;
    font-weight: bold;
}

.date-display {
    font-size: 14px;
    color: #ccc;
}

.location {
    font-size: 14px;
    color: #ffffff;
    border-right: 0px solid #444;
    margin-right: -5px;
}

.temperature {
    color: #ccc;
    font-size: 14px;
    margin-left: 0px;
}

/* Önceki vote-pulse animasyonunu kaldırabiliriz */
/* @keyframes vote-pulse { ... } */
/* #poll-options li.vote-updated { ... } */