/* ================================================================
   [FILE] financial-indicators.css
   [PURPOSE] Financial Indicators & Bot Page Styles
   [THEME] Finance/Trading (Indigo/Purple main theme, Green Signal accent)
   ================================================================ */

/* --- RENK PALETİ (Revize Edildi) --- */
:root {
    /* Ana Renk: Site Temasıyla Uyumlu Indigo/Mor (Yükseliş Mumları için de bu kullanılacak) */
    --fi-primary: #6366f1;
    
    /* İkincil Renk: Mavi (Fiyat Çizgisi/Teknoloji) */
    --fi-secondary: #3b82f6;
    
    /* Düşüş Rengi: Kırmızı (Düşüş Mumu/Zarar) */
    --fi-loss: #ef4444;
    
    /* ÖZEL RENK: Sadece 'AL SİNYALİ' kutusu için korunan Orijinal Yeşil */
    --fi-accent-green: #10b981;

    /* Parlama Efekti: Ana renge (Indigo) göre güncellendi */
    --fi-glow: rgba(99, 102, 241, 0.5);
}

/* --- HERO SECTION --- */
.fi-hero {
    padding: 140px 0 80px 0;
    position: relative;
    overflow: hidden;
    
    /* ARKA PLAN: Mor/Indigo Parlama */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 20%),
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    
    background-color: var(--bg-body);
    border-bottom: 1px solid var(--border-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* BADGE (ETİKET) - MOR TEMA */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    /* Mor/Indigo tonlar */
    background: rgba(99, 102, 241, 0.1); 
    color: var(--fi-primary); 
    border: 1px solid rgba(99, 102, 241, 0.2);
    
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-main);
    margin-bottom: 1.5rem;
}

/* BAŞLIK */
.fi-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff; /* Net Beyaz */
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex; gap: 1rem;
}

/* --- ANIMATION BOX (TRADING CHART) --- */
.fi-anim-box {
    position: relative;
    height: 350px;
    
    /* Mor Parlama */
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(0,0,0,0) 70%);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    
    overflow: hidden;
}

/* 1. GRAFİK GRID */
.chart-grid {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}
.grid-line { position: absolute; background: rgba(255,255,255,0.1); }
.grid-line.h { width: 100%; height: 1px; left: 0; }
.grid-line.v { height: 100%; width: 1px; top: 0; }

.grid-line.h:nth-child(1) { top: 25%; }
.grid-line.h:nth-child(2) { top: 50%; }
.grid-line.h:nth-child(3) { top: 75%; }
.grid-line.v:nth-child(4) { left: 25%; }
.grid-line.v:nth-child(5) { left: 50%; }
.grid-line.v:nth-child(6) { left: 75%; }

