/* Comparison Feature Styles */

/* Comparison Section */
.comparison-section {
    background: #f8f8f8;
    border-top: 3px solid #000;
}

/* Selected state for compare buttons */
.btn-compare.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-compare.selected:hover {
    background: #333;
    border-color: #333;
}

/* Selected Packages Bar */
#selectedPackagesBar {
    margin-bottom: 2rem;
}

.selected-packages-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.package-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.package-chip:hover {
    border-color: #999;
    background: #fff;
}

.chip-icon {
    font-size: 1.2rem;
}

.chip-name {
    color: #333;
}

.chip-remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.chip-remove:hover {
    color: #000;
}

.clear-all-btn {
    margin-left: auto;
    background: transparent;
    border: 2px solid #ccc;
    color: #666;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.clear-all-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Comparison Table */
.comparison-table-scroll {
    overflow-x: auto;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

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

.comparison-table thead {
    background: #000;
    color: #fff;
}

.comparison-table th {
    padding: 2rem 1.5rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.comparison-table th.feature-col {
    width: 30%;
    min-width: 200px;
    background: #000;
    color: #fff;
    position: sticky;
    left: 0;
    z-index: 10;
}

.comparison-table th.package-col {
    text-align: center;
    min-width: 250px;
}

.package-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.package-icon-large {
    font-size: 2.5rem;
}

.package-name {
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.package-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

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

.comparison-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

.feature-col,
.feature-name {
    font-weight: 600;
    color: #333;
    background: #f8f8f8;
    position: sticky;
    left: 0;
    z-index: 5;
}

.feature-value {
    text-align: center;
    color: #555;
}

.feature-missing {
    text-align: center;
    color: #ccc;
    font-size: 1.5rem;
}

.category-row td {
    background: #000;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
}

.stats-row {
    background: #fff;
    font-weight: 600;
}

.stats-row:hover {
    background: #fafafa;
}

.stats-label {
    color: #000;
    font-size: 1.1rem;
}

.stats-value {
    text-align: center;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
}

.action-row td {
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fafafa;
}

.btn-select-package {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-select-package:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.no-selection {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .selected-packages-chips {
        flex-direction: column;
        align-items: stretch;
    }

    .package-chip {
        justify-content: space-between;
    }

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

    .comparison-table th.feature-col,
    .feature-name {
        min-width: 150px;
    }

    .comparison-table th.package-col {
        min-width: 200px;
    }

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

    .package-price {
        font-size: 1.4rem;
    }

    .comparison-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading state (optional) */
.comparison-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.comparison-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
