/* =========================================
   0. KRİTİK AYARLAR (DİL GİZLEME)
   ========================================= */
html[lang="tr"] .lang-en { display: none !important; }
html[lang="en"] .lang-tr { display: none !important; }

/* Dil Geçiş Animasyonu */
.lang-tr, .lang-en { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   1. TEMEL DEĞİŞKENLER & RESET
   ========================================= */
:root {
    --bg-body: #050505;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent: #5865F2;
    --accent-hover: #4752c4;
    --gradient-1: #5865F2;
    --gradient-2: #eb459e;
    --nav-bg: rgba(12, 12, 14, 0.8);
    --nav-border: rgba(255, 255, 255, 0.08);
    --font-main: 'General Sans', sans-serif;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-glass: #f3f4f6;
    --border-glass: #e5e7eb;
    --text-main: #111827;
    --text-muted: #4b5563;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-border: #e5e7eb;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* LOADER */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050505; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-icon { font-size: 3rem; color: var(--accent); animation: pulse 1.5s infinite; margin-bottom: 20px; }
.loaded #loader { opacity: 0; visibility: hidden; }

/* NOISE BACKGROUND */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJub2lzZUZpbHRlciI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2VGaWx0ZXIpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    opacity: 0.04; pointer-events: none; z-index: 99;
}

/* =========================================
   2. HEADER (FLOATING ISLAND)
   ========================================= */
.nav-wrapper {
    position: fixed; top: 20px; left: 0; width: 100%;
    display: flex; justify-content: center; z-index: 1000;
}
.floating-header {
    background: var(--nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nav-border);
    padding: 12px 25px; border-radius: 100px;
    display: flex; align-items: center; justify-content: space-between;
    width: 90%; max-width: 1100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.brand-container { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; min-width: 150px; }
.brand-icon { color: var(--accent); } .dot { color: #eb459e; }

.center-nav { display: flex; gap: 25px; justify-content: center; }
.nav-item {
    text-decoration: none; color: var(--text-muted);
    font-size: 0.95rem; font-weight: 500; transition: 0.3s;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.nav-item:hover, .nav-item.active { color: var(--text-main); }

.right-actions { display: flex; align-items: center; gap: 10px; min-width: 150px; justify-content: flex-end; }
.theme-switch, .lang-switch {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-main); transition: 0.3s; font-weight: 700; font-size: 0.8rem;
}
.discord-btn {
    background: var(--accent); color: white; text-decoration: none;
    padding: 10px 24px; border-radius: 50px; font-weight: 600;
    font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
    transition: 0.3s; white-space: nowrap;
}

/* =========================================
   3. INDEX SAYFASI ÖZEL STİLLERİ
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HERO */
.hero { padding: 180px 0 100px; min-height: 90vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: rgba(88, 101, 242, 0.1); border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 30px; color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 25px;
}
.status-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.glitch-title { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 20px; }
.highlight { background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.cta-group { display: flex; gap: 15px; margin-top: 30px; }
.primary-btn { background: var(--text-main); color: var(--bg-body); padding: 16px 32px; border-radius: 14px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.secondary-btn { background: var(--bg-glass); color: var(--text-main); border: 1px solid var(--border-glass); padding: 16px 32px; border-radius: 14px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }

/* HERO VISUAL */
.glass-mockup { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-glass); border-radius: 24px; padding: 25px; transform: rotate(-3deg); box-shadow: var(--card-shadow); }
.chat-row { display: flex; gap: 15px; margin-bottom: 20px; }
.chat-row .avatar { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: grid; place-items: center; color: white; }
.chat-row.bot .msg { background: rgba(128,128,128,0.1); padding: 12px 18px; border-radius: 0 16px 16px 16px; color: var(--text-main); }
.msg-embed { background: rgba(0,0,0,0.2); border-radius: 6px; display: flex; border-left: 4px solid var(--accent); padding: 15px; }

/* STATS */
.stats-strip { padding: 60px 0; border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); background: rgba(128,128,128,0.02); }
.stats-grid { display: flex; justify-content: space-around; align-items: center; text-align: center; }
.stat-item h3 { font-size: 3rem; font-weight: 800; color: var(--text-main); }
.stat-divider { width: 1px; height: 50px; background: var(--border-glass); }

/* FEATURES (GRID FIX) */
.features-section { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 80px; }
.section-head h2 { font-size: 3rem; margin-bottom: 15px; }
.feature-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 25px; height: 420px; }
.feat-card {
    background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 24px; padding: 40px;
    display: flex; flex-direction: column; justify-content: flex-end; transition: 0.4s ease; box-shadow: var(--card-shadow); position: relative; overflow: hidden;
}
.feat-card:hover { transform: translateY(-10px); border-color: rgba(128,128,128,0.3); }
.feat-card.large { grid-column: span 1; grid-row: span 2; }
.card-bg-glow { position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; filter: blur(80px); opacity: 0.2; }
.card-bg-glow.blue { background: var(--gradient-1); } .card-bg-glow.pink { background: var(--gradient-2); }
.feat-icon { font-size: 2.5rem; margin-bottom: auto; color: var(--text-main); z-index: 2; }

/* STEPS */
.steps-section { padding: 100px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.step-card { background: var(--bg-glass); border: 1px solid var(--border-glass); padding: 40px 30px; border-radius: 24px; position: relative; transition: 0.3s; }
.step-number { font-size: 4rem; font-weight: 900; color: var(--border-glass); position: absolute; top: 10px; right: 20px; opacity: 0.5; }
.step-icon { width: 60px; height: 60px; background: var(--accent); border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: white; margin-bottom: 20px; }

/* FAQ (FIXED) */
.faq-section { padding: 100px 0; background: rgba(128,128,128,0.02); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 16px; margin-bottom: 15px; overflow: hidden; transition: all 0.3s ease; position: relative; z-index: 10; }
.faq-question { width: 100%; text-align: left; padding: 20px 25px; background: transparent; border: none; color: var(--text-main); font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; outline: none; position: relative; z-index: 20; }
.faq-question::after { content: '+'; font-size: 1.8rem; color: var(--accent); transition: 0.3s; line-height: 1; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 25px; opacity: 0; transition: all 0.4s ease; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 1000px; padding-bottom: 25px; opacity: 1; }

/* =========================================
   4. PRIVACY SAYFASI (GITHUB STYLE)
   ========================================= */
.legal-wrapper { padding-top: 140px; padding-bottom: 100px; max-width: 1400px; margin: 0 auto; }
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 60px; padding: 0 20px; align-items: start; }

/* Sidebar */
.legal-sidebar { position: sticky; top: 140px; height: calc(100vh - 160px); overflow-y: auto; padding-right: 20px; border-right: 1px solid var(--border-glass); }
.legal-sidebar::-webkit-scrollbar { width: 4px; } .legal-sidebar::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 2px; }

.nav-group-title { font-size: 0.75rem; font-weight: 900; letter-spacing: 1.5px; color: var(--text-main); margin-top: 35px; margin-bottom: 10px; opacity: 0.6; text-transform: uppercase; }
.nav-group-title:first-child { margin-top: 0; }

.legal-nav a { display: block; padding: 10px 15px; font-size: 0.95rem; color: var(--text-muted); text-decoration: none; border-left: 3px solid transparent; margin-bottom: 4px; transition: all 0.2s ease; border-radius: 0 6px 6px 0; }
.legal-nav a:hover { color: var(--text-main); background: var(--bg-glass); }
.legal-nav a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(88,101,242,0.08); font-weight: 600; }

