.trending-container {
    max-width: 1200px;
    margin: 0 auto;
}

.trending-container h1 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
}

.trending-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.trending-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.hashtags-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hashtags-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.hashtags-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hashtag-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.hashtag-item:hover {
    background: var(--background);
    transform: translateX(4px);
}

.hashtag-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.hashtag-info {
    flex: 1;
}

.hashtag-name {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hashtag-name:hover {
    text-decoration: underline;
}

.hashtag-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.trending-posts {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.trending-post-item:hover {
    background: var(--background);
    transform: translateX(4px);
}

.post-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.post-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-preview img,
.post-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-preview i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.post-info {
    flex: 1;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.post-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.post-user strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.post-user span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.post-caption {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
}

.view-post-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.3);
}

@media (max-width: 1024px) {
    .trending-content {
        grid-template-columns: 1fr;
    }
    
    .trending-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .trending-container {
        padding: 0;
    }
    
    .trending-posts {
        border-radius: 0;
        padding: 1rem;
    }
    
    .hashtags-card {
        order: 2;
    }
}
