/* 29 Ekim Cumhuriyet Bayramı süslemesi.
   _Layout yalnızca bayram günlerinde yükler; html.sl-29ekim sınıfı da o günlerde eklenir.
   Hiçbir öğe tıklamayı engellemez ve sayfa düzenini kaydırmaz. */

.sl-29ekim .infonews {
    background: linear-gradient(90deg, #a3000c 0%, #d0000f 16%, #e30a17 50%, #d0000f 84%, #a3000c 100%) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .3);
}

    /* Şerit içeriği süsün (parıltı, filigran) üstünde kalır. */
    .sl-29ekim .infonews > .container-fluid {
        position: relative;
        z-index: 1;
    }

    .sl-29ekim .infonews .golink {
        color: #fff !important;
    }

    .sl-29ekim .infonews .news .badge {
        background: #fff !important;
        color: #c3000e !important;
    }

/* ---- Şerit: filigran ay-yıldızlar ve kayan parıltı ---- */
.sl29-bar {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='14000 -16000 44000 32000'%3E%3Cpath fill='%23fff' fill-opacity='.13' d='m41750 0 13568-4408-8386 11541V-7133l8386 11541zm925 8021a15000 15000 0 1 1 0-16042 12000 12000 0 1 0 0 16042z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='14000 -16000 44000 32000'%3E%3Cpath fill='%23fff' fill-opacity='.13' d='m41750 0 13568-4408-8386 11541V-7133l8386 11541zm925 8021a15000 15000 0 1 1 0-16042 12000 12000 0 1 0 0 16042z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 92px 67px, 92px 67px;
    background-position: 27% 70%, 76% 30%;
}

    .sl29-bar::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 28%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .17), transparent);
        transform: translateX(-100%);
        animation: sl29-sheen 8s ease-in-out infinite;
    }

@keyframes sl29-sheen {
    0%, 15% {
        transform: translateX(-100%);
    }

    65%, 100% {
        transform: translateX(360%);
    }
}

/* ---- Kutlama mesajı ---- */
.sl29-greet {
    position: absolute;
    z-index: 2;
    top: 7px;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

    .sl29-greet strong {
        font-weight: 800;
    }

.sl29-msg-long,
.sl29-msg-short {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(80, 0, 6, .35);
}

.sl29-msg-short {
    display: none;
}

.sl29-year {
    flex-shrink: 0;
    padding: 4px 9px 3px;
    border-radius: 999px;
    background: #fff;
    color: #c3000e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

/* Gönderde dalgalanan bayrak: dilimler sırayla inip kalkar. */
.sl29-wave {
    display: inline-flex;
    flex-shrink: 0;
    align-items: flex-start;
    height: 26px;
    filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .95)) drop-shadow(0 1px 2px rgba(60, 0, 4, .35));
}

