/* ============================================
   Package Comparison Table
   hosting.com.tr Style
============================================ */

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: #ffffff;
}

.comparison-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.comparison-section .section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.comparison-section .section-header p {
    font-size: 17px;
    color: #64748b;
    max-width: 550px;
    margin: 0 auto;
}

/* Comparison Table Container */
.comparison-table-container {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    margin-top: 20px; /* Space for badge */
    padding-top: 15px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: #ffffff;
}

/* Table Header */
.comparison-table thead th {
    padding: 24px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
    vertical-align: bottom;
}

.comparison-table thead th:first-child {
    text-align: left;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
}

/* Featured Column Header */
.comparison-table thead th.featured {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    position: relative;
    overflow: visible;
}

.comparison-table thead th.featured::before {
    content: 'POPÜLER';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Package Name in Header */
.comparison-table thead th .package-name-header {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

/* Table Body */
.comparison-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

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

.comparison-table tbody td {
    padding: 18px 20px;
    text-align: center;
    font-size: 14px;
    color: #475569;
    vertical-align: middle;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1e293b;
}

/* Featured Column */
.comparison-table tbody td.featured {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.5) 0%, rgba(254, 243, 199, 0.3) 100%);
}

/* Price Row */
.comparison-table tbody tr.price-row td {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 15px;
}

.comparison-table tbody tr.price-row td:first-child {
    color: #1e293b;
}

.comparison-table tbody tr.price-row .price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.comparison-table tbody tr.price-row .price-amount {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
}

.comparison-table tbody tr.price-row .price-period {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

/* Unlimited Text */
.value-unlimited {
    color: #f59e0b;
    font-weight: 600;
}

/* Check Icon */
.value-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.value-check svg {
    width: 20px;
    height: 20px;
}

/* X / Dash Icon */
.value-none {
    color: #cbd5e1;
    font-size: 18px;
}

/* Footer Row with Buttons */
.comparison-table tfoot td {
    padding: 24px 20px;
    text-align: center;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

.comparison-table tfoot td:first-child {
    background: #ffffff;
}

.comparison-table tfoot td.featured {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

/* Buy Button */
.btn-compare-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-compare-buy:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

/* Featured Button */
.btn-compare-buy.featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: transparent;
    color: #1a1a2e;
}

.btn-compare-buy.featured:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 992px) {
    .comparison-section .section-header h2 {
        font-size: 28px;
    }
    
    .comparison-table thead th {
        padding: 18px 14px;
        font-size: 14px;
    }
    
    .comparison-table tbody td {
        padding: 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .comparison-section {
        padding: 60px 0;
    }
    
    .comparison-table-container {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .comparison-table {
        min-width: 700px;
    }
    
    .btn-compare-buy {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Scrollbar Styling */
.comparison-table-container::-webkit-scrollbar {
    height: 8px;
}

.comparison-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.comparison-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.comparison-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

