/* Feed Styles */
.feed-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    color: var(--accent-color);
}

.feed-header h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.feed-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.feed-login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.login-prompt-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.login-prompt-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-prompt-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.feed-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.feed-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--background-dark);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--border-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background: var(--gradient-secondary);
    color: var(--accent-color);
    border-color: var(--secondary-color);
}

.feed-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    background: var(--background-dark);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.sort-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.2);
}

.no-posts {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.no-posts-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.no-posts-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.no-posts-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-category {
    display: flex;
    align-items: center;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-gaming {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.category-programming {
    background: rgba(0, 210, 211, 0.2);
    color: #00d2d3;
    border: 1px solid rgba(0, 210, 211, 0.3);
}

.category-astrophotography {
    background: rgba(255, 159, 243, 0.2);
    color: #ff9ff3;
    border: 1px solid rgba(255, 159, 243, 0.3);
}

.category-general {
    background: rgba(128, 128, 128, 0.2);
    color: #808080;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.post-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.post-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-media {
    margin-bottom: 1rem;
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-small);
}

.post-video {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: var(--border-radius-small);
}

.post-audio {
    width: 100%;
    border-radius: var(--border-radius-small);
}

.post-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-count {
    font-weight: 600;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--accent-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background: var(--background-dark);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--secondary-color);
}

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

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feed-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .feed-filters {
        justify-content: center;
    }
    
    .feed-sort {
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .post-stats {
        justify-content: center;
    }
    
    .post-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .feed-header {
        padding: 1.5rem;
    }
    
    .feed-header h2 {
        font-size: 1.5rem;
    }
    
    .login-prompt-actions {
        flex-direction: column;
    }
    
    .post-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
