/* Trending Page Styles */
:root {
    --trend-bg: #f5f6fb;
    --trend-card: #ffffff;
    --trend-text: #0f172a;
    --trend-subtle: #475467;
    --trend-border: #e4e7ec;
    --trend-accent: #2563eb;
}

.trending-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    color: var(--trend-text);
}

.trending-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 60%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 32px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
}

.trending-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--trend-accent);
}

.hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: var(--trend-text);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--trend-subtle);
    margin: 0;
    line-height: 1.6;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.metric-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--trend-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.metric-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--trend-text);
    display: block;
    margin-bottom: 0.35rem;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--trend-subtle);
}

.filter-chips,
.location-chips {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.chip-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.chip-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip,
.location-chip {
    flex-shrink: 0;
    padding: 0.55rem 1.3rem;
    background: var(--trend-card);
    color: var(--trend-subtle);
    border: 1px solid var(--trend-border);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.filter-chip.active,
.location-chip.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--trend-accent);
    border-color: rgba(37, 99, 235, 0.4);
}

.filter-chip:hover,
.location-chip:hover {
    background: rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}

.filter-chip.active:hover,
.location-chip.active:hover {
    background: rgba(37, 99, 235, 0.18);
}

.feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 0 80px;
}

@media (min-width: 1440px) {
    .feed-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

.post-card {
    background: var(--trend-card);
    border: 1px solid var(--trend-border);
    border-radius: 28px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.15);
}

.post-card .post-header,
.post-card .post-actions {
    padding: 1.25rem 1.5rem;
}

.post-card .post-media {
    position: relative;
    padding-top: 125%;
    margin: 0 1.5rem 1.5rem;
    border-radius: 24px;
    overflow: hidden;
}

.post-card .post-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-follow {
    background: var(--trend-accent);
    color: #fff;
    border: none;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.post-card .post-follow:hover {
    background: rgba(37, 99, 235, 0.85);
    transform: translateY(-1px);
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--trend-card);
    color: var(--trend-accent);
    border: 1px solid var(--trend-border);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.refresh-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--trend-card);
    border: 1px dashed var(--trend-border);
    border-radius: 20px;
    color: var(--trend-subtle);
}

@media (min-width: 1440px) {
    .feed-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        padding: 30px;
    }
}
