@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700&family=Exo+2:wght@400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #050510;
    color: #e0e0ff;
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.65;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* ----- НАВИГАЦИЯ (только иконки) ----- */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
    position: relative;
}

.nav-link {
    font-family: 'Unbounded', sans-serif;
    color: #aaccff;
    text-decoration: none;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 150, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 180, 255, 0.2);
    transition: 0.3s;
    cursor: pointer;
}
.nav-link:hover {
    border-color: #00ccff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
    color: #fff;
}

/* Поиск */
.search-toggle {
    background: transparent;
    border: 1px solid rgba(100, 180, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    color: #aaccff;
    cursor: pointer;
    transition: 0.3s;
}
.search-toggle:hover {
    border-color: #00ccff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
    color: #fff;
}

.search-panel {
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    max-width: calc(100vw - 2rem);
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    padding: 0.8rem;
    z-index: 100;
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}
.search-panel.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.search-panel .search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.search-panel input {
    flex: 1;
    padding: 0.6rem 1rem;
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}
.search-panel input:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
}
.search-panel button.nav-link {
    width: 40px;
    height: 40px;
    margin: 0;
}

/* Уведомления */
.notifications-bell {
    position: relative;
    display: inline-block;
}
.notifications-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4466;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    text-align: center;
    line-height: 18px;
}
#notifications-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 300px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 101;
    background: rgba(10,15,30,0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #0ff;
    border-radius: 16px;
    padding: 1rem;
    display: none;
}
#notifications-dropdown ul {
    list-style: none;
    padding: 0;
}
#notifications-dropdown li a {
    color: #e0e0ff;
    text-decoration: none;
    display: block;
    padding: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
#notifications-dropdown li a:hover {
    color: #0ff;
}