.sl29-pole {
    position: relative;
    width: 2px;
    height: 26px;
    margin-right: 1px;
    border-radius: 1px;
    background: linear-gradient(#fff3cf, #d9b45a);
}

    .sl29-pole::before {
        content: "";
        position: absolute;
        top: -3px;
        left: -1.5px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #ffd875;
    }

.sl29-flag {
    display: flex;
    margin-top: 1px;
}

    .sl29-flag i {
        display: block;
        width: 3px;
        height: 20px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -30000 90000 60000'%3E%3Cpath fill='%23e30a17' d='M0-30000h90000v60000H0z'/%3E%3Cpath fill='%23fff' d='m41750 0 13568-4408-8386 11541V-7133l8386 11541zm925 8021a15000 15000 0 1 1 0-16042 12000 12000 0 1 0 0 16042z'/%3E%3C/svg%3E") no-repeat;
        background-size: 30px 20px;
        background-position: calc(var(--i) * -3px) 0;
        animation: sl29-wave 1.5s ease-in-out infinite;
        animation-delay: calc(var(--i) * -.13s);
    }

@keyframes sl29-wave {
    0%, 100% {
        transform: translateY(calc(var(--i) * -.17px));
        filter: brightness(1.1);
    }

    50% {
        transform: translateY(calc(var(--i) * .17px));
        filter: brightness(.86);
    }
}

/* ---- Şeridin altına asılı bayrak dizisi ---- */
.sl29-bunting {
    --sag: 13px;
    --fw: 24px;
    --fh: 16px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    height: 46px;
    overflow: hidden;
    pointer-events: none;
}

.sl29-swag {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

    /* İki kavisin birleştiği düğüm */
    .sl29-swag + .sl29-swag::before {
        content: "";
        position: absolute;
        z-index: 1;
        top: -1px;
        left: -3px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    }

.sl29-rope {
    position: absolute;
    top: 1px;
    left: 0;
    width: 100%;
    height: var(--sag);
    overflow: visible;
}

    .sl29-rope path {
        fill: none;
        stroke: rgba(255, 246, 225, .9);
        stroke-width: 1.4px;
    }

.sl29-pin {
    position: absolute;
    top: calc(1px + var(--y) * var(--sag));
    left: var(--x);
    width: var(--fw);
    height: calc(var(--fh) + 2px);
    margin-left: calc(var(--fw) / -2);
    transform: rotate(var(--a));
    transform-origin: 50% 0;
}

    .sl29-pin i {
        display: block;
        width: 100%;
        height: 100%;
        border-top: 2px solid #fff;
        border-radius: 0 0 1px 1px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -30000 90000 60000'%3E%3Cpath fill='%23e30a17' d='M0-30000h90000v60000H0z'/%3E%3Cpath fill='%23fff' d='m41750 0 13568-4408-8386 11541V-7133l8386 11541zm925 8021a15000 15000 0 1 1 0-16042 12000 12000 0 1 0 0 16042z'/%3E%3C/svg%3E") no-repeat;
        background-clip: padding-box;
        background-origin: padding-box;
        background-size: 100% 100%;
        box-shadow: 0 3px 5px rgba(30, 0, 3, .3);
        transform-origin: 50% 0;
        animation: sl29-sway 2.8s ease-in-out infinite;
        animation-delay: var(--d);
    }

@keyframes sl29-sway {
    0%, 100% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(6deg);
    }
}

/* Ekran genişliğine göre kavis sayısı: her kavis ekranı eşit böler. */
.sl29-swag:nth-child(n+6) {
    display: none;
}

@media (min-width: 1920px) {
    .sl29-swag:nth-child(n+6) {
        display: block;
    }

    .sl29-swag:nth-child(n+7) {
        display: none;
    }
}

@media (min-width: 2560px) {
    .sl29-swag:nth-child(n+7) {
        display: block;
    }
}

@media (max-width: 1399.98px) {
    .sl29-swag:nth-child(n+5) {
        display: none;
    }
}

/* Mobil menü şeridin hemen altında koyu bir çubuk; dizi sığ tutulur ki logoya inmesin. */
@media (max-width: 991.98px) {
    .sl29-bunting {
        --sag: 5px;
        --fw: 15px;
        --fh: 10px;
        height: 26px;
    }

    .sl29-swag:nth-child(n+4) {
        display: none;
    }

    .sl29-year {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .sl29-bunting {
        --sag: 4px;
        --fw: 14px;
        --fh: 9px;
        height: 22px;
    }

    .sl29-swag:nth-child(n+3) {
        display: none;
    }

    .sl29-swag + .sl29-swag::before {
        top: 0;
        left: -2px;
        width: 4px;
        height: 4px;
    }
}

/* Dar ekranlarda mesaj, kampanya yazısıyla aynı yeri sırayla paylaşır. */
@media (max-width: 1199.98px) {
    .sl29-greet {
        left: 20px;
        max-width: calc(58.333% - 32px);
        transform: none;
        animation: sl29-show 12s infinite;
    }

    .sl-29ekim .infonews .news .badge,
    .sl-29ekim .infonews .news .golink {
        animation: sl29-hide 12s infinite;
    }
}

@media (max-width: 767.98px) {
    .sl29-greet {
        left: 18px;
        gap: 7px;
        max-width: calc(50% - 22px);
        font-size: 12px;
    }

    .sl29-msg-long,
    .sl29-year {
        display: none;
    }

    .sl29-msg-short {
        display: block;
    }

    .sl29-wave {
        height: 21px;
        transform: scale(.82);
        transform-origin: 0 50%;
        margin-right: -5px;
    }
}

@keyframes sl29-show {
    0%, 46%, 100% {
        opacity: 1;
        visibility: visible;
    }

    50%, 96% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes sl29-hide {
    0%, 46%, 100% {
        opacity: 0;
        visibility: hidden;
    }

    50%, 96% {
        opacity: 1;
        visibility: visible;
    }
}

/* ---- Oturumda bir kez düşen ay-yıldızlar (sl-29-ekim.js) ---- */
.sl29-confetti {
    position: fixed;
    inset: 0;
    z-index: 9990;
    overflow: hidden;
    pointer-events: none;
}

    .sl29-confetti i {
        position: absolute;
        top: -24px;
        display: block;
        opacity: 0;
        animation: sl29-fall 4s linear both;
    }

    .sl29-confetti .sl29-c-star {
        width: 13px;
        height: 13px;
        background: var(--c);
        clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }

    .sl29-confetti .sl29-c-crescent {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        box-shadow: inset 3px 0 0 0 var(--c);
    }

    .sl29-confetti .sl29-c-bit {
        width: 7px;
        height: 11px;
        border-radius: 1px;
        background: var(--c);
    }

@keyframes sl29-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0);
    }

    8%, 78% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate3d(var(--dx), 82vh, 0) rotate(var(--r));
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl29-bar::after,
    .sl29-flag i,
    .sl29-pin i {
        animation: none;
    }

    .sl29-confetti {
        display: none;
    }
}
