:root {
    --bg-color: #0b0c10;
    --surface: #1f2833;
    --text-main: #c5c6c7;
    --text-bright: #ffffff;
    --neon-cyan: #66fcf1;
    --neon-cyan-dim: #45a29e;
    --neon-pink: #ff00ff;
    --glass-bg: rgba(31, 40, 51, 0.7);
    --glass-border: rgba(102, 252, 241, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(102, 252, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Typography & Neon */
.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(102, 252, 241, 0.5), 0 0 20px rgba(102, 252, 241, 0.3);
}

a {
    color: var(--neon-cyan-dim);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--neon-cyan);
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--neon-cyan);
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-outline:hover {
    background: rgba(102, 252, 241, 0.1);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

.btn-primary {
    background: var(--neon-cyan);
    border: none;
    color: var(--bg-color);
}

.btn-glow:hover {
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Feed Container */
.feed-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Post Card */
.post {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink));
    margin-right: 1rem;
}

.author-info h3 {
    color: var(--text-bright);
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.author-info span {
    font-size: 0.8rem;
    color: #888;
}

.post-title {
    color: var(--text-bright);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Image Container */
.meme-image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(102, 252, 241, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: #000;
}

.meme-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post:hover .meme-image {
    transform: scale(1.02);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    font-family: inherit;
}

.action-btn:hover {
    color: var(--neon-pink);
}

.post-tag {
    color: var(--neon-cyan-dim);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.post-tag:hover {
    color: var(--neon-cyan);
}

.post-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.mock-comment {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.mock-comment strong {
    color: var(--text-bright);
}

.view-all-comments {
    color: var(--neon-cyan-dim);
    font-size: 0.85rem;
    text-decoration: none;
}

.view-all-comments:hover {
    text-decoration: underline;
    color: var(--neon-cyan);
}

/* Popular Categories / Tag Cloud */
.popular-categories {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.section-title {
    color: var(--text-bright);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.tag {
    color: var(--neon-cyan-dim);
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.tag:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    transform: scale(1.1);
}

.tag-l { font-size: 2.2rem; font-weight: 800; color: var(--neon-cyan); }
.tag-m { font-size: 1.8rem; font-weight: 600; }
.tag-s { font-size: 1.4rem; }
.tag-xs { font-size: 1.1rem; opacity: 0.8; }
.tag-xxs { font-size: 0.9rem; opacity: 0.6; }

/* Content Gate */
.content-gate {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(to bottom, transparent, rgba(11, 12, 16, 0.9));
    position: relative;
    margin-top: -100px;
    z-index: 10;
}

.gate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.content-gate h2 {
    color: var(--text-bright);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content-gate p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(102, 252, 241, 0.05);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--neon-pink);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.subtitle {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Form */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
    accent-color: var(--neon-cyan);
}

.checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: -400px;
    background: var(--glass-bg);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    max-width: 350px;
}

.toast.show {
    right: 30px;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    color: var(--text-bright);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    nav {
        display: none; /* Скрываем на мобилках для простоты */
    }
    
    .toast {
        right: 0;
        bottom: -100px;
        left: 0;
        margin: 0 auto;
        width: 90%;
        transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .toast.show {
        bottom: 30px;
        right: 0;
    }
}

/* Search Box */
.search-box {
    position: relative;
}

.search-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 252, 241, 0.2);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    color: var(--text-bright);
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    width: 200px;
}

.search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

/* Scroll Loader */
.scroll-loader {
    text-align: center;
    padding: 3rem 0;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 252, 241, 0.1);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
    max-width: 80%;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
