﻿/* ==========================================
   İLAN TİCKER - KURUMSAL RENKLER
   --corporate-primary: #1B2B3A
   --corporate-blue: #26394A
   --corporate-accent: #b22222
   ========================================== */

.ilan-ticker-section {
    background: linear-gradient(135deg, #26394A 0%, #1B2B3A 100%);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 43, 58, 0.3);
}

.ilan-ticker-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 80px;
}

/* Sol Taraf - İLANLAR Etiketi - Kurumsal Kırmızı */
.ilan-ticker-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #b22222 0%, #8b1a1a 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    padding-right: 45px;
}

    .ilan-ticker-label:hover {
        background: linear-gradient(135deg, #c92a2a 0%, #b22222 100%);
        padding-left: 35px;
    }

    .ilan-ticker-label i:first-child {
        font-size: 18px;
        animation: pulse-icon 2s ease-in-out infinite;
    }

.ilan-arrow {
    font-size: 12px !important;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.ilan-ticker-label:hover .ilan-arrow {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Sağ Taraf - Kayan İlanlar Container */
.ilan-ticker-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

    /* Kenar fade efektleri - Kurumsal Mavi */
    .ilan-ticker-container::before,
    .ilan-ticker-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60px;
        z-index: 5;
        pointer-events: none;
    }

    .ilan-ticker-container::before {
        left: 0;
        background: linear-gradient(to right, #26394A 0%, transparent 100%);
    }

    .ilan-ticker-container::after {
        right: 0;
        background: linear-gradient(to left, #1B2B3A 0%, transparent 100%);
    }

/* Kayan Track */
.ilan-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: ticker-scroll 40s linear infinite;
    padding: 0 20px;
}

.ilan-ticker-container:hover .ilan-ticker-track {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Her bir ilan item */
.ilan-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

    .ilan-ticker-item:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

/* Dot indicator - Kurumsal Kırmızı */
.ilan-ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b22222;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.5);
    animation: dot-pulse 2s ease-in-out infinite;
}

.ilan-ticker-item:hover .ilan-ticker-dot {
    background: #d43d3d;
    box-shadow: 0 0 15px rgba(178, 34, 34, 0.6);
}

@keyframes dot-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* İlan Başlığı */
.ilan-ticker-title {
    font-size: 14px;
    font-weight: 500;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.ilan-ticker-item:hover .ilan-ticker-title {
    color: #fff;
}

/* Tarih */
.ilan-ticker-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 5px;
    transition: color 0.3s ease;
}

.ilan-ticker-item:hover .ilan-ticker-date {
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
    .ilan-ticker-label {
        padding: 12px 25px;
        padding-right: 40px;
        font-size: 13px;
    }

        .ilan-ticker-label span {
            display: none;
        }

        .ilan-ticker-label i:first-child {
            font-size: 20px;
        }

    .ilan-ticker-title {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .ilan-ticker-wrapper {
        min-height: 50px;
    }

    .ilan-ticker-label {
        padding: 10px 20px;
        padding-right: 30px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    }

    .ilan-ticker-item {
        padding: 10px 20px;
    }

    .ilan-ticker-title {
        font-size: 13px;
        max-width: 200px;
    }

    .ilan-ticker-date {
        display: none;
    }

    .ilan-ticker-track {
        animation-duration: 25s;
    }
}
