/* VEDOMASTER - Tam Kapsamlı Güncel Stil Dosyası */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --koyu-arkaplan: #0f1113;
    /* PHP header'da bu değeri ezebilir, buradaki varsayılan değerdir */
    --ana-renk: #c5a059; 
    --ai-bg-dark: #161616;
    --ai-header-bg: #1c1c1c;
    --ai-body-bg: #0f0f0f;
    /* Yeni Temsilci Renkleri */
    --temsilci-mavi-bg: #007bff;
    --temsilci-mavi-soft: #e7f3ff;
    --temsilci-mavi-yazi: #0056b3;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--koyu-arkaplan);
    font-family: 'Poppins', sans-serif !important;
    color: #fff;
    margin: 0; padding: 0; overflow-x: hidden;
}

/* --- LOGO / TITLE: HER ZAMAN RENKLİ VE BÜYÜYEN --- */
.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow_flow 5s linear infinite;
    text-transform: uppercase;
    display: inline-block;
}

.navbar-brand:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 0; height: 4px; bottom: -5px; left: 0;
    background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    transition: width 0.5s ease-in-out;
    border-radius: 10px;
    opacity: 0;
}

.navbar-brand:hover::after {
    width: 100%;
    opacity: 1;
    animation: rainbow_flow 5s linear infinite;
}

/* --- MENÜ LİNKLERİ --- */
.navbar-nav .nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255, 255, 255, 0.7) !important;
    display: inline-block;
}

.navbar-nav .nav-link:hover {
    transform: scale(1.2);
    color: #fff !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 3px; bottom: 0; left: 0;
    background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    transition: width 0.4s ease-in-out;
    border-radius: 10px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    opacity: 1;
    animation: rainbow_flow 3s linear infinite;
}

/* --- DİNAMİK BUTON VE RENK SINIFLARI --- */
.text-klas { color: var(--ana-renk) !important; }

.btn-klas { 
    background-color: var(--ana-renk) !important; 
    color: #000 !important; 
    border: none; 
    transition: 0.3s;
    font-weight: 600;
}

.btn-klas:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); 
    filter: brightness(1.1);
}

.btn-outline-klas {
    border: 1px solid var(--ana-renk) !important;
    color: var(--ana-renk) !important;
    background: transparent;
    transition: 0.3s;
}

.btn-outline-klas:hover {
    background-color: var(--ana-renk) !important;
    color: #000 !important;
}

.hov-renk { transition: 0.3s; }
.hov-renk:hover { color: var(--ana-renk) !important; }

/* --- HERO TİPOGRAFİ --- */
.hero-title { font-size: 3.5rem; letter-spacing: -1px; line-height: 1.2; }
.hero-subtitle { font-size: 1.35rem; line-height: 1.6; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/* --- ORTAK ANİMASYONLAR --- */
@keyframes rainbow_flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.transition-up { transition: all 0.3s ease; }
.transition-up:hover { transform: translateY(-10px); }

/* --- İÇERİK VE BOŞLUK ÇÖZÜMLERİ --- */
.editor-output { line-height: 1.8 !important; word-wrap: break-word; }
.editor-output p { margin-bottom: 25px !important; display: block !important; }
.editor-output img { max-width: 100%; height: auto; border-radius: 15px; margin: 20px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.editor-output ul, .editor-output ol { margin-bottom: 25px !important; padding-left: 20px; }
.editor-output li { margin-bottom: 10px; }

/* --- FOOTER --- */
.hvr-forward { transition: 0.3s; display: inline-block; }
.hvr-forward:hover { 
    transform: translateX(5px); 
    color: var(--ana-renk) !important; 
    text-shadow: 0 0 10px var(--ana-renk);
}

.page-hero {
    height: 400px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
}

/* --- MODERNIZE EDILMIŞ AI SOHBET TASARIMI --- */
.ai-chat-container { 
    position: fixed; bottom: 30px; right: 30px; z-index: 9999; 
}

.ai-toggle-btn { 
    width: 65px; height: 65px; border-radius: 50%; 
    background: var(--ana-renk); border: none; color: white; 
    font-size: 30px; cursor: pointer; box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4); 
    display: flex; align-items: center; justify-content: center; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.ai-toggle-btn:hover { transform: scale(1.1) rotate(15deg); }

.ai-chat-box { 
    width: 350px; height: 550px; background: var(--ai-bg-dark); 
    border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; 
    position: absolute; bottom: 85px; right: 0; display: none; 
    flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.7); 
}

.ai-chat-header { 
    background: var(--ai-header-bg); padding: 18px; display: flex; 
    justify-content: space-between; align-items: center; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.ai-avatar { 
    position: relative; width: 40px; height: 40px; background: linear-gradient(135deg, var(--ana-renk), #9a7d45); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
}

.online-dot { 
    position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; 
    background: #39ff14; border: 2px solid var(--ai-header-bg); border-radius: 50%; 
}

.ai-chat-body { 
    flex: 1; padding: 20px; overflow-y: auto; display: flex; 
    flex-direction: column; gap: 15px; background: var(--ai-body-bg); 
    scroll-behavior: smooth;
}

/* SOHBET BALONCUKLARI GÜNCELLEMESİ */
.ai-message { 
    max-width: 85%; padding: 12px 16px; font-size: 13.5px; line-height: 1.6; 
    position: relative; transition: 0.3s;
}

/* TEMSİLCİ / BOT (GÜNCELLENEN MAVİ TASARIM) */
.ai-message.bot { 
    background: var(--temsilci-mavi-soft); 
    color: var(--temsilci-mavi-yazi); 
    align-self: flex-start; 
    border-radius: 18px 18px 18px 4px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* KULLANICI (ALTIN RENGİ) */
.ai-message.user { 
    background: var(--ana-renk); 
    color: #000; 
    font-weight: 500;
    align-self: flex-end; 
    border-radius: 18px 18px 4px 18px; 
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.ai-message b {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Alt Bilgilendirme Alanı */
.chat-copyright { 
    padding: 10px 15px; background: var(--ai-bg-dark); 
    border-top: 1px solid rgba(255,255,255,0.03); 
    display: flex; justify-content: space-between; align-items: center; 
    font-size: 11px; color: rgba(255,255,255,0.4); 
}

.chat-copyright a { color: var(--ana-renk); text-decoration: none; font-weight: 600; }

.ai-chat-footer { 
    padding: 15px; background: var(--ai-header-bg); display: flex; 
    gap: 10px; border-top: 1px solid rgba(255,255,255,0.05); 
}

.ai-chat-footer input { 
    flex: 1; background: #0a0a0a; border: 1px solid #333; color: white; 
    padding: 10px 15px; border-radius: 25px; outline: none; font-size: 14px; 
    transition: 0.3s;
}

.ai-chat-footer input:focus { border-color: var(--ana-renk); box-shadow: 0 0 10px rgba(197, 160, 89, 0.2); }

.ai-chat-footer button { 
    background: var(--ana-renk); border: none; color: #000; 
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.3s; font-size: 18px;
}

.ai-chat-footer button:hover { transform: rotate(15deg) scale(1.1); filter: brightness(1.2); }

/* Scrollbar Tasarımı */
.ai-chat-body::-webkit-scrollbar { width: 4px; }
.ai-chat-body::-webkit-scrollbar-track { background: transparent; }
.ai-chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
#messageDisplay {
    height: 400px; /* Pencere boyutu neyse */
    overflow-y: auto; /* Dikey kaydırmayı aktif eder */
}