UNIARC1 / web /static /trending.css
UNI12345's picture
Fresh sync to UNIARC/UNIARC1
2a2578f
Raw History Blame Contribute Delete
4.56 kB
/* Trending in India Section */
.trending-india-section {
margin-bottom: 4rem;
padding: 2.5rem;
background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(255, 140, 0, 0.02));
border-radius: 24px;
border: 1px solid rgba(255, 107, 0, 0.2);
position: relative;
overflow: hidden;
}
.trending-india-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #ff6b00, #ff8c00, #ff6b00);
animation: shimmer 3s infinite;
}
@keyframes shimmer {
0%,
100% {
opacity: 0.5;
}
50% {
opacity: 1;
}
}
.trending-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
flex-wrap: wrap;
gap: 1rem;
}
.trending-title-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.trending-subtitle {
font-size: 0.85rem;
color: var(--text-secondary);
font-weight: 500;
}
.trending-platforms {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.platform-badge {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 8px;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.platform-badge.google-news {
background: rgba(66, 133, 244, 0.15);
color: #4285f4;
border: 1px solid rgba(66, 133, 244, 0.3);
}
.platform-badge.reddit {
background: rgba(255, 69, 0, 0.15);
color: #ff4500;
border: 1px solid rgba(255, 69, 0, 0.3);
}
.trending-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.trending-card {
background: var(--bg-surface);
border: 1px solid var(--glass-border);
border-radius: 16px;
padding: 1.5rem;
position: relative;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
}
.trending-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(180deg, #ff6b00, #ff8c00);
opacity: 0;
transition: opacity 0.3s;
}
.trending-card:hover {
transform: translateY(-4px);
border-color: rgba(255, 107, 0, 0.4);
box-shadow: 0 12px 30px rgba(255, 107, 0, 0.15);
}
.trending-card:hover::before {
opacity: 1;
}
.trending-badge {
display: inline-block;
padding: 4px 10px;
border-radius: 6px;
font-size: 0.65rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 1rem;
}
.trending-badge.viral {
background: linear-gradient(135deg, #e1306c, #c13584);
color: white;
box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}
.trending-badge.trending {
background: linear-gradient(135deg, #1d9bf0, #0d8bd9);
color: white;
box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
}
.trending-badge.breaking {
background: linear-gradient(135deg, #ff4500, #ff6b00);
color: white;
box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}
.trending-content h3 {
margin: 0 0 0.75rem;
font-size: 1.15rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1.4;
}
.trending-content p {
margin: 0 0 1rem;
font-size: 0.9rem;
color: var(--text-secondary);
line-height: 1.5;
}
.trending-meta {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.8rem;
color: var(--text-secondary);
flex-wrap: wrap;
}
.platform-icon {
font-size: 1rem;
}
.google-icon {
color: #4285f4;
}
.reddit-icon {
color: #ff4500;
}
.engagement {
font-weight: 700;
color: #ff8c00;
}
.time {
color: var(--text-secondary);
}
.trending-note {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 1rem 1.25rem;
background: rgba(255, 107, 0, 0.08);
border-radius: 12px;
border: 1px solid rgba(255, 107, 0, 0.2);
font-size: 0.85rem;
color: var(--text-secondary);
}
.trending-note svg {
color: #ff8c00;
flex-shrink: 0;
}
/* Responsive */
@media (max-width: 768px) {
.trending-header {
flex-direction: column;
align-items: flex-start;
}
.trending-grid {
grid-template-columns: 1fr;
}
}