/* ==================== KONTROL PANELI ==================== */
.control-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Arama Kutusu */
.search-box {
    position: relative;
}

#coinSearch {
    width: 100%;
    padding: 14px 16px;
    background-color: #0b0d10;
    border: 1px solid #2a313d;
    color: #c9d1d9;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

[data-theme="light"] #coinSearch {
    background-color: #ffffff;
    border-color: #d0d7de;
    color: #24292f;
}

#coinSearch:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
    background-color: #161b22;
}

[data-theme="light"] #coinSearch:focus {
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
    background-color: #f6f8fa;
}

/* Autocomplete Liste */
.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1e26;
    border: 1px solid #2a313d;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .autocomplete-items {
    background-color: #ffffff;
    border-color: #d0d7de;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.autocomplete-items div {
    padding: 12px 16px;
    cursor: pointer;
    color: #c9d1d9;
    border-bottom: 1px solid #2a313d;
    font-size: 13px;
    transition: all 0.2s;
}

[data-theme="light"] .autocomplete-items div {
    color: #24292f;
    border-bottom-color: #d0d7de;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: #2a313d;
    color: #58a6ff;
}

[data-theme="light"] .autocomplete-items div:hover {
    background-color: #f0f4f8;
    color: #0969da;
}

/* ==================== POZİSYON SEÇİCİ ==================== */
.position-selector {
    display: flex;
    gap: 12px;
}

