/* ======================== Comparison Component Styles ======================== */

.comparison-section {
    padding-bottom: 5rem;
}

.comparison-container .title-navigator {
    margin-bottom: 3rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.comparison-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

[data-theme="dark"] .comparison-card {
    background: var(--card-bg);
}

.comparison-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.25rem;
    background: #dde6f2;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .comparison-card-header {
    background: var(--secondary-color);
}

.comparison-tab-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-blue);
    opacity: 0.8;
}

.comparison-card-body {
    padding: 1.5rem;
}

.comparison-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Colors - Border Gradients are DEFAULT (Idle) */
.comparison-card--ours {
    border-image: linear-gradient(to bottom, #10b981, transparent) 1;
}

.comparison-card--legacy {
    border-image: linear-gradient(to bottom, #f59e0b, transparent) 1;
}

.comparison-card--ours .comparison-title {
    color: #10b981;
}

.comparison-card--legacy .comparison-title {
    color: #f59e0b;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--font-p-body);
    line-height: 1.5;
    color: var(--text-color);
}

.comparison-list li svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.icon-check {
    color: #10b981;
    width: 1.5rem;
    height: 1.5rem;
}

.icon-cross {
    color: #f59e0b;
    width: 1.5rem;
    height: 1.5rem;
}

/* Corner Brackets System - Visible on Hover Only */
.comparison-card .cf-tl,
.comparison-card .cf-tr,
.comparison-card .cf-bl,
.comparison-card .cf-br {
    position: absolute;
    width: 14px;
    height: 14px;
    border-style: solid;
    opacity: 0;
    /* Hidden by default */
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    border-color: var(--accent-color2) !important;
    /* Use same blue as other cards */
}

/* Specific theme color for brackets can be applied here if desired, 
   but user said "same color" referring to other cards which use blue */

.comparison-card .cf-tl {
    top: -4px;
    left: -4px;
    border-width: 2px 0 0 2px;
}

.comparison-card .cf-tr {
    top: -4px;
    right: -4px;
    border-width: 2px 2px 0 0;
}

.comparison-card .cf-bl {
    bottom: -4px;
    left: -4px;
    border-width: 0 0 2px 2px;
}

.comparison-card .cf-br {
    bottom: -4px;
    right: -4px;
    border-width: 0 2px 2px 0;
}

/* Expansion on Hover */
.comparison-card:hover .cf-tl,
.comparison-card:hover .cf-tr,
.comparison-card:hover .cf-bl,
.comparison-card:hover .cf-br {
    opacity: 1;
    width: 22px;
    height: 22px;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

/* CTA at bottom */
.comparison-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}