﻿/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0e17;
    color: #e0e6ed;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #1a1f2f 0%, #0a0e17 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #2a3050;
}

header h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #f7931a, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #8a94a6;
    font-size: 1.1em;
    margin-top: 8px;
}

.control-panel {
    background: #141b2b;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #2a3050;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-box {
    background: #1a2133;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #2a3050;
}

.stat-box .label {
    display: block;
    font-size: 0.85em;
    color: #8a94a6;
    margin-bottom: 5px;
}

.stat-box .value {
    font-size: 1.4em;
    font-weight: bold;
    color: #f7931a;
}

.stat-box select {
    background: #0a0e17;
    color: #e0e6ed;
    border: 1px solid #2a3050;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
    cursor: pointer;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #f7931a, #ffd700);
    color: #0a0e17;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ed573, #7bed9f);
    color: #0a0e17;
}

.btn-secondary {
    background: #2a3050;
    color: #e0e6ed;
}

.results {
    background: #141b2b;
    border-radius: 16px;
    padding: 25px;
    min-height: 400px;
    border: 1px solid #2a3050;
}

.loading {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    border: 4px solid #2a3050;
    border-top: 4px solid #f7931a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.progress-bar {
    width: 100%;
    max-width: 500px;
    height: 6px;
    background: #2a3050;
    border-radius: 3px;
    margin: 15px auto;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #f7931a, #ffd700);
    transition: width 0.3s;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a94a6;
}

.empty-state p {
    font-size: 1.2em;
}

.empty-state .small {
    font-size: 0.9em;
    margin-top: 10px;
}

.coin-card {
    background: #1a2133;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    border-left: 4px solid #8a94a6;
    transition: all 0.3s;
}

.coin-card:hover {
    background: #1f2840;
    transform: translateX(4px);
}

.coin-card.buy {
    border-left-color: #2ed573;
}

.coin-card.sell {
    border-left-color: #ff4757;
}

.coin-card.strong-buy {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #1a2133, #2a1f0a);
}

.coin-card.strong-sell {
    border-left-color: #ff4757;
    background: linear-gradient(135deg, #1a2133, #2a0a0a);
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.coin-name {
    font-size: 1.2em;
    font-weight: bold;
}

.coin-price {
    font-size: 1.1em;
    color: #f7931a;
}

.coin-signal {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.signal-buy {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.signal-sell {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.signal-strong-buy {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.signal-strong-sell {
    background: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.signal-wait {
    background: rgba(138, 148, 166, 0.2);
    color: #8a94a6;
}

.coin-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a3050;
}

.detail-item {
    font-size: 0.85em;
}

.detail-item .label {
    color: #8a94a6;
    display: block;
}

.detail-item .value {
    font-weight: 500;
}

.detail-item .value.up {
    color: #2ed573;
}

.detail-item .value.down {
    color: #ff4757;
}

.coin-signals {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.signal-tag {
    background: #2a3050;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
}

.signal-tag.buy-tag {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.signal-tag.sell-tag {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .coin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .coin-details {
        grid-template-columns: 1fr 1fr;
    }
}