/* ==========================================================================
   KaguTech Systems - Karşılaştırma Sayfası Ek Stilleri
   Mevcut style.css üzerine eklenen bileşenler
   ========================================================================== */

/* --- Scroll Progress Indicator --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 1001;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* --- Page Hero --- */
.page-hero {
    padding: 8rem 0 3rem;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2.5rem 0 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Kategori Filtreleme --- */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.5rem 0 3rem;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- Karşılaştırma Grid --- */
.comparisons-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 4rem;
}

/* --- Karşılaştırma Kartı --- */
.comparison-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.comparison-card.hidden {
    display: none;
}

.comparison-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.comparison-card.animate-in {
    animation: compSlideUp 0.6s ease forwards;
}

@keyframes compSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Card Header --- */
.comp-header {
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.comp-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comp-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.comp-icon-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comp-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.comp-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.comp-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.comp-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.comp-icon.orange {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.comp-icon.rose {
    background: rgba(251, 113, 133, 0.15);
    color: #fb7185;
    border: 1px solid rgba(251, 113, 133, 0.25);
}

.comp-vs {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.comp-header-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.comp-header-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Category Badges --- */
.comp-category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-category-badge.cms {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.comp-category-badge.framework {
    background: rgba(139, 92, 246, 0.1);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.comp-category-badge.eticaret {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.comp-category-badge.hosting {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.comp-category-badge.backend {
    background: rgba(251, 113, 133, 0.1);
    color: #fb7185;
    border: 1px solid rgba(251, 113, 133, 0.2);
}

.comp-category-badge.tasarim {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* --- Toggle Button --- */
.comp-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.comp-toggle:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.comp-toggle svg {
    transition: transform 0.3s ease;
}

.comp-toggle.open svg {
    transform: rotate(180deg);
}

/* --- Card Body (Accordion) --- */
.comp-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-body.open {
    max-height: 3000px;
}

.comp-body-inner {
    padding: 0 2.5rem 2.5rem;
}

/* --- Skor Karşılaştırma --- */
.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-grid.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.score-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.score-column-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-item {
    margin-bottom: 1rem;
}

.score-item-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.score-item-label span:first-child {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.score-item-label span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
}

.score-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-bar-fill.blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.score-bar-fill.purple {
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
}

.score-bar-fill.green {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.score-bar-fill.orange {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.score-bar-fill.rose {
    background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.score-bar-fill.sky {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

/* --- Özellik Tablosu --- */
.feature-table-wrapper {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
}

.feature-table thead th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-table thead th:first-child {
    width: 40%;
}

.feature-table tbody td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    vertical-align: middle;
}

.feature-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-table tbody tr {
    transition: background 0.2s ease;
}

.feature-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feature-table .check {
    color: #4ade80;
    font-weight: 700;
}

.feature-table .cross {
    color: #f87171;
    font-weight: 700;
}

.feature-table .partial {
    color: #fbbf24;
    font-weight: 700;
}

/* --- Sonuç (Verdict) Kutusu --- */
.verdict-box {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.verdict-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.verdict-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.verdict-grid.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.verdict-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.verdict-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.verdict-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verdict-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.verdict-item .verdict-use-case {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #60a5fa;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Divider --- */
.comp-divider {
    height: 1px;
    background: var(--border-light);
    margin: 2rem 0;
}

/* --- Section Title Inside Card --- */
.comp-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comp-section-title i {
    width: 18px;
    height: 18px;
    color: #60a5fa;
}

/* --- CTA Section --- */
.cta-section {
    padding: 4rem 0;
    text-align: center;
}

.cta-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Responsive - Karşılaştırma
   ========================================================================== */
@media (max-width: 992px) {
    .score-grid,
    .score-grid.triple {
        grid-template-columns: 1fr;
    }

    .verdict-grid,
    .verdict-grid.triple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero {
        padding: 7rem 0 2rem;
    }

    .comp-header {
        padding: 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .comp-header-left {
        flex-wrap: wrap;
    }

    .comp-body-inner {
        padding: 0 1.5rem 1.5rem;
    }

    .comp-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .comp-header-info h3 {
        font-size: 1.1rem;
    }

    .feature-table-wrapper {
        overflow-x: auto;
    }

    .feature-table {
        min-width: 500px;
    }

    .stats-bar {
        gap: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
