/* =================================================================
   KARŞILAŞTIRMA KARTI CSS - Ana Sayfa
   Butik vs Dinamik Kapı Karşılaştırma Kartı
   Modern VS tasarımı ile split design
   ================================================================= */

/* Ana Wrapper */
.karsilastirma-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

/* Kırmızı çizgi - Hero banner ile aynı */
.karsilastirma-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #b80211 0%, #f93f48 50%, #b80211 100%);
    box-shadow: 0 0 15px rgba(242, 39, 70, 0.8);
    z-index: 2;
    overflow: hidden;
}

/* Beyaz ışın efekti */
.karsilastirma-top-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 35%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%
    );
    animation: slideRedLight 6s ease-in-out infinite;
    animation-delay: 3s;
    z-index: 3;
}

@keyframes slideRedLight {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* Ana Container */
.karsilastirma-container {
    width: 100%;
    background: #fef7ed;
    position: relative;
    overflow: hidden;
    padding: 60px 100px;
}

/* Krem arka plan üzerine kırmızı noktalı animasyon */
.karsilastirma-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 20% 30%,
            rgba(196, 30, 58, 0.2) 3px,
            transparent 3px
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(196, 30, 58, 0.15) 2px,
            transparent 2px
        ),
        radial-gradient(
            circle at 40% 60%,
            rgba(196, 30, 58, 0.18) 2.5px,
            transparent 2.5px
        );
    background-size: 60px 60px, 100px 100px, 80px 80px;
    background-position: 0 0, 50px 50px, 25px 25px;
    animation: redDotsMove 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes redDotsMove {
    0% {
        background-position: 0 0, 50px 50px, 25px 25px;
    }
    100% {
        background-position: 60px 60px, 150px 150px, 105px 105px;
    }
}

/* Karşılaştırma Link */
.karsilastirma-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

/* İçerik Container */
.karsilastirma-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(196, 30, 58, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.karsilastirma-link:hover .karsilastirma-content {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(196, 30, 58, 0.25);
}

/* VS Taraflar */
.vs-side {
    text-align: center;
    position: relative;
}

/* Desktop: Wrapper görünmez */
.vs-sides-wrapper {
    display: contents;
}

.vs-left {
    order: 1;
}

.vs-center {
    order: 2;
}

.vs-right {
    order: 3;
}

/* Sol - Kırmızı tema */
.vs-left {
    border-right: 3px solid #f0f0f0;
}

.vs-left .vs-badge {
    background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
    color: white;
}

.vs-left .vs-icon {
    background: linear-gradient(
        135deg,
        rgba(196, 30, 58, 0.1) 0%,
        rgba(160, 22, 40, 0.1) 100%
    );
    color: #c41e3a;
}

/* Sağ - Mavi tema */
.vs-right {
    border-left: 3px solid #f0f0f0;
}

.vs-right .vs-badge {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.vs-right .vs-icon {
    background: linear-gradient(
        135deg,
        rgba(33, 150, 243, 0.1) 0%,
        rgba(25, 118, 210, 0.1) 100%
    );
    color: #2196f3;
}

/* Badge */
.vs-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image */
.vs-image {
    width: 230px;
    height: 230px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.vs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.karsilastirma-link:hover .vs-image {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.karsilastirma-link:hover .vs-image img {
    transform: scale(1.1);
}

/* Title */
.vs-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* VS Center */
.vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 40px 50px;
    background: linear-gradient(
        135deg,
        rgba(196, 30, 58, 0.03) 0%,
        rgba(33, 150, 243, 0.03) 100%
    );
    border-radius: 16px;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
        linear-gradient(135deg, #c41e3a 0%, #2196f3 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.25),
        0 0 30px rgba(33, 150, 243, 0.2), inset 0 0 15px rgba(196, 30, 58, 0.05);
    animation: neonPulse 4s ease-in-out infinite;
}

@keyframes neonPulse {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(196, 30, 58, 0.25),
            0 0 30px rgba(33, 150, 243, 0.2),
            inset 0 0 15px rgba(196, 30, 58, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.35),
            0 0 40px rgba(33, 150, 243, 0.3), 0 0 60px rgba(196, 30, 58, 0.15),
            inset 0 0 20px rgba(196, 30, 58, 0.08);
    }
}

.vs-center::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #c41e3a 0%, #2196f3 100%);
    border-radius: 16px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.3;
    animation: neonGlow 4s ease-in-out infinite;
}

@keyframes neonGlow {
    0%,
    100% {
        opacity: 0.3;
        filter: blur(8px);
    }
    50% {
        opacity: 0.5;
        filter: blur(10px);
    }
}

.karsilastirma-link:hover .vs-center::before {
    opacity: 0.6;
}

.vs-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c41e3a 0%, #2196f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3),
        0 0 40px rgba(33, 150, 243, 0.15);
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3),
            0 0 40px rgba(33, 150, 243, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(196, 30, 58, 0.4),
            0 0 50px rgba(33, 150, 243, 0.2);
    }
}

.vs-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: white;
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vs-text {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #c41e3a 0%, #2196f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vs-compare-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.vs-compare-btn {
    padding: 18px 45px;
    background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.vs-compare-btn:hover {
    background: linear-gradient(135deg, #a01628 0%, #c41e3a 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 32px rgba(196, 30, 58, 0.5);
}

.vs-compare-btn i {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .karsilastirma-container {
        padding: 40px 80px;
    }
}

@media (max-width: 1200px) {
    .karsilastirma-container {
        padding: 40px 60px;
    }

    .karsilastirma-content {
        padding: 40px;
        gap: 35px;
    }

    .vs-title {
        font-size: 1.8rem;
    }

    .vs-image {
        width: 200px;
        height: 200px;
    }

    .vs-circle {
        width: 140px;
        height: 140px;
    }

    .vs-text {
        font-size: 3rem;
    }

    .vs-compare-text {
        font-size: 1.2rem;
    }

    .vs-compare-btn {
        padding: 16px 38px;
        font-size: 1.05rem;
    }
}

@media (max-width: 968px) {
    .karsilastirma-container {
        padding: 30px 15px;
    }

    .karsilastirma-content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .vs-center {
        padding: 35px 30px;
    }

    /* Responsive: Wrapper aktif */
    .vs-sides-wrapper {
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: flex-start;
    }

    .vs-side {
        flex: 1;
        max-width: 50%;
    }

    .vs-left,
    .vs-right {
        border: none;
        padding: 0;
    }

    .vs-circle {
        width: 130px;
        height: 130px;
    }

    .vs-text {
        font-size: 2.8rem;
    }

    .vs-image {
        width: 150px;
        height: 150px;
    }

    .vs-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .karsilastirma-container {
        padding: 25px 10px;
    }

    .karsilastirma-content {
        padding: 25px 15px;
        gap: 20px;
    }

    .vs-center {
        padding: 25px 20px;
    }

    /* Yan yana kartlar wrapper - mobilde de devam */
    .vs-sides-wrapper {
        gap: 15px;
    }

    .vs-circle {
        width: 100px;
        height: 100px;
    }

    .vs-text {
        font-size: 2rem;
    }

    .vs-compare-text {
        font-size: 1rem;
    }

    .vs-compare-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .vs-compare-btn i {
        font-size: 1rem;
    }

    .vs-image {
        width: 130px;
        height: 130px;
    }

    .vs-title {
        font-size: 1.2rem;
    }

    .vs-badge {
        font-size: 0.65rem;
        padding: 5px 15px;
    }
}
