/* =================================================================
   KARŞILAŞTIRMA DETAY CSS - Butik vs Dinamik Kapı
   Detaylı karşılaştırma tablosu ve açıklamalar
   ================================================================= */

/* Ana Wrapper */
.karsilastirma-detay-wrapper {
    width: 100%;
    background: #fef7ed;
}

/* Container */
.detay-container {
    padding: 50px 80px;
    position: relative;
}

.detay-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.15) 3px,
            transparent 3px
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(33, 150, 243, 0.15) 2px,
            transparent 2px
        );
    background-size: 60px 60px, 100px 100px;
    background-position: 0 0, 50px 50px;
    animation: redDotsMove 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes redDotsMove {
    0% {
        background-position: 0 0, 50px 50px;
    }
    100% {
        background-position: 60px 60px, 150px 150px;
    }
}

/* Tablo Wrapper */
.comparison-table-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* Tablo Başlıkları */
.table-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    padding: 25px 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.table-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 20% 30%,
            rgba(255, 255, 255, 0.15) 2.5px,
            transparent 2.5px
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255, 255, 255, 0.12) 2px,
            transparent 2px
        );
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: headerDotsMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes headerDotsMove {
    0% {
        background-position: 0 0, 40px 40px;
    }
    100% {
        background-position: 50px 50px, 120px 120px;
    }
}

.header-left,
.header-right {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-left h2,
.header-right h2 {
    font-size: 2rem;
    color: white;
    margin: 10px 0 0 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.header-badge.premium {
    background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
}

.header-badge.economic {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
}

.header-center {
    padding: 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-center span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 2px;
}

/* Karşılaştırma Satırları */
.comparison-rows {
    padding: 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: #f7fafc;
}

.row-left,
.row-right,
.row-center {
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.row-left {
    border-right: 2px solid #f0f0f0;
    justify-content: flex-end;
}

.row-right {
    border-left: 2px solid #f0f0f0;
    justify-content: flex-start;
}

.row-center {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-width: 250px;
}

.feature-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
}

.winner-icon {
    color: #4caf50;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.loser-icon {
    color: #f44336;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a5568;
}

/* Winner (Kazanan) */
.row-left.winner,
.row-right.winner {
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.05) 0%,
        rgba(76, 175, 80, 0.02) 100%
    );
}

.row-left.winner .value,
.row-right.winner .value {
    color: #2d3748;
    font-weight: 800;
    font-size: 1.3rem;
}

