
/* Comparison Section */
.comparison {
    max-width: 80rem;
    margin: 0 auto 4rem auto;
    padding: 4rem 1rem;
}

.comparison-content {
    text-align: center;
}

.comparison-header {
    margin-bottom: 3rem;
}

.comparison-title {
    font-size: 2rem;
    font-weight: 600;
    color: #eee;
    margin-bottom: 1rem;
    font-family: 'Merriweather Variable';
}

.comparison-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.comparison-table-wrapper {
    padding: 10px;
    background-color: #333333dd;
    border-radius: 17px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}
.comparison-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #444;
}

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

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header-row {
    background-color: #333;
    font-weight: 600;
}

.comparison-cell {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    border-right: 1px solid #444;
    border-bottom: 1px solid #444;
    min-height: 4rem;
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-row:last-child .comparison-cell {
    border-bottom: none;
}

.comparison-row:last-child .comparison-cell.highlight-cell {
    border-bottom: none;
    border-right: none;
}

.comparison-cell:not(.highlight-cell) {
    border-bottom: 1px solid #444;
    background-color: #2d2d2d;
}

.comparison-feature-cell {
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
    color: #fff;
    padding-left: 1.5rem;
}

.comparison-app-cell {
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
    color: #fff;
    justify-content: center;
    text-align: center;
}

.highlight-cell {
    /* background-color: rgba(218, 97, 76, 0.05); */
    border-left: 3px solid #DA614C;
    font-weight: 600;
}

.app-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.app-icon-letter {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    background-color: #222;
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.status-good {
    color: #10b981;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.status-bad {
    color: #ef4444;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.status-neutral {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.status-text {
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.4;
}

.status-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.status-bad+.status-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.comparison-cell.highlight-cell {
    background-color: #222;
    /* border-right: 1px solid #6b7280; */
    border-bottom: 1px solid #333;
}

.highlight-cell .status-text {
    color: #ffffff;
    font-weight: 500;
}

.highlight-cell span {
    color: #ffffff;
}

.comparison-cta {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    border-radius: 0.75rem;
    border: 1px solid #444;
}

.comparison-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {


    .comparison-title {
        font-size: 2rem;
    }

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

    .comparison-cell {
        border-right: none;
        border-bottom: 1px solid #d1d5db;
        justify-content: flex-start;
        text-align: left;
    }

    .comparison-cell:last-child {
        border-bottom: none;
    }

    .comparison-feature-cell {
        background-color: #f9fafb;
        font-weight: 600;
        color: #fff;
    }

    .comparison-app-cell {
        flex-direction: row;
        gap: 0.75rem;
    }

    .highlight-cell {
        border-left: none;
        border-top: 3px solid #DA614C;
    }

}

@media (min-width: 640px) {

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

    .comparison-cell {
        border-right: 1px solid #444;
        border-bottom: none;
        justify-content: flex-start;
        text-align: left;
    }

    .comparison-feature-cell {
        justify-content: flex-start;
        text-align: left;
        padding-left: 1rem;
    }

    .comparison-app-cell {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
        text-align: center;
    }

    .highlight-cell {
        border-left: 3px solid #DA614C;
        border-top: none;
    }
}

@media (max-width: 768px) {

    /* Hide comparison header row on mobile */
    .comparison-row.comparison-header-row {
        display: none !important;
    }

    /* Remove highlight styling on mobile */
    .comparison-cell.highlight-cell {
        background-color: #333;
        border-right: none;
        border-bottom: 1px solid #eee;
        border-top: none;
        color: #fff;
    }

    .highlight-cell .status-text {
        color: #eee;
        font-weight: normal;
    }

    .highlight-cell span {
        color: #222222;
    }

    .status-text {
        text-align: left;
    }

    /* Restructure comparison for mobile */
    .comparison-row {
        display: block;
        border: 1px solid #444;
    }

    .comparison-cell {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid #444;
        min-height: auto;
        text-align: left;
    }

    .comparison-cell .status-text {
        flex: 1;
        text-align: left;
        margin-left: 0.5rem;
    }

    .comparison-cell:last-child {
        border-bottom: none;
    }

    /* Ensure last row has borders on mobile */
    .comparison-row:last-child .comparison-cell {
        border-bottom: 1px solid #444;
    }

    .comparison-row:last-child .comparison-cell:last-child {
        border-bottom: none;
    }

    .comparison-feature-cell {
        background-color: #222;
        font-weight: 600;
        font-size: 1.1rem;
        padding: 1.5rem 1rem;
        justify-content: center;
        border-bottom: 2px solid #444;
    }

    /* Add app icons/letters on mobile */
    .comparison-cell:not(.comparison-feature-cell)::after {
        content: '';
        width: 20px;
        height: 20px;
        border-radius: 4px;
        margin-left: 1rem;
        flex-shrink: 0;
    }

    /* Obsidian rows */
    .comparison-cell:nth-child(2)::after {
        content: 'O';
        background-color: #222;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
    }

    /* Notion rows */
    .comparison-cell:nth-child(3)::after {
        content: 'N';
        background-color: #222;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
    }

    /* Note Cargo rows - use actual logo */
    .comparison-cell.highlight-cell::after {
        content: '';
        background-image: url('../images/logo.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: transparent;
        width: 20px;
        height: 20px;
    }
}