/* Bouncing Container for Unseen Featured Content */
.featured-content-bounce-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    animation: bounce 2s infinite;
}

.bounce-animation {
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: transform 0.3s;
}

.bounce-animation:hover {
    transform: scale(1.05);
}

.bounce-animation i {
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Slide-up Community Featured Section */
.community-featured-slideup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 80vh;
    background: white;
    z-index: 10001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.community-featured-slideup.active {
    bottom: 0;
}

.community-featured-header {
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.community-featured-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.community-featured-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.featured-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.featured-post-card.unread {
    border: 2px solid #dc3545;
}

.featured-post-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e9ecef;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-post-media {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.featured-post-content {
    padding: 15px;
}

.featured-post-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Featured post badge styles */
.featured-badge {
    background: #ffc107;
    color: #212529;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-right: 8px;
}

.featured-post {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
}

/* TikTok scroller featured post styles */
.tiktok-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.tiktok-unread-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.tiktok-community-post.featured {
    border: 2px solid #ffc107;
}

.tiktok-community-post.unread {
    border: 2px solid #dc3545;
}

.tiktok-post-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    z-index: 10;
}

.tiktok-post-media {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

