/* Enhanced Comparison Table Styles - High Converting & Mobile-First */

/* Comparison Section */
#enhancedComparisonWrapper {
    margin-top: 2rem;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    border-radius: 10px;
}

.comparison-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 300;
}

/* Comparison Table Container */
.comparison-table-container {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.enhanced-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

/* Table Header */
.enhanced-comparison-table thead {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white;
}

.enhanced-comparison-table th {
    padding: 0;
    border: none;
    text-align: center;
    vertical-align: top;
}

.feature-column {
    width: 35%;
    min-width: 250px;
    text-align: left !important;
    background: #000;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.5rem !important;
    position: sticky;
    left: 0;
    z-index: 20;
}

.package-column {
    min-width: 200px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.package-header-cell {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pkg-icon {
    font-size: 3rem;
    line-height: 1;
}

.pkg-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.pkg-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
    text-align: center;
}

.pkg-price {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.remove-package-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.remove-package-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

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

.enhanced-comparison-table tbody tr:hover:not(.category-header-row):not(.metrics-row) {
    background: #f8f8f8;
}

/* Metrics Row */
.metrics-row {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    font-weight: 600;
}

.metrics-row td {
    padding: 1.5rem 1rem;
}

.category-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    background: #f8f8f8;
    position: sticky;
    left: 0;
    z-index: 10;
}

.metrics-cell {
    text-align: center;
}

.metric-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.metric-label {
    font-weight: 500;
    color: #666;
}

.metric-value {
    font-weight: 700;
    color: #000;
}

/* Category Header Row */
.category-header-row {
    background: #f8f8f8;
    border-top: 2px solid #ccc;
}

.category-header {
    padding: 0;
}

.category-toggle {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-align: left;
    transition: all 0.3s ease;
}

.category-toggle:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #ddd 100%);
}

.category-icon {
    font-size: 0.9rem;
    color: #666;
    width: 20px;
    display: inline-block;
}

.category-title {
    flex: 1;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.feature-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
}

/* Feature Rows */
.feature-row td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.feature-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #fafafa;
    position: sticky;
    left: 0;
    z-index: 5;
    border-right: 1px solid #e0e0e0;
}

.feature-cell {
    text-align: center;
}

/* Checkmark Icon */
.feature-check {
    display: flex;
    justify-content: center;
    align-items: center;
}

.check-icon {
    width: 28px;
    height: 28px;
    stroke: #4CAF50;
    stroke-width: 3;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

/* X Icon */
.feature-x {
    display: flex;
    justify-content: center;
    align-items: center;
}

.x-icon {
    width: 24px;
    height: 24px;
    stroke: #ccc;
    stroke-width: 2;
}

/* Text Value */
.feature-text {
    font-weight: 600;
    color: #2196F3;
    font-size: 0.9rem;
}

/* Action Row */
.action-row {
    background: #f8f8f8;
    border-top: 2px solid #000;
}

.action-row td {
    padding: 2rem 1rem;
    text-align: center;
}

.select-package-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.select-package-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .comparison-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .enhanced-comparison-table {
        min-width: 900px;
    }

    .comparison-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .comparison-header h3 {
        font-size: 1.5rem;
    }

    .clear-all-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .feature-column {
        min-width: 200px;
        font-size: 0.95rem;
        padding: 1rem !important;
    }

    .package-column {
        min-width: 160px;
    }

    .package-header-cell {
        padding: 1.5rem 0.75rem;
    }

    .pkg-icon {
        font-size: 2.5rem;
    }

    .pkg-name {
        font-size: 1.1rem;
    }

    .pkg-price {
        font-size: 1.5rem;
    }

    .feature-row td {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .check-icon {
        width: 24px;
        height: 24px;
    }

    .x-icon {
        width: 20px;
        height: 20px;
    }

    .category-toggle {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .select-package-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .comparison-header h3 {
        font-size: 1.2rem;
    }

    .feature-column {
        min-width: 150px;
        font-size: 0.85rem;
    }

    .package-column {
        min-width: 140px;
    }

    .pkg-name {
        font-size: 0.95rem;
    }

    .pkg-subtitle {
        font-size: 0.75rem;
    }

    .metric-item {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.85rem;
    }
}

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

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

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

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

/* Print Styles */
@media print {
    .remove-package-btn,
    .clear-all-btn,
    .category-icon {
        display: none;
    }

    .enhanced-comparison-table {
        page-break-inside: avoid;
    }
}
