/* ==================== RESET VE TEMEL STİLLER ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark tema (default) */
body {
    background-color: #0b0d10;
    color: #c9d1d9;
}

/* Light tema */
[data-theme="light"] body {
    background-color: #ffffff;
    color: #24292f;
}

/* ==================== NAVİGASYON BAR ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1e26;
    padding: 15px 30px;
    border-bottom: 1px solid #2a313d;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

[data-theme="light"] .navbar {
    background-color: #f6f8fa;
    border-bottom-color: #d0d7de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #58a6ff;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="light"] .logo {
    color: #0969da;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #8b949e;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
    padding: 8px 0;
}

[data-theme="light"] .nav-links a {
    color: #57606a;
}

.nav-links a:hover,
.nav-links a.active {
    color: #58a6ff;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: #0969da;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #58a6ff;
    transition: width 0.3s;
}

[data-theme="light"] .nav-links a::after {
    background-color: #0969da;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* ==================== BUTONLAR ==================== */

/* ==================== ANA KONTEYNER ==================== */
.main-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px;
    gap: 25px;
    min-height: calc(100vh - 70px);
}

@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
}

/* Paneller */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.right-panel {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (max-width: 1200px) {
    .right-panel {
        width: 100%;
    }
}

/* Panel Sabit Stil */
.panel {
    background-color: #1a1e26;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #2a313d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
}

[data-theme="light"] .panel {
    background-color: #f6f8fa;
    border-color: #d0d7de;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.panel:hover {
    border-color: #30363d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .panel:hover {
    border-color: #b6e3ff;
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.08);
}

