/* Ana sayfa — kampanya kartı vurgusu */

.campaigns-section .campaign-card {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(204, 0, 0, 0.18);
    animation: campaign-card-pulse 2.4s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.campaigns-section .campaign-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        135deg,
        rgba(204, 0, 0, 0.35),
        rgba(255, 180, 80, 0.2),
        rgba(204, 0, 0, 0.35)
    );
    opacity: 0;
    animation: campaign-card-glow 2.4s ease-in-out infinite;
}

.campaigns-section .campaign-card > * {
    position: relative;
    z-index: 1;
}

.campaigns-section .row-cols-5 > .col-lg:nth-child(1) .campaign-card,
.campaigns-section .row-cols-5 > .col-lg:nth-child(1) .campaign-card::before,
.campaigns-section .row-cols-5 > .col-lg:nth-child(1) .campaign-label {
    animation-delay: 0s;
}

.campaigns-section .row-cols-5 > .col-lg:nth-child(2) .campaign-card,
.campaigns-section .row-cols-5 > .col-lg:nth-child(2) .campaign-card::before,
.campaigns-section .row-cols-5 > .col-lg:nth-child(2) .campaign-label {
    animation-delay: 0.25s;
}

.campaigns-section .row-cols-5 > .col-lg:nth-child(3) .campaign-card,
.campaigns-section .row-cols-5 > .col-lg:nth-child(3) .campaign-card::before,
.campaigns-section .row-cols-5 > .col-lg:nth-child(3) .campaign-label {
    animation-delay: 0.5s;
}

.campaigns-section .row-cols-5 > .col-lg:nth-child(4) .campaign-card,
.campaigns-section .row-cols-5 > .col-lg:nth-child(4) .campaign-card::before,
.campaigns-section .row-cols-5 > .col-lg:nth-child(4) .campaign-label {
    animation-delay: 0.75s;
}

.campaigns-section .row-cols-5 > .col-lg:nth-child(5) .campaign-card,
.campaigns-section .row-cols-5 > .col-lg:nth-child(5) .campaign-card::before,
.campaigns-section .row-cols-5 > .col-lg:nth-child(5) .campaign-label {
    animation-delay: 1s;
}

.campaigns-section .campaign-card:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(204, 0, 0, 0.22),
        0 0 0 2px rgba(204, 0, 0, 0.35);
}

.campaigns-section .campaign-card:hover::before {
    animation-play-state: paused;
    opacity: 1;
}

.campaigns-section .campaign-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.campaigns-section .campaign-actions .btn-campaign {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.45);
    animation: campaign-btn-pulse 2s ease-in-out infinite;
}

.campaigns-section .campaign-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border-radius: 25px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, #cc0000, #e85d04);
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
    animation: campaign-badge-blink 1.8s ease-in-out infinite;
}

.campaigns-section .campaign-card:hover .btn-campaign,
.campaigns-section .campaign-card:hover .campaign-label {
    animation-play-state: paused;
}

@keyframes campaign-card-pulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow:
            0 3px 15px rgba(0, 0, 0, 0.1),
            0 0 0 0 rgba(204, 0, 0, 0);
    }
    50% {
        transform: translateY(-4px);
        box-shadow:
            0 12px 28px rgba(204, 0, 0, 0.18),
            0 0 0 4px rgba(204, 0, 0, 0.12);
    }
}

@keyframes campaign-card-glow {
    0%,
    100% {
        opacity: 0;
        filter: blur(8px);
    }
    50% {
        opacity: 0.55;
        filter: blur(2px);
    }
}

@keyframes campaign-badge-blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
    }
    50% {
        opacity: 0.55;
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(204, 0, 0, 0.2);
    }
}

@keyframes campaign-btn-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(204, 0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .campaigns-section .campaign-card,
    .campaigns-section .campaign-card::before,
    .campaigns-section .btn-campaign,
    .campaigns-section .campaign-label {
        animation: none !important;
    }

    .campaigns-section .campaign-label {
        opacity: 1;
    }
}
