@import url('portal-theme.css');

/* === PORTAL NAVBAR (лево — как на странице топа, право — уведомления / куратор / профиль) === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 0, 60, 0.15);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo span {
    color: #ff003c;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a8a8b8;
    text-decoration: none;
    transition: 0.3s;
    background: transparent;
    cursor: pointer;
}

.nav-btn:hover,
.nav-btn.active {
    color: #fff;
    background: rgba(255, 0, 60, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: #a8a8b8;
    transition: 0.3s;
}

.action-icon-btn:hover svg {
    fill: #fff;
}

.curator-btn {
    background: #ff003c;
    border-color: #ff003c;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
}

.curator-btn svg {
    fill: #fff;
}

.bell-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    padding: 5px;
}

.bell-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.bell-icon {
    width: 24px;
    height: 24px;
    fill: #8e8e9f;
    transition: fill 0.3s, filter 0.3s;
}

.bell-btn:hover .bell-icon {
    fill: #fff;
    filter: drop-shadow(0 0 8px #fff);
}

.bell-btn.active .bell-icon {
    fill: #ff003c;
    filter: drop-shadow(0 0 8px #ff003c);
}

.bell-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    background-color: #ff003c;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff003c;
    border: 2px solid rgba(10, 10, 12, 0.85);
}

.notif-dropdown {
    position: absolute;
    top: 50px;
    right: -10px;
    width: 340px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 60, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
    overflow: hidden;
    transform-origin: top right;
}

.notif-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 0, 60, 0.05);
}

.notif-title {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notif-read-all {
    font-size: 11px;
    color: #ff003c;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s;
}

.notif-read-all:hover {
    color: #ff4d79;
    text-shadow: 0 0 5px #ff003c;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: #ff003c;
    border-radius: 2px;
}

.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 15px;
    transition: background 0.3s;
    cursor: pointer;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: linear-gradient(90deg, rgba(255, 0, 60, 0.08), transparent);
    border-left: 2px solid #ff003c;
}

.notif-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.notif-item.unread .notif-icon-wrap {
    background: rgba(255, 0, 60, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.notif-icon {
    width: 16px;
    height: 16px;
    fill: #a8a8b8;
}

.notif-item.unread .notif-icon {
    fill: #ff003c;
}

.notif-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notif-subj {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.notif-desc {
    font-size: 12px;
    color: #a8a8b8;
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: rgba(168, 168, 184, 0.72);
    font-weight: 700;
    margin-top: 2px;
}

.notif-empty {
    padding: 28px 20px;
    text-align: center;
    color: #a8a8b8;
    font-size: 13px;
    font-weight: 700;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.profile-container:hover {
    border-color: #ff003c;
    background: rgba(255, 0, 60, 0.05);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
    transform: translateY(-2px);
}

.profile-container.is-active {
    border-color: #ff003c;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
}

.profile-avatar-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.profile-container:hover .profile-avatar-nav {
    border-color: #ff003c;
    box-shadow: 0 0 15px #ff003c;
    transform: scale(1.05);
}

.profile-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-name {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    transition: text-shadow 0.3s;
}

.profile-container:hover .profile-name {
    text-shadow: 0 0 8px #fff;
}

.profile-role {
    font-size: 11px;
    font-weight: 700;
    color: #ff003c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-arrow {
    width: 12px;
    height: 12px;
    fill: #8e8e9f;
    transition: all 0.4s ease;
    margin-left: 5px;
    flex-shrink: 0;
}

.profile-container:hover .profile-arrow {
    fill: #ff003c;
    transform: rotate(180deg);
}

.nav-more {
    position: relative;
}

.nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-more-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nav-more.is-open .nav-more-btn::after {
    transform: rotate(180deg);
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 18, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    animation: navMoreIn 0.18s ease-out;
}

@keyframes navMoreIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-more.is-open .nav-more-menu {
    display: flex;
}

.nav-more-item {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #8e8e9f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: 0.2s;
}

.nav-more-item:hover,
.nav-more-item.active {
    color: #fff;
    background: rgba(255, 0, 60, 0.1);
    border-color: rgba(255, 0, 60, 0.25);
}

.admin-gear-container {
    position: relative;
}

.admin-gear-btn .gear-icon {
    transition: fill 0.3s, transform 0.3s;
}

.admin-gear-btn:hover .gear-icon,
.admin-gear-container.is-open .admin-gear-btn .gear-icon {
    fill: #fff;
    animation: adminGearSpin 2.8s linear infinite;
}

.admin-gear-btn.active {
    border-color: rgba(255, 0, 60, 0.45);
    background: rgba(255, 0, 60, 0.12);
    box-shadow: 0 0 14px rgba(255, 0, 60, 0.35);
}

.admin-gear-btn.active .gear-icon {
    fill: #ff003c;
}

@keyframes adminGearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-gear-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 18, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 0, 60, 0.18);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    animation: navMoreIn 0.18s ease-out;
}

.admin-gear-container.is-open .admin-gear-menu {
    display: flex;
}

.admin-gear-header {
    padding: 8px 12px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8e8e9f;
}

.admin-gear-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.admin-gear-item svg {
    width: 20px;
    height: 20px;
    fill: #8e8e9f;
    flex-shrink: 0;
    transition: fill 0.2s;
}

.admin-gear-item span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-gear-item strong {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.admin-gear-item small {
    font-size: 11px;
    font-weight: 600;
    color: #8e8e9f;
}

.admin-gear-item:hover,
.admin-gear-item.active {
    background: rgba(255, 0, 60, 0.1);
    border-color: rgba(255, 0, 60, 0.25);
}

.admin-gear-item:hover svg,
.admin-gear-item.active svg {
    fill: #ff003c;
}

@media (max-width: 900px) {
    .profile-info,
    .profile-arrow {
        display: none;
    }

    .profile-container {
        padding: 5px;
    }
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, #8b0021, #ff003c);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 0, 60, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.nav-auth-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.nav-auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }
}