.pos-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #2a313d;
    background: linear-gradient(135deg, #21262d 0%, #1a1e26 100%);
    color: #8b949e;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.pos-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

[data-theme="light"] .pos-btn {
    border-color: #d0d7de;
    background: linear-gradient(135deg, #f6f8fa 0%, #eaeef2 100%);
    color: #57606a;
}

.pos-btn:hover {
    border-color: #30363d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

[data-theme="light"] .pos-btn:hover {
    border-color: #b6e3ff;
}

.pos-btn.active {
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.pos-btn.success.active {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    box-shadow: 0 6px 20px rgba(36, 134, 54, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.pos-btn.danger.active {
    background: linear-gradient(135deg, #b91c1c 0%, #da3633 100%);
    box-shadow: 0 6px 20px rgba(218, 54, 51, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ==================== ZAMAN DİLİMLERİ ==================== */
.timeframes {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.tf-btn {
    flex: 1;
    padding: 10px 8px;
    background: linear-gradient(135deg, #21262d 0%, #1a1e26 100%);
    color: #8b949e;
    border: 1px solid #2a313d;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="light"] .tf-btn {
    background: linear-gradient(135deg, #f6f8fa 0%, #eaeef2 100%);
    color: #57606a;
    border-color: #d0d7de;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tf-btn:hover {
    background: linear-gradient(135deg, #2a313d 0%, #21262d 100%);
    color: #58a6ff;
    border-color: rgba(88,166,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88,166,255,0.15);
}

[data-theme="light"] .tf-btn:hover {
    background: linear-gradient(135deg, #eaeef2 0%, #d8e5f0 100%);
    color: #0969da;
    border-color: rgba(9,105,218,0.4);
    box-shadow: 0 4px 12px rgba(9,105,218,0.1);
}

.tf-btn.active {
    background: linear-gradient(135deg, #58a6ff 0%, #438fec 100%);
    color: #0b0d10;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(88, 166, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
    font-weight: 800;
}

[data-theme="light"] .tf-btn.active {
    background: linear-gradient(135deg, #0969da 0%, #0550ae 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(9, 105, 218, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.run-btn {
    background: linear-gradient(135deg, #58a6ff 0%, #438fec 50%, #2878d6 100%);
    color: #0b0d10;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.run-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s;
}

.run-btn:hover::before {
    left: 100%;
}

[data-theme="light"] .run-btn {
    background: linear-gradient(135deg, #0969da 0%, #0550ae 50%, #033d8b 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(9, 105, 218, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.run-btn:hover {
    background: linear-gradient(135deg, #79b8ff 0%, #58a6ff 50%, #438fec 100%);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.5);
    transform: translateY(-3px);
}

[data-theme="light"] .run-btn:hover {
    background: linear-gradient(135deg, #1f7feb 0%, #0969da 50%, #0550ae 100%);
    box-shadow: 0 8px 24px rgba(9, 105, 218, 0.4);
}

.run-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

/* ==================== İNDİKATÖR KUTUSu ==================== */
.indicators-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .indicators-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .indicators-box {
        grid-template-columns: 1fr;
    }
}

.indicator-item {
    background-color: #0b0d10;
    border: 1px solid #2a313d;
    border-radius: 8px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

[data-theme="light"] .indicator-item {
    background-color: #ffffff;
    border-color: #d0d7de;
}

.indicator-item:hover {
    border-color: #30363d;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.1);
    transform: translateY(-2px);
}

[data-theme="light"] .indicator-item:hover {
    border-color: #b6e3ff;
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.05);
}

.indicator-item span:first-child {
    font-weight: 700;
    font-size: 13px;
    color: #c9d1d9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="light"] .indicator-item span:first-child {
    color: #24292f;
}

.indicator-item .status {
    font-weight: 600;
    font-size: 11px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.indicator-item .status.success {
    color: #3fb950;
    animation: pulse 1.5s ease-in-out;
}

.indicator-item .status.gray {
    color: #8b949e;
}

/* ==================== SKOR PANELI ==================== */
.score-box {
    text-align: center;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a313d;
}

[data-theme="light"] .price-header {
    border-bottom-color: #d0d7de;
}

.price-header h2 {
    font-size: 18px;
    color: #c9d1d9;
    margin: 0;
}

[data-theme="light"] .price-header h2 {
    color: #24292f;
}

#coinPrice {
    color: #58a6ff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
}

[data-theme="light"] #coinPrice {
    color: #0969da;
}

/* İlerleme Çubuğu */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #2a313d;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .progress-bar-container {
    background-color: #d0d7de;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff 0%, #438fec 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

[data-theme="light"] .fill {
    background: linear-gradient(90deg, #0969da 0%, #033d8b 100%);
}

/* Skor Metni */
.score-text {
    margin-bottom: 16px;
    font-weight: 700;
    color: #c9d1d9;
    font-size: 15px;
}

[data-theme="light"] .score-text {
    color: #24292f;
}

/* Strateji Badge */
.strategy-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.strategy-badge.success {
    background-color: #238636;
    color: white;
    box-shadow: 0 4px 12px rgba(36, 134, 54, 0.3);
}

.strategy-badge.warning {
    background-color: #f0ad4e;
    color: #0b0d10;
    box-shadow: 0 4px 12px rgba(240, 173, 78, 0.3);
}

.strategy-badge.neutral {
    background-color: #8b949e;
    color: #0b0d10;
    box-shadow: 0 4px 12px rgba(139, 148, 158, 0.2);
}

.strategy-badge.danger {
    background-color: #da3633;
    color: white;
    box-shadow: 0 4px 12px rgba(218, 54, 51, 0.3);
}

[data-theme="light"] .strategy-badge.success {
    background-color: #1a7f37;
    box-shadow: 0 4px 12px rgba(26, 127, 55, 0.2);
}

[data-theme="light"] .strategy-badge.danger {
    background-color: #cf222e;
    box-shadow: 0 4px 12px rgba(207, 34, 46, 0.2);
}

/* ==================== PİYASA ÖZETİ ==================== */
.market-summary-box .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a313d;
    font-size: 13px;
}

[data-theme="light"] .market-summary-box .summary-item {
    border-bottom-color: #d0d7de;
}

.market-summary-box .summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: #8b949e;
    font-weight: 500;
}

[data-theme="light"] .summary-item span:first-child {
    color: #57606a;
}

.summary-item span:last-child {
    color: #c9d1d9;
    font-weight: 700;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
}

[data-theme="light"] .summary-item span:last-child {
    color: #24292f;
}

/* ==================== PİYASA DUYARLILIĞI ==================== */
.market-sentiment-box .sentiment-item.global {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a313d;
}

[data-theme="light"] .market-sentiment-box .sentiment-item.global {
    border-bottom-color: #d0d7de;
}

.sentiment-item.global .long,
.sentiment-item.global .short {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
}

.sentiment-item.global .long {
    color: #3fb950;
}

.sentiment-item.global .short {
    color: #da3633;
}

/* Sentiment Bar */
.sentiment-bar-global {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .sentiment-bar-global {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bar-fill.long {
    background: linear-gradient(90deg, #3fb950 0%, #2ea043 100%);
    transition: width 0.5s ease;
}

.bar-fill.short {
    background: linear-gradient(90deg, #da3633 0%, #da3633 100%);
    transition: width 0.5s ease;
}

/* Exchange Items */
.sentiment-item.exchange {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #2a313d;
    color: #c9d1d9;
}

[data-theme="light"] .sentiment-item.exchange {
    color: #24292f;
    border-bottom-color: #d0d7de;
}

.sentiment-item.exchange:last-child {
    border-bottom: none;
}

.sentiment-item.exchange span:first-child {
    color: #8b949e;
    font-weight: 600;
}

[data-theme="light"] .sentiment-item.exchange span:first-child {
    color: #57606a;
}

.sentiment-item.exchange span:last-child {
    font-family: 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    font-size: 12px;
}

/* ==================== WALLET BÖLÜMÜ ==================== */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #0b0d10;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 12px;
}

[data-theme="light"] .wallet-info {
    background-color: #f6f8fa;
}

#walletBalance {
    color: #3fb950;
    font-weight: 700;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .price-header {
        flex-direction: column;
        gap: 8px;
    }
    
    #coinPrice {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .control-box {
        gap: 12px;
    }
    
    .position-selector {
        gap: 8px;
    }
    
    .pos-btn {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .timeframes {
        gap: 4px;
    }
    
    .tf-btn {
        font-size: 10px;
        padding: 8px 4px;
    }
    
    .run-btn {
        padding: 12px;
        font-size: 12px;
    }
    
    .indicators-box {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #coinPrice {
        font-size: 20px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}