/* Advanced Whale Tracker CSS - 색상 팔레트 기반 업데이트 */

/* 🔥 GIF 백그라운드 이미지 변수 정의 */
:root {
    /* 롱 거래용 GIF 목록 */
    --long-gif-1: url('https://media4.giphy.com/media/v1.Y2lkPWFlODQxYTJlMm91YmxnNDRtZTkzN3o2cXFwY25mZGpiN2wxYWl5eXIxdHlqZTRiMSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/f3k2U9HDaEvVjxexSn/giphy.gif');
    --long-gif-2: url('https://media1.giphy.com/media/v1.Y2lkPWFlODQxYTJlcHU4aGg4NmNzaXl1aWw4eW4wc21yYzFlN3NlaDZoNG4yNzB2MW14NCZlcD12MV9naWZzX3NlYXJjaCZjdD1n/z52lNhLdSBnkZvRugs/giphy.gif');
    
    /* 숏 거래용 GIF 목록 */
    --short-gif-1: url('https://media4.giphy.com/media/v1.Y2lkPWFlODQxYTJlYW02dzNiOGt6MjNianlsOG1yaW4yanhndXo2eW8ybmt6dzVjaXlvZiZlcD12MV9naWZzX3NlYXJjaCZjdD1n/3o7aTAU4jIYG2rZkI0/giphy.gif');
    --short-gif-2: url('https://media1.giphy.com/media/v1.Y2lkPWFlODQxYTJlYW02dzNiOGt6MjNianlsOG1yaW4yanhndXo2eW8ybmt6dzVjaXlvZiZlcD12MV9naWZzX3NlYXJjaCZjdD1n/2NrnzD6zS1Upq/giphy.gif');
    --short-gif-3: url('https://media3.giphy.com/media/v1.Y2lkPWFlODQxYTJlYW02dzNiOGt6MjNianlsOG1yaW4yanhndXo2eW8ybmt6dzVjaXlvZiZlcD12MV9naWZzX3NlYXJjaCZjdD1n/82Ph8dHcNLrKo/giphy.gif');
}

/* 🔥 고래 탐지 섹션 컨테이너 */
.whale-tracker-section {
    width: 350px;
    height: 100%;
    flex-shrink: 0;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    order: 2;
    overflow: hidden; /* 🔥 가로 스크롤 방지 */
}

/* 🐋 고래 추적기 스타일 */
.whale-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 🔥 가로 스크롤 방지 */
}

.whale-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 12px 16px;
}

.whale-container .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.whale-container .section-title i {
    color: var(--primary-color);
    font-size: 18px;
}

/* 🔥 커뮤니티 페이지 고래 섹션 */
.whale-tracking-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 50%;
    min-height: 0;
    background-color: var(--bg-primary);
    overflow: hidden; /* 🔥 가로 스크롤 방지 */
}

.whale-section-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.whale-section-header h2::before {
    content: "";
    font-size: 18px;
}

.whale-status-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.whale-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f59e0b;
    
}

.whale-status-indicator.connected {
    background-color: rgb(100, 157, 102);
}

.whale-status-indicator.disconnected {
    background-color: rgb(239, 67, 82);
}

.whale-status-indicator.error {
    background-color: rgb(239, 67, 82);
}

.whale-status-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.whale-trades-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 🔥 고래 컨트롤 */
.whale-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whale-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.whale-settings-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.whale-settings-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* Main Container */
.whale-trades-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #ffffff;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden; /* 🔥 가로 스크롤 방지 */
    max-height: calc(100vh - 200px);
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
    width: 100%;
}

.whale-trades-container::-webkit-scrollbar {
    width: 8px;
}

.whale-trades-container::-webkit-scrollbar-track {
    background: #ffffff;
}

.whale-trades-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Trade List */
.whale-trades-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow: hidden; /* 🔥 리스트에서도 오버플로우 방지 */
}

.whale-trades-list {
    list-style: none;
    padding: 1px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden; /* 🔥 가로 스크롤 방지 */
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
}

