/**
 * Liquidation Falls Screener CSS
 * Animasyonlu liquidation widget stil dosyası
 */

/* Ana container */
.liquidation-falls-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00bcd4;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Header */
.liquidation-falls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.liquidation-falls-header h3 {
    color: #00bcd4;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Total Liquidations Display */
.total-liquidations-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.total-amount {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    cursor: pointer;
}

.total-breakdown {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.long-total {
    color: #4caf50;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
}

.short-total {
    color: #f44336;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(244, 67, 54, 0.4);
}

.falls-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading Spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top: 2px solid #00bcd4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #00bcd4;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.empty-state p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #f44336;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.error-state h3 {
    color: #f44336;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.error-state p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Retry Button */
.retry-btn {
    background: linear-gradient(45deg, #00bcd4, #26a69a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    background: linear-gradient(45deg, #26a69a, #00bcd4);
}
}

#falls-status-text {
    color: #4dd0e1;
    font-size: 0.9rem;
    font-weight: 500;
}

.scanning-dot {
    width: 8px;
    height: 8px;
    background: #00bcd4;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2); 
    }
}

/* Controls */
.falls-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.timeframe-selector {
    display: flex;
    gap: 8px;
}

.timeframe-btn {
    padding: 8px 16px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    color: #ecf0f1;
    border: 1px solid #4a90e2;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeframe-btn:hover {
    background: linear-gradient(145deg, #3498db, #2980b9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.timeframe-btn.active {
    background: linear-gradient(145deg, #00bcd4, #26a69a);
    border-color: #00bcd4;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
}



.update-indicator {
    color: #80deea;
    font-size: 0.8rem;
}

#last-update-time {
    font-weight: bold;
    color: #4dd0e1;
}

/* Animation area */
.falls-animation-area {
    position: relative;
    min-height: 350px;
    background: linear-gradient(180deg, rgba(0, 188, 212, 0.03) 0%, rgba(26, 26, 46, 0.5) 100%);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.falls-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(38, 166, 154, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.liquidation-items-container {
    position: relative;
    z-index: 1;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

/* Liquidation coins */
.liquidation-coin {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 73, 94, 0.9) 100%);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
    margin-bottom: 10px;
    animation: fadeInSlide 0.5s ease-out forwards;
}

.liquidation-coin:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #00bcd4;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.25);
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.coin-symbol {
    color: #00bcd4;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.4);
}

.coin-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.coin-price {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
}

.coin-change {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.coin-change.green {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.coin-change.red {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.coin-change.neutral {
    color: #95a5a6;
    background: rgba(149, 165, 166, 0.1);
    border: 1px solid rgba(149, 165, 166, 0.3);
}
}

.coin-symbol {
    font-size: 1rem;
    font-weight: bold;
    color: #4dd0e1;
    text-shadow: 0 0 5px rgba(77, 208, 225, 0.3);
}

/* Price Info Section */
.coin-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.coin-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.9;
}

.coin-change {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 3px;
}

.coin-change.green {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.coin-change.red {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.coin-change.neutral {
    color: #9e9e9e;
    background: rgba(158, 158, 158, 0.1);
}

/* Liquidation Amount */
.coin-liquidation-amount {
    margin-bottom: 6px;
    text-align: center;
}

.coin-volume {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.coin-details {
    margin-bottom: 8px;
}

.liq-breakdown {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.long-liq, .short-liq {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.long-liq {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.short-liq {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Volume categories */
.coin-intensity {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    animation: liquidationGlow 2s infinite;
}

.mega-liquidation .coin-intensity {
    background: linear-gradient(90deg, #ff1744, #f50057);
    box-shadow: 0 0 10px #ff1744;
}

.major-liquidation .coin-intensity {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    box-shadow: 0 0 8px #ff9800;
}

.significant-liquidation .coin-intensity {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    box-shadow: 0 0 6px #ffc107;
}

.minor-liquidation .coin-intensity {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    box-shadow: 0 0 4px #4caf50;
}

@keyframes liquidationGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Falling particles */
.falling-particle {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: fall linear infinite;
    opacity: 0.7;
    box-shadow: 0 0 6px currentColor;
}

@keyframes fall {
    to {
        transform: translateY(370px);
        opacity: 0;
    }
}

/* Slide in animation */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Summary */
.falls-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: #80deea;
    margin-bottom: 4px;
    font-weight: 500;
}

#total-volume, #active-coins {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00bcd4;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}

/* Scrollbar styling */
.liquidation-items-container::-webkit-scrollbar {
    width: 6px;
}

.liquidation-items-container::-webkit-scrollbar-track {
    background: rgba(44, 62, 80, 0.3);
    border-radius: 3px;
}

.liquidation-items-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00bcd4, #26a69a);
    border-radius: 3px;
}

.liquidation-items-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #26a69a, #00bcd4);
}

/* Keyframe animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .liquidation-falls-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .liquidation-falls-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .falls-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .liquidation-items-container {
        grid-template-columns: 1fr;
        padding: 10px;
        max-height: 280px;
    }
    
    .liquidation-coin {
        padding: 10px;
    }
    
    .falls-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeframe-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}