/* =================================================================
   YENİ BİRLEŞTİRİLMİŞ ÜST BÖLÜM STİLLERİ
   ================================================================= */

/* Ana Bar Kapsayıcısı */
.top-header-bar {
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 0;
    position: relative;
    z-index: 60;
    overflow: hidden;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 2px 15px rgba(56, 189, 248, 0.3);
}

/* Duyuru ve İletişim Alanları için Flexbox */
.top-header-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Duyuru Alanı */
.top-announcement {
    flex-grow: 1; /* Mümkün olduğunca genişlesin */
    text-align: center; /* İçeriği ortala */
    min-width: 0; /* Flexbox'ın metni düzgün sığdırması için önemli */
}
#announcement-carousel {
    position: relative;
    height: auto; /* Yüksekliği içeriğe göre ayarla */
    min-height: 1.25em; /* Boşken bile minimum yükseklik */
    display: inline-block;
    width: 100%;
}
.announcement-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 0 1rem; /* Yanlardan biraz boşluk */
}
.announcement-item.active {
    opacity: 1;
}
.top-announcement a {
    color: #f0f9ff;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
    animation: pulse-text 4s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.top-announcement a:hover {
    transform: scale(1.03);
    text-shadow: 0 0 16px rgba(56, 189, 248, 1);
}
.sparkle-icon {
    display: inline-block;
    margin-right: 0.5rem;
    animation: sparkle 2s infinite;
}

/* İletişim Alanı */
.top-contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0; /* Duyuru alanı genişlerken bu alanın küçülmesini engelle */
}
.top-contact-info a {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
.top-contact-info a:hover {
    color: #7dd3fc;
    transform: translateY(-2px);
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}
.top-contact-info a svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Animasyonlar */
@keyframes pulse-text {
    0%, 100% { text-shadow: 0 0 8px rgba(56, 189, 248, 0.7); }
    50% { text-shadow: 0 0 16px rgba(56, 189, 248, 1), 0 0 20px rgba(139, 92, 246, 0.5); }
}
@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Mobil Cihazlar İçin GÜNCELLENMİŞ BÖLÜM */
@media (max-width: 767px) {
    .top-header-bar .container {
        /* YENİ: Dikey olarak alt alta ve ortalı hizalama */
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem; /* Aradaki dikey boşluğu ayarla */
    }

    /* Duyurunun taşmasını ve alt satıra inmesini engelle */
    .top-announcement {
        overflow: hidden; /* Taşan kısmı gizle */
        width: 100%; /* Tam genişlik kullan */
        order: 1; /* Duyuruyu üste al */
    }
    .announcement-item {
        white-space: nowrap; /* Metnin alt satıra inmesini KESİNLİKLE engelle */
        text-overflow: ellipsis; /* Sığmazsa sonuna ... koy */
        overflow: hidden; /* Sığmayan kısmı gizle */
    }
    .top-announcement a {
        font-size: 0.8rem; /* Yazı boyutunu biraz küçült */
    }

    .top-contact-info {
        gap: 1.5rem; /* İkonlar arası boşluğu biraz artır */
        order: 2; /* İletişim bilgilerini alta al */
    }
    
    /* YENİ: İletişim bölümünde ikon ve metinlerin birlikte görünmesi sağlandı */
    .top-contact-info a span {
        display: inline-block !important; /* Metinleri GÖSTER */
        font-size: 0.8rem; /* Metin boyutunu ayarla */
    }
}
