/* Trends Modal Styles */
.trends-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.trends-container {
    background: rgba(28, 28, 30, 0.95);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.trends-modal.active .trends-container {
    transform: translateY(0) scale(1);
}

.trends-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.trends-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trends-header h2 i {
    color: #ff3b30;
    font-size: 1.2rem;
}

.close-trends {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.close-trends:hover {
    background: rgba(255, 255, 255, 0.2);
}

.trends-filters {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
}

.trends-filters::-webkit-scrollbar {
    display: none;
}

.trend-filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: black;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.trend-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.trend-filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.trends-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.trend-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trend-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-rank {
    font-size: 0.8rem;
    color: #666;
    font-weight: 700;
}

.trend-content {
    font-size: 1rem;
    color: #eee;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #888;
}

.trend-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-meta i {
    font-size: 0.8rem;
}

.trends-empty {
    padding: 40px;
    text-align: center;
    color: #666;
}

.trends-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

/* Skeleton Loading */
.trend-skeleton {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-load 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-load {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

.skeleton-small {
    height: 12px;
    width: 40%;
}