/* Герой */
.hero {
    text-align: center;
    margin-top: 2rem;
}
.glitch-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px #0ff, 0 0 30px #0af;
    animation: glitch 2s infinite;
}
@keyframes glitch {
    0% { text-shadow: 2px 2px #f0f, -2px -2px #0ff; }
    25% { text-shadow: -2px 2px #0ff, 2px -2px #f0f; }
    50% { text-shadow: 2px -2px #0ff, -2px 2px #f0f; }
    75% { text-shadow: -2px -2px #f0f, 2px 2px #0ff; }
    100% { text-shadow: 2px 2px #f0f, -2px -2px #0ff; }
}
.slogan {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.2rem;
    color: #aaccff;
    margin: 0.5rem 0 2rem;
    letter-spacing: 0.1em;
}

.future-clock {
    font-family: 'Courier New', monospace;
    font-size: 2.2rem;
    color: #0ff;
    background: rgba(0, 20, 40, 0.7);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    margin: 2rem 0;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 2rem;
}
.glass-card {
    background: rgba(10, 15, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
.glass-card:hover {
    border-color: #0ff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.echo-message.glass-card {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.echo-message.glass-card:hover {
    transform: none;
}

/* Реакции */
.reactions-section {
    margin-bottom: 2rem;
}
.react-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.react-btn {
    background: transparent;
    border: 1px solid rgba(0,255,255,0.5);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    color: #0ff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}
.react-btn.active {
    border-color: #0ff;
    box-shadow: 0 0 10px #0ff;
    background: rgba(0,255,255,0.1);
}
.react-btn span {
    margin-left: 0.3rem;
}

.echo-actions-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.share-block {
    position: relative;
}
.share-menu {
    position: absolute;
    top: 120%;
    left: 0;
    display: none;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem;
    z-index: 10;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}
.share-menu.glass-card:hover {
    transform: none;
}
.share-menu a, .share-menu button {
    color: #0ff;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
}
.share-menu a:hover, .share-menu button:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.icon {
    font-size: 2.5rem;
    color: #0ff;
    display: block;
    margin-bottom: 0.5rem;
}
.card-title {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #0ff;
}
.card-desc {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: #aaccff;
    line-height: 1.4;
}

.btn-glow {
    font-family: 'Unbounded', sans-serif;
    display: inline-block;
    background: transparent;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    font-weight: bold;
}
.btn-glow:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 25px #0ff;
}
.btn-glow.small {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
}
.btn-glow.delete {
    border-color: #ff4466;
    color: #ff4466;
}
.btn-glow.delete:hover {
    background: rgba(255, 68, 102, 0.15);
    box-shadow: 0 0 15px #ff4466;
}

.manifesto {
    margin-top: 4rem;
    font-style: italic;
    color: #8899cc;
    font-size: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding-top: 2rem;
    line-height: 1.6;
}

/* Формы */
.form-card {
    max-width: 500px;
    margin: 2rem auto;
}
label {
    display: block;
    margin: 1rem 0 0.3rem;
    color: #aaccff;
    font-size: 0.9rem;
}
input, textarea {
    width: 100%;
    padding: 0.7rem;
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid rgba(0, 200, 255, 0.4);
    color: #fff;
    border-radius: 8px;
    font-family: 'Exo 2', sans-serif;
    transition: 0.3s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkbox-label input {
    width: auto;
}

.form-hint {
    text-align: center;
    margin-top: 1rem;
    color: #8899cc;
    font-size: 0.95rem;
}
.form-hint a {
    color: #0ff;
    text-decoration: none;
    font-weight: 500;
}
.form-hint a:hover {
    text-shadow: 0 0 8px #0ff;
}

/* Алерты */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}
.error { background: rgba(255, 50, 50, 0.2); border: 1px solid #f55; color: #faa; }
.success { background: rgba(50, 255, 100, 0.2); border: 1px solid #5f5; color: #afa; }

/* Списки эх */
.echo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.echo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
}
.echo-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.echo-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.private-badge {
    font-size: 0.8rem;
    color: #aaccff;
    background: rgba(0, 200, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.inline-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.inline-form input {
    flex: 1;
}

.empty-message {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    color: #aaccff;
}
.empty-message a {
    color: #0ff;
    text-decoration: none;
    font-weight: 500;
}
.empty-message a:hover {
    text-shadow: 0 0 8px #0ff;
}

/* Профиль */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.profile-avatar {
    font-size: 6rem;
    color: #0ff;
}
.profile-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0ff;
}
.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin: 0.8rem 0;
    color: #aaccff;
    font-size: 0.95rem;
}
.subscribed {
    background: rgba(0,255,255,0.15);
}

.avatar-upload {
    margin-top: 0.8rem;
    text-align: center;
}
.avatar-upload label.btn-glow {
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    display: inline-block;
    margin-top: 0.3rem;
}

/* Титулы и достижения */
.profile-title {
    font-size: 1.3rem;
    color: #ffd700;
    margin: 0.5rem 0;
    font-weight: bold;
}
.achievements-list {
    margin-top: 0.5rem;
}
.badge-item {
    font-size: 1.5rem;
    margin-right: 0.3rem;
    cursor: help;
    color: #ffd700;
}

/* Комментарии */
.comments-section {
    margin-top: 2rem;
}
.comment.glass-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.comment.glass-card:hover,
.comment-form.glass-card:hover {
    transform: none;
}
.comment-avatar {
    font-size: 2.5rem;
    color: #0ff;
    flex-shrink: 0;
}
.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-body strong {
    color: #fff;
}
.comment-date {
    font-size: 0.8rem;
    color: #8899cc;
    margin-left: 1rem;
}
.comment-form textarea {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .main-nav { gap: 0.5rem; margin-bottom: 2rem; }
    .nav-link { width: 40px; height: 40px; font-size: 1.2rem; }
    .glitch-text { font-size: 3rem; }
    .future-clock { font-size: 1.6rem; padding: 0.6rem 1.5rem; }
    .nav-grid { grid-template-columns: 1fr; gap: 1rem; }
    .btn-glow { padding: 0.7rem 2rem; font-size: 1rem; }
    .echo-item { flex-direction: column; align-items: flex-start; }
    .echo-actions { width: 100%; justify-content: flex-end; }
    .profile-header { flex-direction: column; text-align: center; }
    .echo-actions-bar { flex-direction: column; align-items: flex-start; }
    .search-panel { right: auto; left: 0; width: 100%; }
}

@media (max-width: 480px) {
    .glitch-text { font-size: 2.5rem; }
    .slogan { font-size: 1rem; }
    .future-clock { font-size: 1.3rem; padding: 0.5rem 1rem; }
    .btn-glow { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
    .glass-card { padding: 1.5rem 1rem; }
    h2 { font-size: 1.5rem; }
    .echo-item { padding: 1rem; }
}