/* base.css - Глобальные стили Диванной Разработки V2.0 */

:root {
    --main-dark: #0d1b2a;
    --accent-orange: #ffcc00; 
    --dev-blue: #3b82f6; /* Добавили синий для дева */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html { 
    overflow-y: scroll; 
    scroll-behavior: smooth; 
    height: 100%;
}

body {
    background: radial-gradient(circle at top right, #1b263b, #0d1b2a);
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* КРАСИВЫЙ СКРОЛЛБАР */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0d1b2a; }
::-webkit-scrollbar-thumb {
    background: #1b263b;
    border: 2px solid #0d1b2a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

/* NAVBAR */
.navbar {
    background: rgba(13, 27, 42, 0.9) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    transition: 0.3s;
    z-index: 1000;
}

.navbar-brand {
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    font-weight: 800;
    color: var(--accent-orange) !important;
    letter-spacing: 1px;
}

/* МЕНЮ */
.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 15px !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.nav-link i { font-size: 1.1rem; }
.nav-link:hover {
    color: var(--accent-orange) !important;
    background: rgba(255, 204, 0, 0.05);
}

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

.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link.active {
    color: var(--accent-orange) !important;
    background: rgba(255, 204, 0, 0.08);
}

/* ВЫПАДАЮЩИЕ МЕНЮ */
.dropdown-menu-dark {
    background: rgba(20, 33, 61, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 8px;
    margin-top: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    padding: 8px 15px;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: rgba(255, 204, 0, 0.15) !important;
    color: var(--accent-orange) !important;
    transform: translateX(5px);
}

.dropdown-divider { border-top: 1px solid var(--glass-border); }

/* УВЕДОМЛЕНИЯ */
.notification-bell {
    position: relative;
    padding: 8px 12px;
    color: #ffffff !important;
    font-size: 1.3rem;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
}
.notification-bell:hover { color: var(--accent-orange) !important; }

.notification-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #ff4d4d;
    border-radius: 50%;
    border: 2px solid #0d1b2a;
}

.dropdown-notifications {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}
.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    transition: 0.2s;
    display: block;
    text-decoration: none;
    color: rgba(255,255,255,0.8) !important;
}
.notification-item:hover { background: rgba(255,255,255,0.05); color: #fff !important; }
.notification-item.unread { background: rgba(255, 204, 0, 0.05); border-left: 3px solid var(--accent-orange); }

/* ПРОФИЛЬ */
.profile-link-nav {
    color: #ffffff !important;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 50px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}
.profile-link-nav:hover {
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.12);
}

/* --- КНОПКИ В ШАПКЕ (НЕОН V2) --- */

/* Кнопка "Войти" (ЖЕЛТАЯ СОЛИДНАЯ С НЕОНОМ) */
.btn-login {
    background: #fbbf24 !important;
    color: #000000 !important; 
    font-weight: bold !important;
    border-radius: 50px !important;
    padding: 8px 25px !important;
    border: none !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}
.btn-login:hover {
    background: #ffdb4d !important;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.7) !important;
}

/* Кнопка "Стать хомяком" (СИНЯЯ ОБВОДКА С НЕОНОМ) */
.btn-invite {
    border: 2px solid var(--dev-blue) !important;
    color: var(--dev-blue) !important;
    border-radius: 50px !important;
    padding: 6px 20px !important;
    font-weight: bold !important;
    transition: 0.3s !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    background: transparent !important;
}
.btn-invite:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6) !important;
}


/* --- УНИВЕРСАЛЬНЫЕ КНОПКИ (ДЛЯ ГЛАВНОЙ И ДР. СТРАНИЦ) --- */

/* Кнопка Комьюнити/Вайба (ЖЕЛТАЯ ОБВОДКА) */
.btn-neon-yellow {
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(251, 191, 36, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-neon-yellow:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.4);
    color: #ffdb4d;
    transform: translateY(-2px);
}

/* Кнопка Дев/Идеи (СИНЯЯ ОБВОДКА) */
.btn-neon-blue {
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(59, 130, 246, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-neon-blue:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    transform: translateY(-2px);
}


/* СИСТЕМНЫЕ СТИЛИ */
.alert-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    border-radius: 12px;
}

main { flex: 1 0 auto; padding-top: 20px; }
footer { flex-shrink: 0; margin-top: auto; }

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(13, 27, 42, 0.98);
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        border: 1px solid var(--glass-border);
    }
}

/* --- ПЛАВАЮЩАЯ КНОПКА ОТТО --- */
.otto-terminal-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    color: #64748b;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.otto-terminal-fab .cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #fbbf24;
    margin-left: 5px;
    animation: blink 1s infinite;
}

.otto-terminal-fab:hover {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.15);
    transform: translateY(-3px);
}

.otto-terminal-fab:hover .terminal-text {
    display: none;
}

.otto-terminal-fab:hover .terminal-text-hover {
    display: inline-block;
}

.otto-terminal-fab .terminal-text-hover {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 991px) {
    .otto-terminal-fab {
        bottom: 90px; 
        left: 20px;
        font-size: 0.75rem;
        padding: 8px 15px;
    }
}