body.ff-body { font-family: 'Nunito Sans', sans-serif; background: #030806 !important; color: #e8f5ec; }
.ff-brand { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; color: #4ade80; }

.ff-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .ff-shell { grid-template-columns: 16rem 1fr; }
}

.ff-sidebar {
    flex-direction: column;
    background: #050d08;
    border-right: 1px solid rgba(255,255,255,0.05);
}
@media (min-width: 1024px) {
    .ff-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 50;
    }
}

.ff-sidebar-link {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    margin-bottom: 2px;
    cursor: pointer;
    text-decoration: none;
}
.ff-sidebar-link:hover, .ff-sidebar-link.active {
    color: #bbf7d0;
    background: rgba(34,197,94,0.08);
    border-left-color: #22c55e;
}

.ff-main {
    min-width: 0;
    padding-top: 4rem;
    position: relative;
    z-index: 1;
}
@media (min-width: 1024px) {
    .ff-main { padding-top: 0; }
}

.ff-mobile-header {
    background: rgba(3,8,6,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
}
.ff-page-main { padding: 1.5rem; }
@media (min-width: 1024px) { .ff-page-main { padding: 2rem 2.5rem; } }
.ff-footer { border-top: 1px solid rgba(255,255,255,0.05); background: #050d08; padding: 2.5rem 1.5rem; margin-top: 3rem; }
.navbar.fixed { display: none !important; }
#snowflakes { display: none !important; }

/* Discord giris — sag ust sabit */
.ff-discord-login-float {
    position: fixed;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    border-radius: 0.5rem;
    background: #5865F2;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Nunito Sans', system-ui, sans-serif;
}
.ff-discord-login-float:hover {
    background: #4752C4;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}
.ff-discord-login-float svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
@media (max-width: 1023px) {
    .ff-discord-login-float {
        top: 0.65rem;
        right: 3.35rem;
        padding: 0.34rem 0.55rem;
        font-size: 0.65rem;
    }
    .ff-discord-login-float span {
        display: none;
    }
}
@media (min-width: 1024px) {
    .ff-discord-login-float {
        top: 0.85rem;
        right: 1rem;
    }
}

/* ────────────────────────────────────────────
   Auth Widget — sağ üst köşe (giriş / kullanıcı)
   ──────────────────────────────────────────── */
.ff-auth-widget {
    position: fixed;
    top: 0.65rem;
    right: 0.7rem;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Kullanıcı bilgisi */
.ff-auth-user {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(5, 13, 8, 0.92);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 2rem;
    padding: 0.28rem 0.65rem 0.28rem 0.35rem;
    backdrop-filter: blur(8px);
}
.ff-auth-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.ff-auth-avatar-icon {
    width: 18px;
    height: 18px;
    color: #4ade80;
    flex-shrink: 0;
}
.ff-auth-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #bbf7d0;
    letter-spacing: 0.01em;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Nunito Sans', system-ui, sans-serif;
}

/* Çıkış butonu */
.ff-auth-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.ff-auth-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}
.ff-auth-logout svg {
    width: 13px;
    height: 13px;
}

/* Mobil uyum */
@media (max-width: 1023px) {
    .ff-auth-widget {
        top: 0.6rem;
        right: 3.2rem;
    }
    .ff-auth-name { max-width: 72px; }
}
@media (min-width: 1024px) {
    .ff-auth-widget {
        top: 0.85rem;
        right: 1rem;
    }
}
