/* ===== CSS Variables - Claude.ai Aesthetic ===== */
:root {
    /* Claude's signature colors */
    --primary: #D97757;
    --primary-hover: #C4644A;
    --primary-light: rgba(217, 119, 87, 0.15);
    
    /* Dark theme colors */
    --bg-primary: #1A1915;
    --bg-secondary: #242320;
    --bg-tertiary: #2D2C28;
    --bg-elevated: #353430;
    
    /* Text colors */
    --text-primary: #ECECEA;
    --text-secondary: #A8A8A5;
    --text-tertiary: #6E6E6B;
    
    /* Accent colors */
    --success: #4ADE80;
    --warning: #FBBF24;
    --error: #F87171;
    --info: #60A5FA;
    
    /* Chart colors */
    --chart-green: #22C55E;
    --chart-red: #EF4444;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.12);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Spacing */
    --header-height: 64px;
    
    /* Typography */
    --font-sans: 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Source Code Pro', 'Fira Code', monospace;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Gradient Background ===== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(217, 119, 87, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(217, 119, 87, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(217, 119, 87, 0.05), transparent);
    pointer-events: none;
    z-index: -1;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(26, 25, 21, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.logo-icon.small {
    width: 28px;
    height: 28px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.logo-img.small {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

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

/* ===== Buttons ===== */
.btn-primary {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
    background: var(--bg-tertiary);
}

/* ===== Main Content ===== */
.main {
    padding-top: calc(var(--header-height) + 40px);
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 80px;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 60px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(217, 119, 87, 0.3);
    border-radius: 100px;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #E8A87C 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Terminal Section ===== */
.terminal-section {
    margin-bottom: 80px;
}

.terminal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA41; }

.terminal-title {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--success);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
    font-family: var(--font-mono);
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.output-line {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.output-line .timestamp {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.output-line .message {
    color: var(--text-secondary);
}

.output-line.system .message {
    color: var(--text-tertiary);
}

.output-line.success .message {
    color: var(--success);
}

.output-line.error .message {
    color: var(--error);
}

.output-line.warning .message {
    color: var(--warning);
}

.output-line .cmd {
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.output-line.ai-response {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    margin: 8px 0;
    padding: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.output-line.ai-response .message {
    color: var(--text-primary);
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Typing indicator */
.typing-indicator .typing-dots {
    animation: typingDots 1.4s infinite;
}

@keyframes typingDots {
    0%, 20% { opacity: 0.2; }
    40% { opacity: 1; }
    60%, 100% { opacity: 0.2; }
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.prompt {
    color: var(--primary);
    flex-shrink: 0;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
}

.terminal-input::placeholder {
    color: var(--text-tertiary);
}

.cursor {
    width: 8px;
    height: 18px;
    background: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.quick-commands {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.quick-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.quick-cmd {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-cmd:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Markets Section ===== */
.markets-section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.market-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--text-tertiary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.market-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.market-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.market-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(217, 119, 87, 0.15);
}

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

.coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.coin-icon.btc { background: linear-gradient(135deg, #F7931A, #FF9500); color: white; }
.coin-icon.eth { background: linear-gradient(135deg, #627EEA, #8B9FEB); color: white; }
.coin-icon.sol { background: linear-gradient(135deg, #00FFA3, #03E1FF); color: #1A1915; }
.coin-icon.avax { background: linear-gradient(135deg, #E84142, #FF6B6B); color: white; }

.coin-icon.small {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.coin-name {
    display: block;
    font-weight: 500;
    font-size: 15px;
}

.coin-symbol {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
}

.change {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.change.positive {
    color: var(--chart-green);
    background: rgba(34, 197, 94, 0.1);
}

.change.negative {
    color: var(--chart-red);
    background: rgba(239, 68, 68, 0.1);
}

.card-price {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.card-chart {
    height: 80px;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ===== Analysis Section ===== */
.analysis-section {
    margin-bottom: 60px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.analysis-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.analysis-card.main-chart {
    grid-row: span 2;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.analysis-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

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

.tf-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tf-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.tf-btn.active {
    color: var(--primary);
    background: var(--primary-light);
}

.main-chart-container {
    height: 300px;
    margin-bottom: 20px;
}

.chart-indicators {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.indicator {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.indicator-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.indicator-value {
    font-size: 16px;
    font-weight: 500;
}

.indicator-value.positive {
    color: var(--chart-green);
}

.indicator-status {
    font-size: 11px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.indicator-status.neutral {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.indicator-status.bullish {
    color: var(--chart-green);
    background: rgba(34, 197, 94, 0.1);
}

/* ===== Insights Card ===== */
.insights-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insight-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.insight-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon.bullish {
    background: rgba(34, 197, 94, 0.1);
    color: var(--chart-green);
}

.insight-icon.warning {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
}

.insight-icon.info {
    background: rgba(96, 165, 250, 0.1);
    color: var(--info);
}

.insight-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.insight-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Sentiment Card ===== */
.sentiment-gauge {
    margin-bottom: 16px;
}

.gauge-container {
    position: relative;
    height: 16px;
    background: linear-gradient(90deg, var(--chart-red), var(--warning), var(--chart-green));
    border-radius: 8px;
    margin-bottom: 8px;
}

.gauge-fill {
    position: absolute;
    left: var(--percentage);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.gauge-value {
    position: absolute;
    left: var(--percentage);
    top: -28px;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-tertiary);
}

.sentiment-status {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--chart-green);
    margin-bottom: 8px;
}

.sentiment-note {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== Signals Card ===== */
.signal-count {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 100px;
}

.signals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signal-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.signal-type {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.signal-item.buy .signal-type {
    background: rgba(34, 197, 94, 0.1);
    color: var(--chart-green);
}

.signal-item.sell .signal-type {
    background: rgba(239, 68, 68, 0.1);
    color: var(--chart-red);
}

.signal-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.signal-pair {
    font-weight: 500;
    font-size: 14px;
}

.signal-entry {
    font-size: 12px;
    color: var(--text-tertiary);
}

.signal-targets {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 32px 24px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-card.main-chart {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .nav {
        display: none;
    }
    
    .main {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