/* Content */
.legal-content-area { min-width: 0; }
.legal-section { scroll-margin-top: 150px; margin-bottom: 80px; padding-bottom: 60px; border-bottom: 1px solid var(--border-glass); }
.legal-section:last-child { border-bottom: none; }

.legal-section h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; color: var(--text-main); line-height: 1.1; }
.legal-section h2 { font-size: 2rem; margin-top: 50px; margin-bottom: 25px; color: var(--text-main); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.legal-section p, .legal-section li { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 15px; }
.legal-section ul { margin-left: 20px; list-style-type: disc; color: var(--text-muted); }

.highlight-box { background: rgba(88, 101, 242, 0.1); border: 1px solid rgba(88, 101, 242, 0.3); border-radius: 12px; padding: 25px; margin: 30px 0; color: #ffffff !important; }
.last-updated { display: block; font-family: monospace; color: var(--text-muted); margin-bottom: 30px; opacity: 0.8; font-size: 0.9rem; }

/* =========================================
   5. TRIBUTE & FOOTER
   ========================================= */
.tribute-section { padding: 80px 0; }
.tribute-card {
    height: 500px; border-radius: 30px; overflow: hidden; position: relative;
    background-color: #111; background-size: cover; background-position: center 30%;
    display: flex; align-items: flex-end; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tribute-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); z-index: 1; }
.tribute-text-content { position: relative; z-index: 2; padding: 60px; max-width: 800px; }

.mega-footer { padding: 80px 0 30px; border-top: 1px solid var(--border-glass); margin-top: 100px; background: var(--bg-glass); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-brand h2 { font-size: 2rem; margin-bottom: 15px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); display: grid; place-items: center; border-radius: 50%; color: var(--text-main); transition: 0.3s; border: 1px solid var(--border-glass); }
.social-links a:hover { background: var(--accent); color: white; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; color: var(--text-main); font-weight: 700; }
.footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom { border-top: 1px solid var(--border-glass); padding-top: 30px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem; }
.redo-signature { font-weight: 900; background: linear-gradient(45deg, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* MOBİL UYUM */
@media (max-width: 968px) {
    .hero-grid, .stats-grid, .feature-grid, .steps-grid, .legal-layout, .footer-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 3rem; } .hero-visual, .center-nav, .legal-sidebar, .stat-divider { display: none; }
    .nav-wrapper { padding: 0 10px; }
}