/* ============================================
   Overview Advanced - Synergy List Style
   ============================================ */

.synergy-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000000;
    overflow: hidden;
}

.synergy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.synergy-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #F39C12;
}

.synergy-title i {
    font-size: 16px;
}

.synergy-subtitle {
    font-size: 11px;
    color: #666;
    font-weight: 400;
    margin-left: 8px;
}

.synergy-controls {
    display: flex;
    gap: 6px;
}

.synergy-btn {
    padding: 6px 12px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.synergy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.synergy-btn.active {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.4);
    color: #F39C12;
}

.synergy-btn.icon-btn {
    padding: 6px 10px;
}

/* Table */
.synergy-table-wrapper {
    flex: 1;
    overflow: auto;
}

.synergy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

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

.synergy-table th {
    background: #000000;
    color: #F39C12;
    font-weight: 500;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    font-size: 11px;
}

.synergy-table th.th-group {
    text-align: center;
}

.synergy-table th:first-child {
    text-align: left;
    padding-left: 16px;
}

.synergy-row {
    cursor: pointer;
    transition: background 0.2s;
}

.synergy-row:hover {
    background: rgba(243, 156, 18, 0.05);
}

.synergy-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.synergy-row:nth-child(even):hover {
    background: rgba(243, 156, 18, 0.08);
}

.synergy-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #C0C4CF;
}

/* Pair Cell */
.pair-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px !important;
}

.pair-flag {
    font-size: 18px;
    line-height: 1;
}

.pair-info {
    display: flex;
    flex-direction: column;
}

.pair-symbol {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

.desc-cell {
    color: #666;
    font-size: 11px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Price Cell */
.price-cell {
    min-width: 160px;
}

.price-sparkline-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sparkline-container {
    width: 80px;
    height: 30px;
}

.sparkline-svg {
    width: 100%;
    height: 100%;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.price-change {
    font-size: 11px;
    font-weight: 500;
}

.price-change.positive {
    color: #00C292;
}

.price-change.negative {
    color: #E74C3C;
}

/* Seasonality Cell */
.seasonality-cell {
    text-align: center;
}

.seasonality-badge {
    font-size: 11px;
    font-weight: 500;
}

/* Pattern Cell */
.pattern-cell {
    text-align: center;
}

.pattern-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

/* D3M Donut */
.d3m-cell {
    text-align: center;
}

.d3m-donut {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.donut-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.d3m-value {
    font-size: 10px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    z-index: 1;
}

/* Performance Cells */
.perf-cell {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
}

.perf-cell.positive {
    color: #00C292;
}

.perf-cell.negative {
    color: #E74C3C;
}

/* Responsive */
@media (max-width: 1400px) {
    .synergy-table {
        font-size: 11px;
    }
    
    .sparkline-container {
        width: 60px;
        height: 24px;
    }
    
    .desc-cell {
        display: none;
    }
}

@media (max-width: 1000px) {
    .d3m-cell,
    .pattern-cell {
        display: none;
    }
}
