/* Лента с эффектом жидкого стекла */
.feed-main {
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
}

.feed-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Контролы поиска и фильтров */
.feed-controls {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.search-bar button {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-buttons button {
    padding: 0.5rem 1.5rem;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-buttons button:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-2px);
}

/* Карточка создания поста */
.create-post-card {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease;
}

.create-post-card h2 {
    margin-bottom: 1.5rem;
    color: #00d4ff;
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.create-post-card textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.create-post-card textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.post-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.attach-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attach-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Посты */
.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.post-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.post-user-info {
    flex: 1;
}

.post-user-info h4 {
    margin-bottom: 0.25rem;
    color: #fff;
    font-size: 1.1rem;
}

.post-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.post-content {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.post-file {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.post-file:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(5px);
}

.post-file a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
}

.post-file a:hover {
    text-decoration: underline;
}

.post-image {
    max-width: 100%;
    border-radius: 15px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.post-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.post-action {
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.post-action:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.post-action.liked {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

.post-action.liked:hover {
    background: rgba(0, 212, 255, 0.3);
    color: #00bfea;
}

/* Комментарии */
.post-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.comment {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.comment-content {
    flex: 1;
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-content strong {
    color: #00d4ff;
    margin-bottom: 0.25rem;
    display: block;
    font-size: 0.95rem;
}

.comment-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.add-comment {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.add-comment input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.add-comment input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.add-comment button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.add-comment button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5);
}

/* Пустое состояние */
.feed-posts > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 3rem;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .feed-main {
        padding: 1rem 0.5rem;
    }
    
    .feed-controls,
    .create-post-card,
    .post-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .post-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-actions {
        flex-wrap: wrap;
    }
}

/* Скроллбар */
.feed-posts::-webkit-scrollbar {
    width: 8px;
}

.feed-posts::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.feed-posts::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}
