/* ===========================================
   Comparison Section Styles
   Fund Reporting Page - Octigen vs Other Tools
   =========================================== */

/* ===========================================
   Comparison Ticker (Single Row)
   =========================================== */

.comparison-ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0rem 0 2rem 0;
}

.comparison-ticker-row {
    width: 100%;
    overflow: hidden;
    padding: 0rem 0 1rem 0;
}

.comparison-ticker-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding-bottom: 0.5rem;
    animation: ticker-scroll 120s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover for readability */
@media (hover: hover) {
    .comparison-ticker-track:hover {
        animation-play-state: paused;
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .ticker-item:hover {
        transform: scale(1.02);
    }
}

.ticker-octigen-item {
    background: linear-gradient(135deg, rgba(30, 79, 226, 0.15), rgba(30, 79, 226, 0.05));
    border: 1px solid rgba(30, 79, 226, 0.3);
}

@media (hover: hover) {
    .ticker-octigen-item:hover {
        box-shadow: 0 8px 32px rgba(30, 79, 226, 0.2);
    }
}

.ticker-other-item {
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border-secondary);
}

@media (hover: hover) {
    .ticker-other-item:hover {
        box-shadow: var(--theme-shadow-md);
    }
}

.ticker-icon {
    font-size: 0.8rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.ticker-octigen-item .ticker-icon {
    background: linear-gradient(135deg, #1e4fe2, #1a45c7);
    color: white;
}

.ticker-other-item .ticker-icon {
    background: var(--theme-text-tertiary);
    color: var(--theme-bg-primary);
    opacity: 0.6;
}

.ticker-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.ticker-octigen-item .ticker-label {
    background: linear-gradient(135deg, #1e4fe2, #1a45c7);
    color: white;
}

.ticker-other-item .ticker-label {
    background: var(--theme-text-tertiary);
    color: var(--theme-bg-primary);
    opacity: 0.7;
}

.ticker-text {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.ticker-octigen-item .ticker-text {
    color: var(--theme-text-primary);
}

.ticker-other-item .ticker-text {
    color: var(--theme-text-secondary);
}

/* Comparison section gradient fade edges */
.comparison-section {
    position: relative;
}

.comparison-section::before,
.comparison-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 20;
    pointer-events: none;
}

.comparison-section::before {
    left: 0;
    background: linear-gradient(to right, var(--theme-bg-primary), transparent);
}

.comparison-section::after {
    right: 0;
    background: linear-gradient(to left, var(--theme-bg-primary), transparent);
}

/* Hide side gradients in dark mode - they look heavy on dark backgrounds */
[data-theme="dark"] .comparison-section::before,
[data-theme="dark"] .comparison-section::after {
    opacity: 0;
}

/* ===========================================
   Comparison Table
   =========================================== */

.comparison-table-container {
    padding: 0 0 1rem 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--theme-glass-bg);
    border: 1px solid var(--theme-glass-border);
    box-shadow: var(--theme-shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 500;
    background: var(--theme-bg-elevated);
    border-bottom: 1px solid var(--theme-border-secondary);
}

.comparison-th-feature {
    width: 18%;
    color: var(--theme-text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-th-octigen,
.comparison-th-others {
    width: 41%;
}

.table-header-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.table-header-octigen {
    background: linear-gradient(135deg, #1e4fe2, #1a45c7);
    color: white;
}

.table-header-others {
    background: var(--theme-text-tertiary);
    color: var(--theme-bg-primary);
    opacity: 0.8;
}

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--theme-border-secondary);
    vertical-align: top;
    line-height: 1.5;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

@media (hover: hover) {
    .comparison-table tbody tr:hover {
        background: var(--theme-glass-bg-hover);
    }
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-cell {
    font-weight: 500;
    color: var(--theme-text-primary);
    background: var(--theme-bg-elevated);
    font-size: 0.9rem;
}

.octigen-cell {
    color: var(--theme-text-primary);
}

.others-cell {
    color: var(--theme-text-secondary);
}

.cell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.6rem;
    flex-shrink: 0;
    vertical-align: middle;
}

.cell-icon-check {
    background: linear-gradient(135deg, #1e4fe2, #1a45c7);
    color: white;
}

.cell-icon-cross {
    background: var(--theme-text-tertiary);
    color: var(--theme-bg-primary);
    opacity: 0.5;
}

/* ===========================================
   Mobile Responsive
   =========================================== */

@media (max-width: 768px) {
    /* Ticker mobile styles */
    .ticker-item {
        padding: 0.4rem 0.75rem;
        gap: 0.4rem;
    }
    
    .ticker-text {
        font-size: 0.7rem;
    }
    
    .ticker-label {
        font-size: 0.5rem;
        padding: 0.15rem 0.4rem;
    }
    
    .ticker-icon {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
    }
    
    .comparison-ticker-track {
        animation-duration: 90s;
    }
    
    .comparison-section::before,
    .comparison-section::after {
        width: 40px;
    }
    
    /* Table mobile styles */
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 1rem;
    }
    
    .comparison-th-feature {
        display: none;
    }
    
    .feature-cell {
        display: none;
    }
    
    .comparison-th-octigen,
    .comparison-th-others {
        width: 50%;
    }
    
    .cell-icon {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        margin-right: 0.5rem;
    }
}