.row-left.winner i,
.row-right.winner i {
    color: #4caf50;
    font-size: 1.8rem;
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Equal (Eşit) */
.comparison-row.equal .row-left,
.comparison-row.equal .row-right {
    background: linear-gradient(
        135deg,
        rgba(255, 193, 7, 0.05) 0%,
        rgba(255, 193, 7, 0.02) 100%
    );
}

.comparison-row.equal i {
    color: #ff9800;
    font-size: 1.5rem;
}

/* CTA Section */
.detay-cta-section {
    padding: 50px 120px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Kırmızı çizgi - CTA üstünde */
.cta-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    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 - kırmızı çizgi üzerinde */
.cta-top-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 35%;
    height: 3px;
    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: slideCtaLight 6s ease-in-out infinite;
    animation-delay: 3s;
    z-index: 3;
}

@keyframes slideCtaLight {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

.detay-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 25% 40%,
            rgba(196, 30, 58, 0.25) 2.5px,
            transparent 2.5px
        ),
        radial-gradient(
            circle at 75% 60%,
            rgba(33, 150, 243, 0.25) 2px,
            transparent 2px
        );
    background-size: 60px 60px, 90px 90px;
    background-position: 0 0, 45px 45px;
    animation: ctaDotsMove 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes ctaDotsMove {
    0% {
        background-position: 0 0, 45px 45px;
    }
    100% {
        background-position: 60px 60px, 135px 135px;
    }
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
}

.cta-container p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.cta-btn.butik {
    background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
}

.cta-btn.butik:hover {
    background: linear-gradient(135deg, #a01628 0%, #c41e3a 100%);
}

.cta-btn.dinamik {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.cta-btn.dinamik:hover {
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .detay-container,
    .detay-cta-section {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media (max-width: 1200px) {
    .detay-container,
    .detay-cta-section {
        padding-left: 60px;
        padding-right: 60px;
    }

    .row-center {
        min-width: 200px;
    }

    .table-header {
        padding: 20px 30px;
    }

    .header-left h2,
    .header-right h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .detay-container,
    .detay-cta-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .row-left,
    .row-right,
    .row-center {
        padding: 12px 25px;
    }

    .feature-name {
        font-size: 1rem;
    }

    .value {
        font-size: 1.1rem;
    }

    .row-center {
        min-width: 180px;
    }
}

@media (max-width: 968px) {
    .detay-container,
    .detay-cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Mobil için tamamen dikey düzen */
    .table-header {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
        text-align: center;
    }

    .header-left,
    .header-right {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header-center {
        order: 2;
        padding: 15px 0;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }

    .header-left {
        order: 1;
    }

    .header-right {
        order: 3;
    }

    /* Karşılaştırma satırları mobil düzen */
    .comparison-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .row-center {
        order: 1;
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: white;
        min-width: auto;
        padding: 15px 20px;
        border: none;
        text-align: center;
    }

    .row-center .feature-name {
        color: white;
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .row-left {
        order: 2;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        justify-content: center;
        background: rgba(196, 30, 58, 0.05);
        position: relative;
    }

    .row-left::before {
        content: 'BUTİK KAPI';
        position: absolute;
        top: 5px;
        left: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        color: #c41e3a;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .row-right {
        order: 3;
        border: none;
        justify-content: center;
        background: rgba(33, 150, 243, 0.05);
        position: relative;
    }

    .row-right::before {
        content: 'DİNAMİK KAPI';
        position: absolute;
        top: 5px;
        left: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        color: #2196f3;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .row-left,
    .row-right {
        padding: 25px 20px 15px 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .cta-btn {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .detay-container,
    .detay-cta-section {
        padding: 30px 15px;
    }

    /* Header responsive - yan yana başlıklar */
    .table-header {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        justify-content: space-around;
        align-items: center;
        padding: 20px 10px;
        padding-bottom: 40px;
        gap: 15px;
    }

    /* Ortadaki "ÖZELLİKLER" yazısını gizle */
    .header-center {
        display: none !important;
    }

    /* Sol ve sağ başlıkları yan yana */
    .header-left,
    .header-right {
        flex: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .header-left h2,
    .header-right h2 {
        font-size: 1.3rem;
        margin: 5px 0 0 0;
    }

    .header-badge {
        padding: 6px 16px;
        font-size: 0.7rem;
    }

    .row-left,
    .row-right {
        padding: 20px 15px 12px 15px;
    }

    /* İlk satıra üstten boşluk */
    .comparison-row:first-child {
        margin-top: 10px;
    }

    .row-center {
        padding: 12px 15px;
    }

    .feature-name {
        font-size: 0.95rem;
    }

    .value {
        font-size: 1rem;
        text-align: center;
    }

    .winner-icon,
    .loser-icon {
        font-size: 1.3rem;
    }

    .cta-container h2 {
        font-size: 1.6rem;
    }

    .cta-container p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .detay-container,
    .detay-cta-section {
        padding: 20px 10px;
    }

    .table-header {
        padding: 15px 10px;
    }

    .header-left h2,
    .header-right h2 {
        font-size: 1.2rem;
    }

    .header-badge {
        padding: 5px 15px;
        font-size: 0.65rem;
    }

    .row-left::before,
    .row-right::before {
        font-size: 0.7rem;
        top: 3px;
        left: 15px;
    }

    .row-left,
    .row-right {
        padding: 18px 15px 10px 15px;
    }

    .row-center {
        padding: 10px 15px;
    }

    .feature-name {
        font-size: 0.9rem;
    }

    .value {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .winner-icon,
    .loser-icon {
        font-size: 1.2rem;
    }

    .cta-container h2 {
        font-size: 1.4rem;
    }

    .cta-container p {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        gap: 8px;
    }
}

/* Yatay scroll için küçük ekranlar */
@media (max-width: 380px) {
    .comparison-table-wrapper {
        border-radius: 15px;
    }

    .table-header {
        border-radius: 15px 15px 0 0;
    }
}

/* Mobil optimizasyonları ve touch improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlar için */
    .cta-btn {
        min-height: 48px; /* Apple ve Android dokunma alanı standardı */
        transform: none;
        transition: background 0.2s ease;
    }

    .cta-btn:active {
        transform: scale(0.98);
        background: rgba(0, 0, 0, 0.1);
    }

    /* Hover efektlerini kaldır */
    .comparison-row:hover {
        background: transparent;
    }
}

/* Retina display optimizasyonu */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .winner-icon,
    .loser-icon {
        transform: translateZ(0); /* GPU acceleration */
    }
}

/* Landscape mode tablet optimizasyonu */
@media (max-width: 1024px) and (orientation: landscape) {
    .detay-container,
    .detay-cta-section {
        padding: 30px 40px;
    }

    .table-header {
        padding: 20px 30px;
    }

    .row-left,
    .row-right,
    .row-center {
        padding: 10px 25px;
    }
}

/* Print stilleri */
@media print {
    .karsilastirma-detay-wrapper {
        background: white;
    }

    .detay-container::before,
    .table-header::before,
    .detay-cta-section::before {
        display: none;
    }

    .cta-top-line,
    .cta-top-line::before {
        display: none;
    }

    .detay-cta-section {
        background: white;
        color: black;
    }

    .cta-container h2,
    .cta-container p {
        color: black;
    }

    .cta-buttons {
        display: none;
    }
}

/* Performance optimizasyonu - GPU acceleration */
.comparison-table-wrapper,
.cta-btn,
.header-badge {
    will-change: transform;
    transform: translateZ(0);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .karsilastirma-detay-wrapper {
        background: #1a202c;
    }

    .comparison-table-wrapper {
        background: #2d3748;
        color: white;
    }

    .row-center {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }

    .feature-name {
        color: white;
    }

    .value {
        color: #e2e8f0;
    }

    .comparison-row:hover {
        background: #374151;
    }
}
