/* ===== STYLE.CSS - НАВИГАЦИЯ И LAYOUT ПОЛЬЗОВАТЕЛЯ ===== */

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: var(--blur);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
    /* Не даём заголовку переноситься в 3 строки на узких экранах */
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover {
    opacity: 0.8;
    color: var(--orange);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--orange-light);
    color: var(--orange);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    gap: 1.5rem; /* увеличенный gap для красоты */
    list-style: none;
    margin: 0; /* убираем margin-left */
}

.nav-link {
    color: var(--text-soft);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--orange);
    background: var(--orange-light);
}

.nav-link.active {
    color: var(--orange);
    background: var(--orange-light);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== КНОПКИ НАВИГАЦИИ ===== */
.btn-create {
    background: var(--orange);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.2);
}

.btn-create:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
    color: white;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-login:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-soft);
}

.icon-btn {
    color: var(--text-soft);
    font-size: 1.2rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.icon-btn:hover {
    color: var(--orange);
    background: var(--orange-light);
}

/* ===== ПРОФИЛЬ ДРОПДАУН ===== */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    background: var(--black-lighter);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.profile-btn:hover {
    background: var(--gray);
    border-color: var(--orange);
}

.profile-btn i:first-child {
    font-size: 1.2rem;
    color: var(--orange);
}

.profile-btn i:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.profile-btn:hover i:last-child {
    color: var(--orange);
}

.profile-name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--black-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--text);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    width: 100%;
    border: none;
    background: none;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--gray);
    color: var(--orange);
}

.dropdown-item i {
    width: 1.2rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.dropdown-item:hover i {
    color: var(--orange);
}

.dropdown-item.text-danger {
    color: var(--status-danger);
}

.dropdown-item.text-danger i {
    color: var(--status-danger);
}

.dropdown-item.text-danger:hover {
    background: var(--status-danger);
    color: white;
}

.dropdown-item.text-danger:hover i {
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.verified-icon {
    color: var(--orange) !important;
    margin-left: auto;
    font-size: 0.9rem !important;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* ===== СООБЩЕНИЯ ===== */
.messages {
    margin-bottom: 2rem;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--black);
    border-top: 2px solid var(--border);
    padding: 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .nav-list {
        margin-left: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--black);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        margin-left: 0;
        gap: 0.25rem;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 1rem;
    }

    .nav-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .profile-dropdown {
        width: 100%;
    }

    .profile-btn {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border-light);
        background: var(--black-light);
        margin-top: 0.5rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    .main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .btn-create span, .btn-login span {
        display: none;
    }

    .btn-create, .btn-login {
        padding: 0.5rem;
    }

    .profile-name {
        max-width: 80px;
    }
}

@media (max-width: 360px) {
    /* Совсем узкие экраны (старые телефоны портретно) — лого в одну строку */
    .nav-logo {
        font-size: 0.95rem;
        letter-spacing: -0.3px;
    }
}


/* ===== FOOTER ENHANCEMENTS ===== */
.footer {
    background: var(--black);
    border-top: 2px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--orange);
    transform: translateX(3px);
}

.footer-link i {
    font-size: 1.1rem;
    color: var(--orange);
}

.footer-trademark {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-link {
        justify-content: center;
    }
}