/* 2. MUM ÇUBUKLARI (Candles) - REVİZE EDİLDİ */
.candles-container {
    position: absolute;
    bottom: 50px; left: 20px; right: 20px; top: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.candle {
    width: 12px;
    border-radius: 2px;
    position: relative;
    animation: growCandle 1s ease-out forwards;
    opacity: 0;
}

/* Mum Fitilleri */
.candle::before {
    content: ''; position: absolute;
    left: 50%; top: -10px; bottom: -10px;
    width: 2px; transform: translateX(-50%);
    background: inherit; opacity: 0.5; z-index: -1;
}

/* Mum Tipleri */
/* REVİZE: Yükseliş mumu artık Mor (Indigo) */
.c-up { 
    background: var(--fi-primary); 
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
.c-down { background: var(--fi-loss); }

/* Animasyonlar */
.candle:nth-child(1) { height: 40px; margin-bottom: 20px; animation-delay: 0.2s; }
.candle:nth-child(2) { height: 30px; margin-bottom: 10px; animation-delay: 0.6s; }
.candle:nth-child(3) { height: 50px; margin-bottom: 30px; animation-delay: 1.0s; }
.candle:nth-child(4) { height: 80px; margin-bottom: 50px; animation-delay: 1.4s; }
.candle:nth-child(5) { height: 20px; margin-bottom: 100px; animation-delay: 1.8s; }
.candle:nth-child(6) { height: 60px; margin-bottom: 110px; animation-delay: 2.2s; }

@keyframes growCandle {
    from { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
    to { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
}

/* 3. HAREKETLİ FİYAT ÇİZGİSİ (Mavi) */
.price-line-svg {
    position: absolute;
    top: 50px; left: 20px; width: calc(100% - 40px); height: calc(100% - 100px);
    overflow: visible;
    z-index: 5;
}

.price-path {
    fill: none;
    stroke: var(--fi-secondary);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px var(--fi-secondary));
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-out forwards 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* 4. BOT SİNYALİ (AL) - KRİTİK REVİZE */
.signal-box {
    position: absolute;
    top: 20%; right: 10%;
    
    /* ÖZEL İSTEK: Arka plan orijinal YEŞİL olarak korundu */
    background: rgba(16, 185, 129, 0.9); /* Veya var(--fi-accent-green) */
    
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex; align-items: center; gap: 8px;
    
    /* Gölge de yeşil kalmalı */
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    
    opacity: 0;
    animation: popSignal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.5s;
    z-index: 10;
}

.signal-dot {
    width: 8px; height: 8px;
    background: #fff; border-radius: 50%;
    animation: pulseDot 1s infinite;
}

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

@keyframes pulseDot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* 5. TICKER TAPE (Kayan Veri) */
.ticker-tape {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    height: 30px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-tape span {
    display: inline-block;
    padding: 0 2rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    color: var(--text-muted);
    animation: scrollTicker 10s linear infinite;
}

/* REVİZE: Yükselişler Mor (Indigo) oldu */
.ticker-tape span:nth-child(1) { color: var(--fi-primary); } /* BTC + */
.ticker-tape span:nth-child(2) { color: var(--fi-primary); } /* ETH + */
.ticker-tape span:nth-child(3) { color: var(--fi-loss); }    /* XAU - */

@keyframes scrollTicker {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}


/* --- CONTENT SECTION (SPACING & LAYOUT) --- */
.fi-content {
    padding: 4rem 0 6rem 0;
}

/* Açıklama Metni */
.intro-text-center {
    max-width: 800px;
    margin: 0 auto 6rem auto; 
    text-align: center;
}
.intro-text-center h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}
.intro-text-center p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Başlıklar */
.section-heading {
    text-align: center;
    font-size: 1.75rem;
    color: #fff;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

/* Kartlar Grid (Mor Vurgulu) */
.benefit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem; 
    margin-bottom: 6rem;
}

.benefit-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    /* REVİZE: Hover rengi Mor */
    border-color: var(--fi-primary);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

.benefit-icon {
    width: 50px; height: 50px;
    /* REVİZE: İkon arka planı Mor */
    background: rgba(99, 102, 241, 0.1);
    color: var(--fi-primary);
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefit-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}
.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Use Cases (Mavi Vurgulu) */
.use-cases-wrapper {
    margin-bottom: 6rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
}

.use-case-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: 0.3s;
    cursor: default;
}

.use-case-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--fi-secondary);
    transform: scale(1.02);
}

.uc-icon {
    font-size: 2rem;
    color: var(--fi-secondary);
    margin-bottom: 1rem;
}

.use-case-item span {
    color: var(--text-main);
    font-weight: 500;
}

.bottom-cta {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-ctas { justify-content: center; }
    .hero-badge { margin: 0 auto 1.5rem auto; }
    
    .fi-anim-box {
        height: 250px;
    }
    
    .ticker-tape { display: none; }
    
    .benefit-cards-grid { gap: 2rem; margin-bottom: 4rem; }
    .section-heading { margin-bottom: 3rem; margin-top: 3rem; }
}


