/**
 * Platform Comparison Styles
 * VR Training Platform Tiers
 * Built for Albertans, Partially from Bed
 */

/* Platform Comparison Section */
.platform-comparison {
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-table thead {
    background: linear-gradient(135deg, #1278AC, #DD6B20);
    color: white;
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.comparison-table th:first-child {
    min-width: 150px;
}

.tier-desktop {
    background: rgba(59, 130, 246, 0.2);
}

.tier-mobile {
    background: rgba(16, 185, 129, 0.2);
}

.tier-headset {
    background: rgba(139, 92, 246, 0.2);
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(18, 120, 172, 0.05);
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.feature-name {
    font-weight: 600;
    color: var(--text-dark);
    background: #f9fafb;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: rgba(18, 120, 172, 0.05);
}

/* Platform Selector */
.platform-selector {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
}

.selector-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.selector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.selector-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
}

.selector-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.selector-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.selector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.selector-card h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight-desktop {
    color: #3B82F6;
    font-weight: 700;
}

.highlight-mobile {
    color: #10B981;
    font-weight: 700;
}

.highlight-headset {
    color: #8B5CF6;
    font-weight: 700;
}

.selector-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.selector-card li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.selector-example {
    padding: 15px;
    background: rgba(18, 120, 172, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.selector-example strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Hardware Requirements */
.hardware-requirements {
    margin: 60px 0;
    padding: 40px;
    background: var(--dark-bg);
    color: white;
    border-radius: 12px;
}

.requirements-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.requirement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.requirement-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.requirement-card h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: white;
}

.specs-list {
    list-style: none;
    padding: 0;
}

.specs-list li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: var(--accent-color);
    display: inline-block;
    min-width: 80px;
}

/* ROI Calculator */
.roi-section {
    margin: 60px 0;
    padding: 50px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
}

.roi-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.roi-calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.roi-scenario {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.roi-scenario.featured {
    border: 2px solid #10B981;
    position: relative;
}

.roi-scenario.featured::before {
    content: 'VR SOLUTION';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.roi-scenario h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.cost-list,
.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.cost-list li,
.benefit-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cost-list li:last-child,
.benefit-list li:last-child {
    border-bottom: none;
}

.cost {
    font-weight: 600;
    color: #DC2626;
}

.benefit-list li {
    color: #10B981;
    font-weight: 500;
}

.total-cost {
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.total-cost.success {
    background: #dcfce7;
    border-color: #10B981;
}

.total-cost.highlight {
    background: linear-gradient(135deg, rgba(18, 120, 172, 0.1), rgba(221, 107, 32, 0.1));
    border-color: var(--primary-color);
}

.total-cost strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.cost-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.total-cost.success .cost-value {
    color: #10B981;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }

    .selector-cards {
        grid-template-columns: 1fr;
    }

    .selector-card.featured {
        transform: scale(1);
    }

    .requirements-grid,
    .roi-calculator-grid {
        grid-template-columns: 1fr;
    }

    .platform-comparison,
    .platform-selector,
    .hardware-requirements,
    .roi-section {
        padding: 20px;
        margin: 40px 0;
    }
}

/* Dark Mode Support */
.dark-mode .platform-comparison {
    background: var(--dark-bg-secondary);
    color: var(--dark-text);
}

.dark-mode .comparison-table {
    background: var(--dark-bg-secondary);
}

.dark-mode .comparison-table thead {
    background: linear-gradient(135deg, #1e3a8a, #7c2d12);
}

.dark-mode .comparison-table td {
    border-bottom-color: var(--dark-border);
    color: var(--dark-text);
}

.dark-mode .feature-name {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.dark-mode .selector-card,
.dark-mode .roi-scenario {
    background: var(--dark-bg-secondary);
    color: var(--dark-text);
}

.dark-mode .hardware-requirements {
    background: var(--dark-bg);
}