.whale-trades-list::-webkit-scrollbar {
    width: 6px;
}

.whale-trades-list::-webkit-scrollbar-track {
    background: transparent;
}

.whale-trades-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.whale-trades-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.4);
}

/* 🔥 업데이트된 고래 거래 픽셀 - 새로운 색상 팔레트 적용 */
.whale-trade-pixel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    margin: 1px 0;
    background: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    color: #333;
    transition: all 0.3s ease;
    /* 🔥 기본 애니메이션 제거 */
    overflow: hidden;
    position: relative;
    min-height: 20px;
}

/* 🔥 새로운 거래에만 간단한 반짝임 효과 */
.whale-trade-pixel.new-trade-flash {
    animation: simpleFlash 0.8s ease-out;
}

/* 🎨 새로운 색상 팔레트 기반 레벨별 스타일 */

/* Level 1: $250k+ - theme-buy-100 / theme-sell-100 */
.whale-trade-pixel.level-1 {
    background: linear-gradient(90deg, rgba(114, 180, 116, 0.9), rgba(114, 180, 116, 0.7));
    color: #ffffff;
    
}

.whale-trade-pixel.level-1.sell {
    background: linear-gradient(90deg, rgba(249, 95, 105, 0.9), rgba(249, 95, 105, 0.7));
    color: #ffffff;
    
}

/* Level 2: $500k+ - theme-buy-200 / theme-sell-200 */
.whale-trade-pixel.level-2 {
    background: linear-gradient(90deg, rgba(168, 238, 168, 1), rgba(168, 238, 168, 0.8));
    color: rgb(100, 157, 102);
    font-weight: 700;
    
}

.whale-trade-pixel.level-2.sell {
    background: linear-gradient(90deg, rgba(266, 167, 172, 1), rgba(266, 167, 172, 0.8));
    color: rgb(239, 67, 82);
    font-weight: 700;
    
}

/* Level 3 고래 거래 (500k-1M) */
.whale-trade-pixel.level-3 {
    background: linear-gradient(135deg, rgba(114, 180, 116, 0.3), rgba(114, 180, 116, 0.1));
    color: rgb(114, 180, 116);
    font-weight: 600;
    
}

.whale-trade-pixel.level-3.sell {
    background: rgb(237, 51, 67);
    color: rgb(255, 255, 255);
}

/* Level 4 고래 거래 (1M 이상) - 롱/숏 구분 */
.whale-trade-pixel.level-4 {
    background-color: rgb(53, 208, 111) !important; /* 🔥 롱 1M 이상 - 초록색 배경 */
    background-image: var(--long-gif-1) !important; /* 🔥 기본 GIF (JavaScript에서 랜덤 변경됨) */
    background-size: cover; /* 🔥 GIF가 전체 영역을 덮도록 */
    background-position: center; /* 🔥 GIF 중앙 정렬 */
    background-repeat: no-repeat; /* 🔥 GIF 반복 없음 */
    background-blend-mode: overlay; /* 🔥 색상과 GIF 블렌딩 */
    color: #ffffff; /* 🔥 흰색 텍스트로 가독성 향상 */
    font-weight: 700;
    /* 🔥 기본 애니메이션 제거 - 새로운 거래에만 빤짝 효과 */
    transform: scale(1.005); /* 🔥 가로 스크롤 방지 - 1.02에서 1.005로 감소 */
    min-height: 30px; /* 🔥 높이 30px로 설정 */
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 🔥 초록 GIF 위에서 텍스트 가독성 향상 */
}

