/* ── DARK MODE (varsayılan) ── */
:root {
    --bg-primary:    #000000;
    --bg-secondary:  #111118;
    --bg-card:       #16161f;
    --accent:        #7c6af7;
    --accent-light:  #a89cf7;
    --accent-hover:  #6a58e0;
    --accent-glow:   rgba(124, 106, 247, 0.25);
    --text-primary:  #e8e8f0;
    --text-muted:    #7a7a9a;
    --border:        rgba(255, 255, 255, 0.07);
    --border-strong: #3a3a5a;
    --input-bg:      rgba(255, 255, 255, 0.03);
    --placeholder:   #3a3a5a;
    --overlay-bg:    rgba(10, 10, 15, 0.7);
    --overlay-modal: rgba(0, 0, 0, 0.85);
    --overlay-btn:   rgba(255, 255, 255, 0.06);
}

/* ── LIGHT MODE ── */
[data-bs-theme="light"] {
    --bg-primary:    #f2f2f0;
    --bg-secondary:  #eeeef5;
    --bg-card:       #fbfbfc;
    --accent:        #5b4de0;
    --accent-light:  #7c6af7;
    --accent-hover:  #4a3fc8;
    --accent-glow:   rgba(91, 77, 224, 0.15);
    --text-primary:  #1a1a2e;
    --text-muted:    #5a5a7a;
    --border:        rgba(0, 0, 0, 0.08);
    --border-strong: #c0c0d0;
    --input-bg:      rgba(0, 0, 0, 0.03);
    --placeholder:   #a0a0b8;
    --overlay-bg:    rgba(240, 240, 248, 0.85);
    --overlay-modal: rgba(0, 0, 0, 0.6);
    --overlay-btn:   rgba(0, 0, 0, 0.06);
}

/* ── LIGHT MODE — Navbar ── */
[data-bs-theme="light"] .navbar {
    background: rgba(245, 245, 250, 0.85) !important;
}

[data-bs-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 46, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


[data-bs-theme="light"] .navbar-collapse {
    background: rgba(245, 245, 250, 0.95) !important;
}
/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── NAVBAR ── */
.navbar {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 40px rgba(124, 106, 247, 0.08);
}

.navbar-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.03em;
    position: relative;
}

.navbar-brand span {
    color: var(--accent);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after { width: 100%; }

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--accent-glow); }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28232, 232, 240, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* ── THEME TOGGLE ── */
#theme-toggle {
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.3s ease;
    line-height: 1;
}

#theme-toggle:hover {
    color: var(--accent);
    transform: rotate(20deg);
}

/* Mobile nav */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .nav-link::after { display: none; }

    .nav-link {
        border-radius: 8px;
        padding: 0.6rem 1rem !important;
    }

    .nav-link:hover {
        background: rgba(124, 106, 247, 0.1);
    }
}

/* ── CONTENT ── */
.main-content {
    min-height: calc(100vh - 72px);
}

/* ── FOOTER ── */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

/* ── UTILITY ── */
.accent { color: var(--accent); }

.main-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}