/* ================================================================
   [FILE] ai-assistant.css
   [PURPOSE] AI Assistant & Chatbot Page Styles
   [THEME] Neural Intelligence (Violet/Pink accents) - Layout synced
   ================================================================ */

/* --- RENK PALETİ (AI Teması) --- */
:root {
    --ai-primary: #8b5cf6;    /* Violet (Ana Renk) */
    --ai-accent: #ec4899;     /* Pink (Canlılık/Aktivite) */
    --ai-glow: rgba(139, 92, 246, 0.5);
}

/* --- HERO SECTION (RPA/WS İLE EŞİTLENDİ) --- */
.ai-hero {
    /* Hizalama diğer sayfalarla birebir aynı */
    padding: 140px 0 80px 0;
    position: relative;
    overflow: hidden;
    
    /* ARKA PLAN: Standart Grid Yapısı */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 20%), /* Hafif mor parlama */
        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); /* Body rengiyle bütünleşik */
    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) - AI RENGİ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    /* Mor/Violet tonlar */
    background: rgba(139, 92, 246, 0.1); 
    color: var(--ai-primary); 
    border: 1px solid rgba(139, 92, 246, 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 */
.ai-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 (THE NEURAL CORE) --- */
.ai-anim-box {
    position: relative;
    height: 350px;
    
    /* Çerçevesiz, Floating yapı */
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, rgba(0,0,0,0) 70%);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. ARKA PLAN AĞI (Neural Grid) */
.neural-grid {
    position: absolute;
    width: 300px; height: 300px;
    border: 1px dashed rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    animation: spinSlow 20s linear infinite;
}

/* 2. MERKEZ BEYİN (CORE) */
.brain-core {
    position: relative;
    width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
}

.brain-layers {
    font-size: 3.5rem;
    color: var(--ai-primary);
    background: rgba(139, 92, 246, 0.1);
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 30px var(--ai-glow);
    animation: brainPulse 3s ease-in-out infinite;
}

/* Nabız Efekti */
.synapse-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ai-accent);
    opacity: 0;
    animation: pulseWave 3s infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--ai-glow); }
    50% { transform: scale(1.05); box-shadow: 0 0 50px var(--ai-glow), 0 0 10px var(--ai-accent); }
}

@keyframes pulseWave {
    0% { width: 90px; height: 90px; opacity: 0.8; border-width: 2px; }
    100% { width: 180px; height: 180px; opacity: 0; border-width: 0px; }
}

/* 3. YÖRÜNGEDEKİ ELEMENTLER (Orbit) */
.orbit-container {
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: orbitSpin 10s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 40px; height: 40px;
    background: #1e293b;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* İkonların konumları ve ters dönüşü (ikonlar düz dursun diye) */
.item-msg { top: -20px; left: 50%; transform: translateX(-50%); animation: counterSpin 10s linear infinite; }
.item-user { bottom: 30px; right: 10px; animation: counterSpin 10s linear infinite; }
.item-code { bottom: 30px; left: 10px; animation: counterSpin 10s linear infinite; }

.item-msg i { color: var(--ai-accent); }
.item-user i { color: #38bdf8; }
.item-code i { color: #facc15; }

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counterSpin {
    from { transform: translateX(-50%) rotate(0deg); } /* Sadece msg için translateX gerekli diğerleri için farklı olabilir ama basitleştirdik */
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
/* İkonların kendi ekseninde dönmesini engellemek için daha basit bir trick:
   İkonları direkt animation içinde rotate ettirmek yerine container dönüyor.
   Gelişmiş çözüm için her item'a ayrı keyframe gerekir, şimdilik basit orbit yeterli. */

/* 4. CHAT BALONLARI (Floating Bubbles) */
.chat-bubbles {
    position: absolute;
    width: 100%; height: 100%;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #fff;
    backdrop-filter: blur(4px);
    opacity: 0;
}

.b-left {
    top: 20%; left: 0;
    border-bottom-left-radius: 0;
    animation: bubblePop 4s infinite 0s;
}

.b-right {
    bottom: 20%; right: 0;
    background: var(--ai-primary);
    border-bottom-right-radius: 0;
    animation: bubblePop 4s infinite 2s;
}

@keyframes bubblePop {
    0% { opacity: 0; transform: translateY(10px) scale(0.8); }
    10% { opacity: 1; transform: translateY(0) scale(1); }
    40% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 0; transform: translateY(-10px) scale(0.9); }
    100% { opacity: 0; }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* --- CONTENT SECTION (SPACING & LAYOUT) --- */
.ai-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 */
.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);
    border-color: var(--ai-primary);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.2);
}

.benefit-icon {
    width: 50px; height: 50px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--ai-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 */
.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(139, 92, 246, 0.05);
    border-color: var(--ai-primary);
    transform: scale(1.02);
}

.uc-icon {
    font-size: 2rem;
    color: var(--ai-primary);
    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; }
    
    .ai-anim-box {
        height: 250px;
    }
    
    .orbit-container { width: 180px; height: 180px; }
    
    .benefit-cards-grid { gap: 2rem; margin-bottom: 4rem; }
    .section-heading { margin-bottom: 3rem; margin-top: 3rem; }
}