.whale-trade-pixel.level-4.sell {
    background-color: rgb(235, 30, 47) !important; /* 🔥 숏 1M 이상 - 빨간색 배경 */
    background-image: var(--short-gif-1) !important; /* 🔥 기본 GIF (JavaScript에서 랜덤 변경됨) */
    background-size: cover; /* 🔥 GIF가 전체 영역을 덮도록 */
    background-position: center; /* 🔥 GIF 중앙 정렬 */
    background-repeat: no-repeat; /* 🔥 GIF 반복 없음 */
    background-blend-mode: overlay; /* 🔥 색상과 GIF 블렌딩 */
    color: #ffffff; /* 🔥 흰색 텍스트로 가독성 향상 */
    font-weight: 700;
    /* 🔥 기본 애니메이션 제거 - 새로운 거래에만 빤짝 효과 */
    transform: scale(1.005);
    min-height: 30px; /* 🔥 높이 30px로 설정 */
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 🔥 GIF 위에서 텍스트 가독성 향상 */
}

/* 🔥 랜덤 GIF 클래스들 - JavaScript에서 동적으로 추가됨 */
.whale-trade-pixel.level-4.long-gif-1 {
    background-image: var(--long-gif-1) !important;
}

.whale-trade-pixel.level-4.long-gif-2 {
    background-image: var(--long-gif-2) !important;
}

.whale-trade-pixel.level-4.sell.short-gif-1 {
    background-image: var(--short-gif-1) !important;
}

.whale-trade-pixel.level-4.sell.short-gif-2 {
    background-image: var(--short-gif-2) !important;
}

.whale-trade-pixel.level-4.sell.short-gif-3 {
    background-image: var(--short-gif-3) !important;
}

/* 🔥 GIF 백그라운드 위에서 텍스트 가독성 향상 */
.whale-trade-pixel.level-4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 🔥 초록 GIF 위에서 텍스트 가독성 향상 */
}

.whale-trade-pixel.level-4 > *,
.whale-trade-pixel.level-4.sell > * {
    position: relative;
    z-index: 3;
    font-weight: 800; /* 🔥 더 굵은 폰트로 가독성 강화 */
}

/* 🔥 새로운 반짝임 애니메이션 - 가로 스크롤 방지 */

/* 🔥 강화된 메가 고래 펄스 - 가로 스크롤 방지 */

/* 🔥 초대형 고래 반짝임 효과 */

/* 기존 슬라이드 다운 애니메이션 제거 (중복) */

.whale-trade-pixel .trade-arrow {
    display: inline-block;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
    font-size: 11px;
}

.whale-trade-pixel .trade-price {
    display: inline-block;
    flex: 1;
    text-align: left;
    margin-left: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.whale-trade-pixel .trade-amount {
    display: inline-block;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 700;
}

.whale-trade-pixel .trade-time {
    display: inline-block;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.9;
}

/* Whale Alerts */
.whale-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid;
    border-radius: 8px;
    padding: 16px;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    
}

.whale-alert-buy {
    border-color: rgb(100, 157, 102);
}

.whale-alert-sell {
    border-color: rgb(239, 67, 82);
}

.whale-alert-level-2 {
    border-width: 3px;
    transform: scale(1.01); /* 🔥 가로 스크롤 방지 - 1.05에서 1.01로 감소 */
}

.whale-alert-level-3 {
    border-width: 4px;
    transform: scale(1.02); /* 🔥 가로 스크롤 방지 - 1.1에서 1.02로 감소 */
    
}

.whale-alert-content {
    color: #ffffff;
}

.whale-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.whale-alert-exchange {
    font-size: 1.1em;
}

.whale-alert-side {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
}

.whale-alert-buy .whale-alert-side {
    background: rgb(100, 157, 102);
    color: #fff;
}

.whale-alert-sell .whale-alert-side {
    background: rgb(239, 67, 82);
    color: #fff;
}

.whale-alert-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.whale-alert-price {
    font-size: 1.5em;
    font-weight: 700;
}

.whale-alert-amount {
    font-size: 1.2em;
    font-weight: 600;
    opacity: 0.9;
}

.whale-alert-time {
    font-size: 0.8em;
    opacity: 0.6;
    text-align: right;
}

/* Controls Panel */
.whale-controls {
    background: #2a2a2a;
    padding: 16px;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.whale-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #ccc;
}