/* ==================== TİP AYARLARI ==================== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

.panel h4 {
    font-size: 13px;
    color: #58a6ff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a313d;
}

[data-theme="light"] .panel h4 {
    color: #0969da;
    border-bottom-color: #d0d7de;
}

/* ==================== RENK SINIFI ==================== */
.success { color: #3fb950; }
.danger { color: #da3633; }
.warning { color: #f0ad4e; }
.gray { color: #8b949e; }
.primary { color: #58a6ff; }

[data-theme="light"] .success { color: #1a7f37; }
[data-theme="light"] .danger { color: #cf222e; }
[data-theme="light"] .warning { color: #bf8700; }
[data-theme="light"] .gray { color: #57606a; }
[data-theme="light"] .primary { color: #0969da; }

/* ==================== FORM KONTROLLERI ==================== */
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    background-color: #0b0d10;
    border: 1px solid #2a313d;
    color: #c9d1d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select {
    background-color: #ffffff;
    border-color: #d0d7de;
    color: #24292f;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] select:focus {
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #d0d7de;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #b6e3ff;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .nav-links {
        gap: 16px;
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-right {
        gap: 8px;
    }
    
    .main-container {
        padding: 16px;
        gap: 16px;
    }
    
    .panel {
        padding: 16px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #8b949e; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.ml-2 { margin-left: 8px; }
.mr-2 { margin-right: 8px; }

/* ==================== GELİŞMİŞ BUTON STİLLERİ ==================== */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.97);
}

/* Connect Button */
.connect-btn {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(36, 134, 54, 0.25);
    border: 1px solid rgba(63,185,80,0.3);
}

.connect-btn:hover {
    background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%);
    box-shadow: 0 6px 18px rgba(36, 134, 54, 0.4);
    border-color: rgba(63,185,80,0.5);
}

/* Theme Toggle Button */
.theme-btn {
    background: linear-gradient(135deg, #21262d 0%, #1a1e26 100%);
    color: #58a6ff;
    border: 1px solid #2a313d;
    font-size: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

[data-theme="light"] .theme-btn {
    background: linear-gradient(135deg, #f6f8fa 0%, #eaeef2 100%);
    color: #0969da;
    border-color: #d0d7de;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.theme-btn:hover {
    background: linear-gradient(135deg, #2a313d 0%, #21262d 100%);
    border-color: #58a6ff;
    box-shadow: 0 4px 14px rgba(88, 166, 255, 0.2);
    transform: translateY(-2px) rotate(12deg);
}

[data-theme="light"] .theme-btn:hover {
    background: linear-gradient(135deg, #eaeef2 0%, #d8e5f0 100%);
    border-color: #0969da;
    box-shadow: 0 4px 14px rgba(9, 105, 218, 0.15);
    transform: translateY(-2px) rotate(12deg);
}

/* Language Select */
.lang-select {
    background: linear-gradient(135deg, #21262d 0%, #1a1e26 100%);
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b949e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 26px;
}

[data-theme="light"] .lang-select {
    background-color: #f6f8fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2357606a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    color: #24292f;
    border-color: #d0d7de;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.lang-select:hover {
    border-color: #58a6ff;
    box-shadow: 0 4px 12px rgba(88,166,255,0.15);
}

[data-theme="light"] .lang-select:hover {
    border-color: #0969da;
    box-shadow: 0 4px 12px rgba(9,105,218,0.1);
}

/* Wallet Indicator */
.wallet-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.wallet-indicator.connected {
    background-color: #3fb950;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.5);
}

.wallet-indicator.disconnected {
    background-color: #8b949e;
}

/* ==================== ANALİZ SONUCU MODAL ==================== */
.analysis-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.analysis-modal {
    background: #1a1e26;
    border: 1px solid #2a313d;
    border-radius: 24px;
    padding: 40px 36px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(88,166,255,0.08);
    animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .analysis-modal {
    background: #ffffff;
    border-color: #d0d7de;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15), 0 0 0 1px rgba(9,105,218,0.08);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-emoji-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    margin: 0 auto 24px;
    position: relative;
    flex-shrink: 0;
}

.modal-emoji-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, currentColor 360deg);
    animation: ringRotate 2s linear infinite;
    opacity: 0.3;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-emoji-ring.success {
    background: radial-gradient(circle, rgba(63,185,80,0.15) 0%, rgba(35,134,54,0.08) 100%);
    border: 2px solid rgba(63,185,80,0.4);
    color: #3fb950;
    box-shadow: 0 0 30px rgba(63,185,80,0.2), inset 0 0 20px rgba(63,185,80,0.05);
}

.modal-emoji-ring.warning {
    background: radial-gradient(circle, rgba(240,173,78,0.15) 0%, rgba(191,135,0,0.08) 100%);
    border: 2px solid rgba(240,173,78,0.4);
    color: #f0ad4e;
    box-shadow: 0 0 30px rgba(240,173,78,0.2), inset 0 0 20px rgba(240,173,78,0.05);
}

.modal-emoji-ring.danger {
    background: radial-gradient(circle, rgba(218,54,51,0.15) 0%, rgba(207,34,46,0.08) 100%);
    border: 2px solid rgba(218,54,51,0.4);
    color: #da3633;
    box-shadow: 0 0 30px rgba(218,54,51,0.2), inset 0 0 20px rgba(218,54,51,0.05);
}

.modal-coin-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #58a6ff;
    margin-bottom: 6px;
}

[data-theme="light"] .modal-coin-name {
    color: #0969da;
}

.modal-direction {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.modal-direction.long {
    background: rgba(36,134,54,0.2);
    color: #3fb950;
    border: 1px solid rgba(63,185,80,0.3);
}

.modal-direction.short {
    background: rgba(218,54,51,0.2);
    color: #da3633;
    border: 1px solid rgba(218,54,51,0.3);
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #c9d1d9;
    margin-bottom: 8px;
    line-height: 1.2;
}

[data-theme="light"] .modal-title {
    color: #24292f;
}

.modal-subtitle {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 24px;
    line-height: 1.6;
}

[data-theme="light"] .modal-subtitle {
    color: #57606a;
}

.modal-score-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.modal-score-ring svg {
    transform: rotate(-90deg);
}

.modal-score-ring .score-circle-bg {
    fill: none;
    stroke: #2a313d;
    stroke-width: 6;
}

[data-theme="light"] .modal-score-ring .score-circle-bg {
    stroke: #d0d7de;
}

.modal-score-ring .score-circle-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1);
}

.modal-score-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 800;
    font-family: 'Monaco', 'Courier New', monospace;
}

.modal-indicators-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 24px;
}

.modal-ind-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: transform 0.2s;
    cursor: default;
    margin: 0 auto;
    position: relative;
}

.modal-ind-dot:hover {
    transform: scale(1.15);
}

.modal-ind-dot.dot-success {
    background: rgba(63,185,80,0.2);
    color: #3fb950;
    border: 1.5px solid rgba(63,185,80,0.4);
}

.modal-ind-dot.dot-fail {
    background: rgba(139,148,158,0.1);
    color: #8b949e;
    border: 1.5px solid rgba(139,148,158,0.2);
}

.modal-ind-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #0b0d10;
    border: 1px solid #2a313d;
    color: #c9d1d9;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 1;
}

.modal-ind-dot:hover .modal-ind-tooltip {
    opacity: 1;
}

.modal-close-btn {
    background: linear-gradient(135deg, #21262d 0%, #1a1e26 100%);
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.5px;
}

[data-theme="light"] .modal-close-btn {
    background: linear-gradient(135deg, #f6f8fa 0%, #eaeef2 100%);
    color: #24292f;
    border-color: #d0d7de;
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, #2a313d 0%, #21262d 100%);
    border-color: #58a6ff;
    color: #58a6ff;
    box-shadow: 0 4px 14px rgba(88,166,255,0.15);
    transform: translateY(-2px);
}

[data-theme="light"] .modal-close-btn:hover {
    background: linear-gradient(135deg, #eaeef2 0%, #d8e5f0 100%);
    border-color: #0969da;
    color: #0969da;
}

.modal-x-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #8b949e;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-x-btn:hover {
    background: #2a313d;
    border-color: #30363d;
    color: #c9d1d9;
}

[data-theme="light"] .modal-x-btn:hover {
    background: #eaeef2;
    border-color: #d0d7de;
    color: #24292f;
}

/* ==================== LOADING SPINNER ==================== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #2a313d;
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== ANIMASYONLAR ==================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}