/* AV. FATİH TURAN - FINAL MASTER CSS (V19.0 - ASISTAN & RANDEVU) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --lacivert: #002855;
    --bej-header: #f9f9f7;
    --altin: #c5a059;
    --beyaz: #ffffff;
    --gri-metin: #333;
    --footer-bg: #00152a;
    --bg-body: #ffffff;
    --bg-light: #fcfcfc;
}

/* GECE MODU */
[data-theme="dark"] {
    --lacivert: #e0e0e0;
    --bej-header: #0b1120;
    --beyaz: #111827;
    --gri-metin: #d1d5db;
    --bg-body: #020617;
    --footer-bg: #000000;
    --bg-light: #0f172a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gri-metin);
    background-color: var(--bg-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    animation: pageEntry 0.6s ease-out;
}
@keyframes pageEntry { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- TURAN ASSISTANT (CHATBOT) STİLLERİ --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: var(--lacivert);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    position: relative;
}

.chat-toggle-btn:hover { transform: scale(1.1); }
.chat-toggle-btn i { color: var(--altin); font-size: 28px; }

/* Konuşma Balonu (Selamlama) */
.chat-greeting {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 220px;
    font-size: 0.85rem;
    display: none; /* JS ile açılacak */
    animation: fadeIn 0.5s;
}
.chat-greeting::after {
    content: ''; position: absolute; bottom: -6px; right: 20px;
    width: 0; height: 0; 
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #fff;
}

/* Chat Penceresi */
.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}
[data-theme="dark"] .chat-box, [data-theme="dark"] .chat-greeting { background: #1f2937; color: #fff; border-color: #374151; }
[data-theme="dark"] .chat-greeting::after { border-top-color: #1f2937; }

.chat-header {
    background: var(--lacivert);
    color: #fff;
    padding: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-body {
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
    font-size: 0.9rem;
}
.chat-msg { margin-bottom: 10px; padding: 10px; border-radius: 8px; }
.chat-msg.bot { background: #f4f4f0; color: #333; border-left: 3px solid var(--altin); }
.chat-msg.user { background: var(--lacivert); color: #fff; text-align: right; align-self: flex-end; }

.chat-options button {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: transparent;
    border: 1px solid var(--altin);
    color: var(--gri-metin);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}
[data-theme="dark"] .chat-options button { color: #fff; }
.chat-options button:hover { background: var(--altin); color: #002855; }


/* --- DİĞER MEVCUT STİLLER (KORUNDU) --- */
@keyframes deepOcean { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
header { background-color: var(--bej-header); padding: 15px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--lacivert); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
[data-theme="dark"] header { border-bottom-color: var(--altin); }

.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; }
.header-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.brand-area { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--lacivert); flex-shrink: 0; }
.brand-area img { height: 55px; width: auto; mix-blend-mode: multiply; }
[data-theme="dark"] .brand-area img { mix-blend-mode: normal; filter: brightness(0) invert(1); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-size: 1.2rem; font-weight: 800; color: var(--lacivert); text-transform: uppercase; letter-spacing: -0.5px; }
.brand-text .title { font-size: 0.7rem; color: var(--altin); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.header-right { display: flex; align-items: center; gap: 25px; }
.desktop-nav ul { display: flex; gap: 25px; margin: 0; padding: 0; }
.desktop-nav a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--lacivert); padding: 5px 0; white-space: nowrap; }
.desktop-nav a:hover { color: var(--altin); }

.theme-toggle { background: none; border: 1px solid var(--lacivert); border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--lacivert); transition: 0.3s; }
.theme-toggle:hover { background: var(--altin); color: #fff; border-color: var(--altin); }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--lacivert); cursor: pointer; margin-left: 15px; }

.hero { min-height: 65vh; background: linear-gradient(-45deg, #002855, #00152a, #003366, #004080); background-size: 400% 400%; animation: deepOcean 15s ease infinite; display: flex; align-items: center; color: #ffffff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('banner.jpg') center/cover; opacity: 0.3; mix-blend-mode: overlay; z-index: 0; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; }
@keyframes titleSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); animation: titleSlideUp 0.8s ease-out forwards; }
.hero p { font-size: 1.2rem; border-left: 4px solid var(--altin); padding-left: 20px; max-width: 700px; color: #eee; background: rgba(0,0,0,0.2); backdrop-filter: blur(5px); }

.btn { display: inline-block; background-color: var(--altin); color: #002855; padding: 15px 35px; font-weight: 700; text-transform: uppercase; border-radius: 4px; font-size: 0.9rem; margin-top: 25px; border: none; cursor: pointer; transition: transform 0.2s; }
.btn:hover { background-color: #fff; transform: translateY(-3px); }

section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
h2.section-heading { font-size: 2rem; color: var(--lacivert); font-weight: 700; margin-bottom: 40px; position: relative; display: inline-block; }
h2.section-heading::after { content: ''; display: block; width: 60px; height: 3px; background: var(--altin); margin: 10px 0 0 0; }

/* TAB TASARIMI */
.tab-nav { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.tab-btn { background: none; border: none; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 600; color: #888; padding: 15px 20px; cursor: pointer; position: relative; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.tab-btn:hover { color: var(--altin); }
.tab-btn.active { color: var(--lacivert); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background-color: var(--altin); }
[data-theme="dark"] .tab-btn.active { color: #fff; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* KARTLAR */
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.card { background: var(--beyaz); padding: 30px; border: 1px solid rgba(0,0,0,0.1); border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: 0.3s; }
.card:hover { border-top: 4px solid var(--altin); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card h3 { color: var(--lacivert); margin-bottom: 15px; font-size: 1.3rem; }
.card i { font-size: 2rem; color: var(--altin); margin-bottom: 15px; }
.card p, .card ul li { color: var(--gri-metin); }

.article-preview { background: var(--beyaz); padding: 30px; border: 1px solid var(--border-color); transition: 0.3s; position: relative; overflow: hidden; }
.article-preview:hover { border-color: var(--lacivert); transform: translateY(-5px); }
.article-tag { font-size: 0.75rem; color: var(--altin); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 10px; }
.article-link { color: var(--lacivert); font-weight: 600; font-size: 0.9rem; text-decoration: underline; }

.contact-info a { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 1.1rem; color: var(--lacivert); transition: 0.3s; }
.contact-info a:hover { color: var(--altin); transform: translateX(5px); }
form input, form textarea, form select { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ccc; background: var(--bg-light); color: var(--gri-metin); font-family: inherit; }
form button { width: 100%; }

/* FOOTER */
footer { background-color: var(--footer-bg); color: rgba(255,255,255,0.7); padding: 60px 0 20px; margin-top: auto; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--altin); }
.footer-bottom { text-align: center; margin-top: 20px; font-size: 0.8rem; }

#special-banner { display: none; width: 100%; text-align: center; padding: 12px 0; font-size: 0.95rem; font-weight: 700; z-index: 2000; color: #fff; }
#special-banner.national { background-color: #E30A17; box-shadow: 0 2px 10px rgba(227, 10, 23, 0.3); }
#special-banner.memorial { background-color: #000000; border-bottom: 1px solid #333; }
#special-banner.maritime { background-color: #002855; color: #c5a059; border-bottom: 2px solid #c5a059; }
#special-banner.personal { background-color: #f4f4f0; color: #002855; border-bottom: 2px solid #002855; }
body.grayscale-mode { filter: grayscale(100%); -webkit-filter: grayscale(100%); }
body.grayscale-mode #special-banner { filter: none; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .desktop-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--bej-header); padding: 20px; border-bottom: 2px solid var(--altin); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
    .desktop-nav.active { display: block; animation: slideDown 0.3s ease; }
    .desktop-nav ul { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 2rem; }
    .grid-2, .grid-3, .contact-wrapper, .footer-row { display: flex; flex-direction: column; gap: 40px; } 
    .header-right { gap: 10px; }
    .brand-text .title { display: none; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
}