/* MEXC Anlık Fiyat Takipçisi - Modern CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Coin Selector */
.coin-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.coin-selector label {
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 600;
}

.coin-select {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 2px solid #667eea;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 15px;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.coin-select:hover {
    border-color: #764ba2;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.coin-select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.coin-select option {
    background: #2c3e50;
    color: #fff;
    padding: 8px;
}

.coin-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.coin-name {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.timeframe {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.price-card {
    background: linear-gradient(145deg, #f8f9ff, #e8ecff);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.price-display {
    margin-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    display: inline-block;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.price-value.price-up {
    color: #00c851;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(0, 200, 81, 0.3);
}

.price-value.price-down {
    color: #ff4444;
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.price-symbol {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 600;
}

.price-change {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-change.positive {
    background: rgba(0, 200, 81, 0.1);
    color: #00c851;
    border: 2px solid rgba(0, 200, 81, 0.2);
}

.price-change.negative {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 2px solid rgba(255, 68, 68, 0.2);
}

.change-value {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.change-percent {
    font-size: 1rem;
    opacity: 0.8;
}

.market-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.info-item .label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.info-item .value {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.connecting {
    background: #ffa726;
}

.status-indicator.success {
    background: #00c851;
}

.status-indicator.error {
    background: #ff4444;
}

.status-indicator.disconnected {
    background: #666;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

#lastUpdate {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .coin-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .market-info {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* MACD Sinyalleri Bölümü */
.macd-section {
    background: linear-gradient(145deg, #f8f9ff, #e8ecff);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.macd-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.control-group input {
    padding: 8px 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.control-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.control-group select {
    padding: 8px 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    min-width: 150px;
}

.control-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.control-group input[type="number"] {
    width: 80px;
    text-align: center;
}



.control-unit {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.refresh-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.buy-signals {
    max-height: 400px;
    overflow-y: auto;
}

.signals-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.signals-summary span {
    font-size: 0.9rem;
    color: #666;
}

.signals-summary strong {
    color: #333;
    font-weight: 700;
}

.signals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.signal-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.signal-item.recent-signal {
    background: linear-gradient(135deg, rgba(0, 200, 81, 0.1), rgba(0, 200, 81, 0.05));
    border-color: rgba(0, 200, 81, 0.3);
    border-left: 4px solid #00c851;
}

.recent-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.signal-header .signal-time {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.strength-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.signal-header .signal-strength {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.strength-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.strength-badge.very-strong {
    background: linear-gradient(45deg, #00c851, #00a041);
    color: white;
    border-color: #00a041;
    box-shadow: 0 2px 8px rgba(0, 200, 81, 0.3);
}

.strength-badge.strong {
    background: linear-gradient(45deg, #4caf50, #2e7d32);
    color: white;
    border-color: #2e7d32;
}

.strength-badge.medium {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    border-color: #f57c00;
}

.strength-badge.weak {
    background: linear-gradient(45deg, #ff5722, #d84315);
    color: white;
    border-color: #d84315;
}

.strength-badge.very-weak {
    background: linear-gradient(45deg, #f44336, #c62828);
    color: white;
    border-color: #c62828;
}


.signal-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-price {
    font-size: 1.1rem;
    color: #333;
}

.signal-price strong {
    color: #667eea;
    font-weight: 700;
}

.signal-macd {
    font-size: 0.85rem;
    color: #666;
    font-family: 'Courier New', monospace;
    background: rgba(102, 126, 234, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.signal-time-info {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

.signal-time-info small {
    color: #666;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}

.no-signals {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.loading-signals {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    padding: 30px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Responsive Design for MACD */
@media (max-width: 600px) {
    .macd-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        justify-content: center;
    }
    
    .signals-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .signal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .signal-macd {
        font-size: 0.8rem;
        word-break: break-all;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* UT Bot Sinyalleri Stilleri */
.sell-signal {
    border-left: 4px solid #ff4444 !important;
}

.sell-signal .signal-type {
    color: #ff4444 !important;
}

.sell-signal .signal-header {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 68, 68, 0.05)) !important;
}

.buy-signal {
    border-left: 4px solid #00c851 !important;
}

.buy-signal .signal-type {
    color: #00c851 !important;
}

.buy-signal .signal-header {
    background: linear-gradient(135deg, rgba(0, 200, 81, 0.1), rgba(0, 200, 81, 0.05)) !important;
}

/* UT Bot Kontrolleri */
.macd-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.macd-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Checkbox Stilleri */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #667eea;
}

/* UT Bot Sinyal Detayları */
.signal-macd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-macd:last-child {
    border-bottom: none;
}

.signal-macd .label {
    font-size: 0.8rem;
    color: #b0b0b0;
    font-weight: 500;
}

.signal-macd .value {
    font-size: 0.85rem;
    color: #000000;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Kombinasyon Sinyalleri Stilleri */
.combined-signal {
    border-left: 4px solid #ff6b35 !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05)) !important;
}

.combined-signal .signal-type {
    color: #ff6b35 !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.combined-signal .signal-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1)) !important;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.combination-info {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
}

.combination-info strong {
    color: #ff6b35;
    font-weight: 700;
}

/* Kombinasyon sinyali özel animasyon */
.combined-signal.recent-signal {
    animation: combinedPulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

@keyframes combinedPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
}
