/* ==========================================================================
   ANASAYFA KAYAN DUYURU BİLEŞENİ (DESKTOP & MOBİL UYUMLU)
   ========================================================================== */

.home-announcement-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

.announcement-container {
    width: 100%;
    max-width: 1350px;
    padding: 0 15px;
    margin: 0 auto;
}

/* KAPSAYICI BAR */
.announcement-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 60px;
    padding: 6px 10px 6px 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* 📢 SOL ROZET */
.announcement-badge {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.2);
    flex-shrink: 0;
    z-index: 2;
}

.badge-icon {
    font-size: 15px;
    transform: rotate(-10deg);
}

/* 🔄 KAYAN DUYURU ALANI */
.announcement-ticker-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.announcement-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    will-change: transform;
    animation: continuousTicker 28s linear infinite;
}

.announcement-ticker-wrapper:hover .announcement-ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #2c3e50;
}

.ticker-icon {
    font-size: 16px;
    color: #2e7d32;
    flex-shrink: 0;
}

.ticker-icon.fa-star { color: #fbc02d; }
.ticker-icon.fa-leaf { color: #388e3c; }
.ticker-icon.fa-bullhorn { color: #1b5e20; }
.ticker-icon.fa-calendar-check { color: #2e7d32; }

.ticker-text {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-text:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.ticker-bullet {
    color: #2e7d32;
    font-size: 14px;
    margin: 0 6px;
    opacity: 0.7;
}

/* ⏯️ SAĞ KONTROL BUTONU */
.announcement-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 3px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    z-index: 2;
}

.ctrl-btn {
    background: transparent;
    border: none;
    outline: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctrl-btn:hover {
    background-color: #f0fdf4;
    color: #1b5e20;
    transform: scale(1.05);
}

/* KESİNTİSİZ AKIŞ ANİMASYONU */
@keyframes continuousTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   MOBİL ÖZEL UYARLAMALARI (GENİŞ METİN ALANI)
   ========================================================================== */

@media (max-width: 768px) {
    .home-announcement-wrapper {
        padding: 12px 0;
    }
    .announcement-container {
        padding: 0 10px;
    }
    .announcement-bar {
        gap: 8px;
        padding: 4px 6px;
        border-radius: 30px;
    }
    
    /* Mobilde Sol Rozet */
    .announcement-badge {
        padding: 7px 10px;
        font-size: 11px;
        border-radius: 20px;
        gap: 5px;
    }
    .badge-icon {
        font-size: 12px;
    }

    /* Mobilde Metin Boyutları */
    .ticker-item {
        font-size: 13px;
        gap: 6px;
    }
    .ticker-icon {
        font-size: 14px;
    }

    /* Mobilde Sağ Buton */
    .ctrl-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlarda rozet yazısı gizlenir, sadece korna ikon kalır */
    .announcement-badge span {
        display: none;
    }
    .announcement-badge {
        padding: 6px;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        justify-content: center;
    }
    .badge-icon {
        margin: 0;
    }
}