/* Yeastar vs 3CX Comparison Page Custom Styles */

/* Comparison Table Styles */
.comparison-table-wrapper {
    margin: 40px 0;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0f3460;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.3s ease;
}

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

.comparison-table td {
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.6;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #1a1a2e;
    background-color: #f5f5f5;
    width: 25%;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
    width: 25%;
    text-align: center;
}

.comparison-table td:nth-child(4) {
    width: 25%;
    background-color: #f0f8ff;
    border-left: 3px solid #0f3460;
    font-size: 13px;
    color: #333;
}

/* Feature Highlight Badge */
.feature-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-highlight.yeastar {
    background: linear-gradient(135deg, #00a86b 0%, #008c5e 100%);
}

.feature-highlight.advantage {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

/* Comparison Section Title */
.comparison-section-title {
    margin-top: 50px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0f3460;
}

.comparison-section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.comparison-section-title p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Comparison Grid Layout */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.comparison-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #0f3460;
}

.comparison-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.comparison-card.yeastar-advantage {
    border-top-color: #00a86b;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.comparison-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-card h3::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #00a86b;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    font-size: 14px;
}

.comparison-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Feature List in Cards */
.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.comparison-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.comparison-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00a86b;
    font-weight: bold;
}

/* Yeastar Advantage Badge */
.yeastar-advantage-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00a86b 0%, #008c5e 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Comparison Summary Box */
.comparison-summary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin: 50px 0;
    text-align: center;
}

.comparison-summary h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.comparison-summary p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }

    .comparison-table td:first-child {
        width: 35%;
    }

    .comparison-table td:nth-child(2),
    .comparison-table td:nth-child(3),
    .comparison-table td:nth-child(4) {
        width: 21.67%;
        font-size: 12px;
    }

    .comparison-section-title h2 {
        font-size: 22px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-summary {
        padding: 30px 20px;
    }

    .comparison-summary h2 {
        font-size: 22px;
    }

    .comparison-summary p {
        font-size: 14px;
    }
}

/* Animation for table rows */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-table tbody tr {
    animation: fadeInUp 0.6s ease-out forwards;
}

.comparison-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.comparison-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.comparison-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.comparison-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.comparison-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.comparison-table tbody tr:nth-child(n+6) { animation-delay: 0.6s; }

/* Print Styles */
@media print {
    .comparison-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .comparison-table th {
        background: #1a1a2e;
        color: #fff;
    }

    .comparison-card {
        page-break-inside: avoid;
    }
}