.whale-controls input[type="range"] {
    width: 100px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.whale-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
}

.whale-controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
}

/* Stats Panel */
.whale-stats {
    background: #2a2a2a;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #ccc;
}

.whale-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whale-stat-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #22c55e;
}

.whale-stat-label {
    font-size: 0.7em;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Animations */




/* Exchange-specific styling - 색상 팔레트 기반 업데이트 */
.trade-binance {
    /* border-left-color: #f3ba2f; */
}

.trade-binance_futures {
    /* border-left-color: #f3ba2f; */
}

.trade-bybit {
    /* border-left-color: #00d4aa; */
}

.trade-okx {
    /* border-left-color: #000000; */
}

.trade-bitget {
    /* border-left-color: #00c2ff; */
}

.trade-mexc {
    /* border-left-color: #ff6b35; */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .whale-trade-pixel {
        font-size: 11px;
        height: 20px;
        padding: 2px 6px;
    }
    
    .whale-trade-pixel .trade-arrow {
        width: 10px;
        font-size: 10px;
    }
    
    .whale-trade-pixel .trade-amount {
        font-size: 11px;
    }
    
    .whale-trade-pixel .trade-time {
        width: 24px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .whale-trades-container {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .whale-trade-pixel {
        font-size: 10px;
        height: 18px;
        padding: 2px 4px;
    }
    
    .whale-trade-pixel .trade-arrow {
        width: 8px;
        font-size: 9px;
    }
    
    .whale-trade-pixel .trade-amount {
        font-size: 10px;
    }
    
    .whale-trade-pixel .trade-time {
        width: 20px;
        font-size: 9px;
    }
    
    .whale-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .whale-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .whale-controls label {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .whale-trade-pixel {
        padding: 2px 4px;
        min-height: 20px;
        font-size: 10px;
        gap: 4px;
    }
    
    .whale-trade-pixel .trade-arrow {
        font-size: 7px;
        width: 8px;
    }
    
    .whale-trade-pixel .trade-exchange-icon {
        font-size: 10px;
    }
    
    .whale-trade-pixel .trade-amount {
        font-size: 10px;
    }
    
    .whale-trade-pixel .trade-time {
        font-size: 10px;
    }
    
    .whale-alert {
        padding: 12px;
    }
    
    .whale-alert-price {
        font-size: 1.2em;
    }
    
    .whale-alert-amount {
        font-size: 1em;
    }
}

/* Dark/Light Theme Support */
@media (prefers-color-scheme: light) {
    .whale-trades-container {
        background: #ffffff;
        color: #1a1a1a;
    }
    
    .trade {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .trade-buy {
        background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    }
    
    .trade-sell {
        background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    }
    
    .whale-alert {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        color: #1a1a1a;
    }
    
    .whale-controls {
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }
    
    .whale-stats {
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }
}

/* Loading States */
.whale-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.whale-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #22c55e;
    border-radius: 50%;
    
    margin-left: 10px;
}


/* Connection Status */
.whale-connection-status {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: #2a2a2a;
    border-bottom: 1px solid #333;
    font-size: 0.8em;
}

.whale-connection-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.whale-connection-connected {
    color: #22c55e;
}

.whale-connection-disconnected {
    color: #ef4444;
}

/* Performance Optimizations */
.whale-trades-container {
    will-change: transform;
    contain: layout style paint;
}

.trade {
    contain: layout style;
}

.whale-alert {
    will-change: transform, opacity;
}

.trades-list {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    height: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.trades-list::-webkit-scrollbar {
    width: 6px;
}

.trades-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.trades-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* 기존 중복 스타일 정리 - trade 클래스들 통합 */
.trade {
    display: flex;
    background-position: center center;
    background-size: cover;
    background-blend-mode: overlay;
    position: relative;
    padding: 0 2rem 0 1.25rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trade:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background-color: #fff;
    
    pointer-events: none;
}

.trade.-sell {
    background-color: rgba(239, 67, 82, 0.1);
    color: rgb(239, 67, 82);
}

.trade.-buy {
    background-color: rgba(100, 157, 102, 0.1);
    color: rgb(100, 157, 102);
}

/* Trade size levels - 새로운 색상 적용 */
.trade.-level-0 {
    line-height: 1.875em;
    font-size: 0.875em;
    padding: 0.3em 2rem 0.3em 1.25rem;
    background-color: rgba(197, 198, 202, 0.1);
}

.trade.-level-1 {
    line-height: 1.875em;
    font-size: 1em;
    padding: 0.4em 2rem 0.4em 1.25rem;
    background-color: rgba(114, 180, 116, 0.2);
}

.trade.-level-2 {
    line-height: 1.75em;
    font-size: 1.125em;
    font-weight: 600;
    padding: 0.5em 2rem 0.5em 1.25rem;
    background-color: rgba(168, 238, 168, 0.3);
}

.trade.-level-3 {
    line-height: 2em;
    z-index: 1;
    font-size: 1.25em;
    padding: 0.6em 2rem 0.6em 1.25rem;
    font-weight: 600;
    background-color: rgba(168, 238, 168, 0.4);
}

/* 나머지 기존 스타일들은 유지하되 중복 제거 */
.trade > div {
    flex-grow: 1;
    flex-basis: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade .trade__exchange {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    flex-grow: 0;
    flex-shrink: 0;
}

.trade .trade__price {
    direction: rtl;
    min-width: 120px;
    flex-grow: 0;
}

.trade .trade__amount {
    flex-grow: 1;
    text-align: right;
    padding-right: 20px;
}

.trade .trade__time {
    position: absolute;
    right: 0.5rem;
    text-align: right;
    overflow: visible;
    font-size: 0.875em;
    opacity: 0.7;
    min-width: 70px;
}

/* Exchange icons */
.trade .-BINANCE .trade__exchange {
    background-image: url('../img/exchanges/binance.svg');
}

.trade .-BYBIT .trade__exchange {
    background-image: url('../img/exchanges/bybit.svg');
}

.trade .-OKX .trade__exchange {
    background-image: url('../img/exchanges/okx.svg');
}

.trade .-BITGET .trade__exchange {
    background-image: url('../img/exchanges/bitget.svg');
}

.trade .-MEXC .trade__exchange {
    background-image: url('../img/exchanges/mexc.svg');
}

/* Animation for $1M+ trades */

.trade.-mega-whale {
    
}

/* Highlight animation */

/* Container styles */
#whale-tracker {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    background-color: rgba(0, 0, 0, 0.8);
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Whale Tracker Styles */

#whale-tracker-card {
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    padding: 15px;
    font-family: sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#whale-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#whale-tracker-title {
    font-size: 1.2em;
    font-weight: bold;
}

#whale-tracker-list {
    flex-grow: 1;
    overflow-y: auto;
}

.whale-trade {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    border-bottom: 1px solid #333;
    font-size: 0.9em;
}

/* 🔥 고래 에러 메시지 스타일 */
.whale-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    height: 150px;
}

.whale-error-message .error-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: rgb(239, 67, 82);
}

.whale-error-message .error-text p {
    margin: 4px 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.whale-error-message .retry-button {
    margin-top: 12px;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.whale-error-message .retry-button:hover {
    background-color: #2563eb;
}



/* 🔥 텍스트 콘텐츠가 애니메이션 위에 표시되도록 */
.whale-trade-pixel.level-4 > * {
    position: relative;
    z-index: 3;
}

/* 🔥 거래소 아이콘 스타일 */
.trade-exchange-icon {
    width: 50px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 거래소 SVG 아이콘 스타일 */
.exchange-svg-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 🔥 간단한 반짝임 애니메이션 */
@keyframes simpleFlash {
    0% {
        background-color: rgba(255, 255, 255, 0.9);
        transform: scale(1.02);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.7);
    }
    100% {
        background-color: inherit;
        transform: scale(1);
    }
}
