Download web/static/style.css from UNIARC/UNIARC1: direct link, hf CLI and curl.
- Browser
- Download file 47.1 kB
-
https://huggingface.co/spaces/UNIARC/UNIARC1/resolve/main/web/static/style.css
- Command line
-
hf download hf://spaces/UNIARC/UNIARC1/web/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/UNIARC/UNIARC1/resolve/main/web/static/style.css
47.1 kB
:root {
/* Cyber Dark Palette - Premium News Intelligence */
--bg-color: #050505;
/* Deep black-blue */
--bg-surface: #0f1218;
/* Slightly lighter for cards */
--bg-glass: rgba(20, 25, 34, 0.7);
--border-color: rgba(255, 255, 255, 0.08);
--border-highlight: rgba(255, 255, 255, 0.15);
--text-primary: #ffffff;
--text-secondary: #9aa0a6;
--text-muted: #6b7280;
/* Accents */
--accent-red: #ea4335;
/* Breaking News Red */
--accent-blue: #4285f4;
/* Tech/Info Blue */
--accent-gold: #fbbc04;
/* Developing/Premium */
--accent-green: #34a853;
/* Live/Trending */
/* Category Colors */
--cat-sports: #f59e0b;
--cat-politics: #3b82f6;
--cat-business: #8b5cf6;
--cat-tech: #a855f7;
--cat-ai: #6366f1;
--cat-world: #22d3ee;
--cat-india: #ff9933;
/* India Saffronish */
--cat-science: #10b981;
--cat-entertainment: #ec4899;
--font-main: 'Inter', sans-serif;
--font-display: 'Outfit', sans-serif;
--shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
}
[data-theme="light"] {
--bg-color: #F5F5F5;
--bg-surface: #FFFFFF;
--bg-glass: rgba(255, 255, 255, 0.8);
--border-color: rgba(0, 0, 0, 0.1);
--border-highlight: rgba(0, 0, 0, 0.2);
--text-primary: #111827;
--text-secondary: #4B5563;
--text-muted: #9CA3AF;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
/* Light Mode Specific Overrides */
[data-theme="light"] body {
color: var(--text-primary);
}
[data-theme="light"] .logo,
[data-theme="light"] .logo span {
color: var(--text-primary) !important;
}
[data-theme="light"] p,
[data-theme="light"] span:not(.badge):not(.tag):not(.breaking-tag):not(.ticker-title):not(.brief-dot):not(.sidebar-label),
[data-theme="light"] div {
color: inherit;
/* Will inherit the darker var(--text-primary) from body */
}
[data-theme="light"] .section-title span,
[data-theme="light"] .info-item span {
color: inherit;
}
/* Ensure mobile sidebar heading is visible in light mode */
[data-theme="light"] .mobile-sidebar-header,
[data-theme="light"] .mobile-sidebar-header h2,
[data-theme="light"] .mobile-menu-header,
[data-theme="light"] .mobile-menu-header .logo,
[data-theme="light"] .mobile-menu-header .logo span {
color: var(--text-primary) !important;
}
* {
box-sizing: border-box;
}
body {
background-color: var(--bg-color);
color: var(--text-primary);
font-family: var(--font-main);
margin: 0;
padding: 0;
line-height: 1.5;
/* Slightly decreased from 1.6 */
font-size: 0.95rem;
/* Base font size reduction */
overflow-x: hidden;
}
a {
text-decoration: none;
color: inherit;
transition: color 0.2s;
}
/* =========================================
GLOBAL HEADER (Info Bar)
========================================= */
.global-info-bar {
background: var(--bg-color);
border-bottom: 1px solid var(--border-color);
padding: 0 2rem;
font-size: 0.75rem;
color: var(--text-secondary);
display: flex;
justify-content: space-between;
align-items: center;
text-transform: uppercase;
letter-spacing: 0.05em;
height: 40px;
position: fixed;
top: 0;
width: 100%;
z-index: 1002;
backdrop-filter: blur(10px);
}
.info-left {
font-weight: 700;
color: var(--accent-blue);
}
.info-right {
display: flex;
gap: 1.5rem;
align-items: center;
height: 100%;
}
.info-item {
display: flex;
align-items: center;
gap: 0.4rem;
}
/* =========================================
NAVIGATION BAR
========================================= */
header {
background: var(--bg-glass);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border-color);
height: 65px;
padding: 0 2rem;
display: flex;
align-items: center;
justify-content: space-between;
position: fixed;
top: 40px;
/* Below info bar */
width: 100%;
z-index: 1001;
transition: all 0.3s ease;
}
/* Mobile Menu Button */
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: var(--text-primary);
font-size: 1.5rem;
cursor: pointer;
padding: 0.5rem;
z-index: 1003;
}
.logo {
font-family: var(--font-display);
font-size: 1.5rem;
font-weight: 800;
letter-spacing: -0.02em;
display: flex;
text-decoration: none;
}
.nav-center {
display: flex;
gap: 2rem;
height: 100%;
}
.nav-item,
.nav-link {
height: 100%;
display: flex;
align-items: center;
font-size: 0.9rem;
font-weight: 500;
color: var(--text-secondary);
position: relative;
cursor: pointer;
padding: 0 0.5rem;
}
.nav-item:hover {
color: var(--text-primary);
}
/* Dropdowns */
.dropdown-menu {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%) translateY(10px);
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 0.5rem;
min-width: 200px;
box-shadow: var(--shadow-lg);
opacity: 0;
visibility: hidden;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
z-index: 100010;
}
.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
.dropdown-link {
padding: 0.75rem 1rem;
color: var(--text-secondary);
border-radius: var(--radius-sm);
white-space: nowrap;
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 10px;
}
.dropdown-link:hover {
background: rgba(255, 255, 255, 0.05);
color: var(--text-primary);
}
/* Profile Section */
.profile-container {
padding-left: 1rem;
border-left: 1px solid var(--border-color);
position: relative;
cursor: pointer;
height: 100%;
display: flex;
align-items: center;
}
.user-avatar-small {
width: 36px;
height: 36px;
border-radius: 50%;
border: 2px solid var(--border-color);
overflow: hidden;
}
.user-avatar-small img {
width: 100%;
height: 100%;
object-fit: cover;
}
.profile-dropdown-right {
right: 0;
left: auto;
transform: translateY(10px) translateX(0);
/* Override generic centering */
width: 240px;
background: var(--bg-surface);
}
.profile-container:hover .profile-dropdown-right {
opacity: 1;
visibility: visible;
transform: translateY(0) translateX(0);
}
/* =========================================
MAIN LAYOUT & SECTIONS
========================================= */
.main-content {
margin-top: 130px;
/* Header + InfoBar + Spacing */
padding: 0 2rem 4rem;
max-width: 1600px;
margin-left: auto;
margin-right: auto;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border-color);
}
.section-title {
font-family: var(--font-display);
font-size: 1.5rem;
font-weight: 700;
margin: 0;
display: flex;
align-items: center;
gap: 0.8rem;
color: var(--text-primary);
}
/* Video Section (Div 1) */
.video-section {
margin-bottom: 4rem;
overflow: hidden;
}
.video-scroller {
display: flex;
gap: 1.5rem;
overflow-x: auto;
padding-bottom: 1rem;
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
.video-scroller::-webkit-scrollbar {
height: 6px;
}
.video-scroller::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
}
/* Video Carousel Container */
.video-carousel-container {
position: relative;
min-height: 500px;
/* Increased from 400px per user request */
/* Fixed height to prevent jumps */
overflow: hidden;
border-radius: var(--radius-md);
background: var(--bg-surface);
border: 1px solid var(--border-color);
}
.video-card {
display: none;
width: 100%;
height: 100%;
position: absolute;
/* Absolute to overlap */
top: 0;
left: 0;
border: none;
/* Border handling by container */
border-radius: 0;
background: transparent;
animation: fadeEffect 0.8s;
}
.video-card.active-video {
display: block;
}
.video-thumb {
height: 100%;
/* Full height of container */
width: 100%;
background: #222;
position: relative;
background-size: cover;
background-position: center;
}
.video-meta {
padding: 1.5rem;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
padding-top: 3rem;
}
/* Breaking News - Hero Grid Layout */
.breaking-container {
margin-bottom: 4rem;
}
.breaking-header-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--accent-red);
padding-bottom: 0.5rem;
}
.breaking-label {
color: var(--accent-red);
font-weight: 900;
text-transform: uppercase;
font-size: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
/* New Hero Grid */
.breaking-hero-grid {
display: grid;
grid-template-columns: 2.5fr 1fr;
/* Main Carousel vs Side Card */
gap: 1.5rem;
height: 550px;
/* Fixed robust height */
margin-bottom: 2rem;
}
@media (max-width: 900px) {
.breaking-hero-grid {
grid-template-columns: 1fr;
height: auto;
}
.breaking-carousel {
height: 400px;
}
.breaking-side-card {
height: 400px;
}
}
/* 1. Main Carousel */
.breaking-carousel {
position: relative;
width: 100%;
height: 100%;
border-radius: 16px;
overflow: hidden;
background: var(--bg-color);
border: 1px solid var(--border-color);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.breaking-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.8s ease-in-out;
visibility: hidden;
z-index: 1;
}
.breaking-slide.active {
opacity: 1;
visibility: visible;
z-index: 2;
}
/* Simulated Video Background */
.breaking-slide-bg {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transform: scale(1.05);
/* Slight zoom for impact */
transition: transform 6s ease;
/* Subtle movement */
}
.breaking-slide.active .breaking-slide-bg {
transform: scale(1.0);
}
.breaking-overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 80%;
background: linear-gradient(to top, #000 10%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 2.5rem;
z-index: 3;
}
.breaking-tag {
background: var(--accent-red);
color: white;
padding: 6px 14px;
border-radius: 4px;
font-weight: 800;
font-size: 0.8rem;
text-transform: uppercase;
align-self: flex-start;
margin-bottom: 1rem;
box-shadow: 0 4px 6px rgba(220, 38, 38, 0.4);
}
.breaking-slide h2 {
font-size: 2.2rem;
font-weight: 800;
line-height: 1.2;
color: white;
margin: 0 0 1rem 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
font-family: var(--font-display);
}
.breaking-meta {
display: flex;
gap: 1.5rem;
color: #e2e8f0;
font-size: 0.9rem;
font-weight: 500;
}
/* SIDE TICKER (Right Column) */
/* SIDE SLIDER (Single Item View) */
.side-slider-wrapper {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
border-radius: 16px;
}
.side-slide-item {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease-in-out, transform 0.5s ease;
transform: translateY(20px);
/* Slight slide up effect */
cursor: pointer;
background: var(--bg-color);
}
.side-slide-item.active {
opacity: 1;
visibility: visible;
transform: translateY(0);
z-index: 1;
}
.side-slide-item:hover .side-img {
transform: scale(1.05);
}
/* 3. Expansion Grid (See More) */
.breaking-expansion-grid {
display: none;
/* Hidden by default */
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
animation: fadeIn 0.5s ease-out;
}
.breaking-mini-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1rem;
display: flex;
gap: 1rem;
transition: background 0.2s;
cursor: pointer;
}
.breaking-mini-card:hover {
background: rgba(255, 255, 255, 0.05);
}
.mini-img {
width: 100px;
height: 100px;
border-radius: 8px;
background-size: cover;
background-position: center;
flex-shrink: 0;
background-color: #222;
}
.mini-content {
flex-grow: 1;
display: flex;
flex-direction: column;
}
.mini-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
line-height: 1.4;
margin-bottom: 0.5rem;
}
.mini-meta {
font-size: 0.75rem;
color: var(--text-secondary);
margin-top: auto;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Keep save btn style */
.save-btn {
position: absolute;
top: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.6);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
backdrop-filter: blur(4px);
z-index: 5;
}
.save-btn:hover {
background: white;
color: black;
transform: scale(1.1);
}
.save-btn.saving {
animation: spin 1s infinite linear;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Top Headlines (Div 3) */
.headlines-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2.5rem;
margin-bottom: 4rem;
}
.news-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
overflow: hidden;
display: flex;
flex-direction: column;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
height: 100%;
}
.news-card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
border-color: var(--border-highlight);
}
.card-img-top {
height: 200px;
background: var(--bg-color);
position: relative;
overflow: hidden;
}
.card-img-top img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}
.news-card:hover .card-img-top img {
transform: scale(1.05);
}
.card-body {
padding: 1.5rem;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.card-source-row {
display: flex;
justify-content: space-between;
margin-bottom: 0.8rem;
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 600;
text-transform: uppercase;
}
.card-title {
font-size: 1.25rem;
font-weight: 700;
margin: 0 0 1rem 0;
line-height: 1.4;
color: var(--text-primary);
}
.card-summary {
font-size: 0.95rem;
color: var(--text-secondary);
margin-bottom: 1.5rem;
flex-grow: 1;
line-height: 1.6;
}
.card-footer {
border-top: 1px solid var(--border-color);
padding-top: 1rem;
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.tag {
font-size: 0.7rem;
padding: 4px 10px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.05);
color: var(--text-secondary);
font-weight: 500;
}
/* 60-Second Brief (Div 4) */
.brief-section {
background: radial-gradient(circle at top right, var(--bg-surface), var(--bg-color));
border: 1px solid var(--border-color);
border-radius: var(--radius-xl);
padding: 3rem;
margin-bottom: 4rem;
position: relative;
overflow: hidden;
}
.brief-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(to bottom, var(--accent-gold), transparent);
}
.brief-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
.brief-item {
display: flex;
gap: 1rem;
align-items: flex-start;
padding: 1rem;
background: var(--bg-surface);
border-radius: var(--radius-md);
transition: background 0.2s;
cursor: pointer;
}
.brief-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.brief-dot {
color: var(--accent-gold);
font-size: 1.2rem;
line-height: 1;
}
.brief-title {
font-size: 1rem;
font-weight: 500;
color: #e5e7eb;
line-height: 1.5;
}
/* Trending India (Div 5) */
.trending-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 4rem;
}
.trend-card {
background: var(--bg-surface);
padding: 1.5rem;
border-radius: var(--radius-md);
border-left: 3px solid var(--cat-india);
position: relative;
border: 1px solid var(--border-color);
border-left-width: 3px;
transition: transform 0.2s;
cursor: pointer;
}
.trend-card:hover {
transform: translateY(-4px);
background: #151921;
}
.trend-badge {
position: absolute;
top: 1rem;
right: 1rem;
background: rgba(255, 153, 51, 0.15);
/* Saffron tint */
color: var(--cat-india);
font-size: 0.65rem;
padding: 2px 8px;
border-radius: 10px;
font-weight: 800;
text-transform: uppercase;
}
/* Newspapers (Bottom) */
.paper-shelf {
background: #151921;
padding: 2.5rem;
border-radius: var(--radius-lg);
overflow-x: auto;
display: flex;
gap: 2.5rem;
align-items: center;
border: 1px solid var(--border-color);
}
.paper-item {
min-width: 140px;
text-align: center;
opacity: 0.7;
transition: all 0.3s;
display: flex;
flex-direction: column;
align-items: center;
}
.paper-item:hover {
opacity: 1;
transform: scale(1.05);
}
.paper-logo {
width: 100px;
height: 100px;
background: white;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
font-weight: 900;
color: black;
font-family: serif;
font-size: 1.5rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
@keyframes pulse-red {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
/* ===== INTEL CARD STYLES (Rich Format) ===== */
.intel-card {
background: #1e293b;
border-radius: 16px;
padding: 1.8rem;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
}
.intel-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
border-color: #3b82f6;
}
.intel-header {
margin-bottom: 1rem;
}
.intel-title {
font-size: 1.3rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1.4;
margin: 0 0 1rem 0;
}
.intel-section {
margin-bottom: 1.2rem;
padding: 1rem;
background: rgba(255, 255, 255, 0.03);
border-radius: 12px;
}
.intel-section h4 {
font-size: 0.85rem;
color: var(--accent-blue);
margin: 0 0 0.5rem 0;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 0.5rem;
}
.intel-section ul {
list-style: none;
padding: 0;
margin: 0;
}
.intel-section li {
padding-left: 1.2rem;
position: relative;
margin-bottom: 0.4rem;
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.5;
}
.intel-section li:before {
content: "•";
position: absolute;
left: 0;
color: #3b82f6;
font-weight: bold;
}
.intel-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
}
.intel-tag {
background: rgba(59, 130, 246, 0.2);
color: #60a5fa;
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 500;
}
.intel-card-image {
height: 200px;
width: 100%;
background-size: cover;
background-position: center;
border-radius: 12px;
margin-bottom: 1.5rem;
position: relative;
background-color: #0f172a;
/* Fallback color */
}
.intel-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto;
padding-top: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.intelligence-btn {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 20px;
font-weight: 600;
font-size: 0.85rem;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.2s;
}
.intelligence-btn:hover {
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
@media (max-width: 768px) {
/* Global layout */
.global-info-bar {
display: none !important;
}
.info-right {
gap: 0.8rem;
}
.info-item span {
font-size: 0.65rem;
}
header {
top: 0;
height: 60px;
padding: 0 1rem;
}
.nav-center {
display: none;
/* Hide desktop nav */
}
.profile-container {
border-left: none;
padding-left: 0.5rem;
}
.main-content {
margin-top: 80px;
padding: 0 1rem 3rem;
}
/* Mobile Menu Button */
.mobile-menu-btn {
display: flex !important;
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
background: none;
border: none;
cursor: pointer;
padding: 0;
z-index: 1002;
}
/* Mobile Overlay - Moved inside media query or made global as needed */
/* Handled via global styles for stability */
.mobile-menu-overlay.active {
opacity: 1;
visibility: visible;
}
.mobile-menu-content {
padding: 2rem;
height: 100%;
overflow-y: auto;
}
.mobile-menu-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.close-menu {
background: none;
border: none;
color: white;
font-size: 2.5rem;
cursor: pointer;
line-height: 1;
}
.mobile-nav {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.mobile-nav-link {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 12px;
padding: 1rem 0;
border-bottom: 1px solid var(--border-color);
}
.mobile-nav-group {
margin: 1rem 0;
}
.mobile-nav-label {
font-size: 0.8rem;
text-transform: uppercase;
color: var(--text-secondary);
margin-bottom: 1rem;
letter-spacing: 1px;
}
.mobile-category-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.8rem;
}
.mobile-cat-link {
background: var(--bg-surface);
border: 1px solid var(--border-color);
padding: 1rem;
border-radius: 12px;
font-size: 0.85rem;
font-weight: 600;
text-align: center;
color: var(--text-secondary);
transition: all 0.2s;
}
/* Video Carousel Responsiveness */
.video-carousel-container {
min-height: auto;
aspect-ratio: 16/10;
}
.video-meta {
padding: 1rem;
}
.video-title {
font-size: 1rem;
-webkit-line-clamp: 2;
line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Grids */
.breaking-items,
.headlines-grid,
.trending-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.section-title {
font-size: 1.2rem;
}
/* Cards Adjustment */
.breaking-card-emergency,
.intel-card {
padding: 1.2rem;
}
.breaking-img-top,
.intel-card-image {
height: 140px;
}
.breaking-carousel {
height: 280px !important;
}
.breaking-slide h2 {
font-size: 1.25rem !important;
line-height: 1.3;
}
.breaking-overlay {
padding: 1.2rem !important;
}
.intel-title {
font-size: 1.05rem;
margin-bottom: 0.5rem;
}
.intel-section {
padding: 0.6rem;
margin-bottom: 0.8rem;
}
.intel-section li {
font-size: 0.85rem;
}
/* Brief Section */
.brief-section {
padding: 1.5rem;
}
.brief-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
/* Newspaper shelf */
.paper-shelf {
padding: 1.5rem;
gap: 1rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
overflow-x: visible;
justify-items: center;
}
.paper-item {
min-width: auto;
width: 100%;
}
.paper-logo {
width: 70px;
height: 70px;
font-size: 1.1rem;
}
}
/* Base styles adjustments for smoother mobile feel */
.theme-toggle-btn {
background: var(--bg-surface);
border: 1px solid var(--border-color);
color: var(--text-primary);
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.theme-toggle-btn:hover {
background: var(--bg-color);
border-color: var(--text-primary);
}
.mobile-menu-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(5, 5, 5, 0.98);
z-index: 2000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
display: flex;
/* Changed from block for centering */
align-items: center;
justify-content: center;
}
.mobile-menu-overlay.active {
opacity: 1;
visibility: visible;
}
/* =========================================
NEW BUTTON STYLES (Added per user request)
========================================= */
.see-more-btn {
display: block;
width: 100%;
max-width: 200px;
margin: 2rem auto 0;
padding: 0.8rem 1.5rem;
background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
color: white;
border: none;
border-radius: 30px;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
text-align: center;
}
.see-more-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.clear-history-btn {
background: rgba(234, 67, 53, 0.1);
/* Red tint */
color: var(--accent-red);
border: 1px solid var(--accent-red);
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s;
}
.clear-history-btn:hover {
background: var(--accent-red);
color: white;
}
.action-btn {
background: var(--bg-surface);
border: 1px solid var(--border-color);
color: var(--text-primary);
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.action-btn:hover {
border-color: var(--text-primary);
background: rgba(255, 255, 255, 0.05);
}
.main-footer {
margin-top: 4rem;
padding: 3rem 2rem;
border-top: 1px solid var(--border-color);
text-align: center;
color: var(--text-secondary);
font-size: 0.85rem;
background: var(--bg-surface);
}
.main-footer br {
display: block;
margin-bottom: 0.5rem;
}
/* =========================================
MARKET & CLIMATE INTELLIGENCE
========================================= */
.market-climate-bar {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-glass);
backdrop-filter: blur(15px);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 0.75rem 1.5rem;
margin-bottom: 2rem;
gap: 2rem;
box-shadow: var(--shadow-md);
transition: all 0.3s ease;
}
@media (max-width: 600px) {
.market-climate-bar {
flex-direction: column;
align-items: flex-start;
gap: 0.8rem;
padding: 1rem;
}
.ticker-label-container {
width: 100%;
display: flex;
justify-content: flex-start;
margin-bottom: 0.2rem;
}
.ticker-title {
font-size: 0.65rem;
padding: 2px 8px;
}
.ticker-wrap {
width: 100%;
padding: 0.4rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.weather-wrap {
width: 100%;
padding-left: 0;
border-left: none;
padding-top: 0.4rem;
}
}
.ticker-wrap {
flex-grow: 1;
display: flex;
align-items: center;
overflow: hidden;
position: relative;
/* Masking gradient for smooth edges */
-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-title {
background: var(--accent-blue);
color: white;
padding: 3px 10px;
border-radius: 4px;
font-size: 0.7rem;
font-weight: 800;
letter-spacing: 0.05em;
}
.ticker {
display: flex;
gap: 3rem;
white-space: nowrap;
animation: tickerAnimation 40s linear infinite;
}
.ticker-item {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-secondary);
}
.ticker-item span {
margin-left: 5px;
font-size: 0.8rem;
}
.ticker-item span.up {
color: var(--accent-green);
}
.ticker-item span.down {
color: var(--accent-red);
}
@keyframes tickerAnimation {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
.weather-wrap {
flex-shrink: 0;
padding-left: 1.5rem;
border-left: 1px solid var(--border-color);
}
.weather-item {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.85rem;
}
.weather-loc {
color: var(--text-muted);
font-weight: 700;
text-transform: uppercase;
}
.weather-temp {
color: var(--text-primary);
font-weight: 800;
}
.weather-desc {
color: var(--accent-blue);
}
/* Premium Animations */
.fade-in {
animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Glassmorphism Overrides */
.intel-card,
.breaking-carousel,
.brief-section,
.trend-card {
background: var(--bg-surface) !important;
backdrop-filter: blur(15px) !important;
border: 1px solid var(--border-color) !important;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.intel-card:hover {
border-color: var(--accent-blue) !important;
box-shadow: 0 0 20px rgba(66, 133, 244, 0.2) !important;
}
/* =========================================
========================================= */
.fixed-sidebar {
position: fixed;
top: 50%;
/* Moved down from 48% */
transform: translateY(-50%);
width: 120px;
height: 500px;
background: var(--bg-glass);
backdrop-filter: blur(15px);
border: 1px solid var(--border-highlight);
border-radius: var(--radius-md);
z-index: 1005;
padding: 0.8rem 0.2rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
/* Added gap to control internal spacing */
box-shadow: var(--shadow-lg);
transition: transform 0.3s ease, opacity 0.3s ease;
}
.fixed-sidebar.left {
left: 20px;
}
.fixed-sidebar.right {
right: 20px;
}
.sidebar-close {
position: absolute;
top: -10px;
right: -10px;
width: 24px;
height: 24px;
background: var(--accent-red);
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 1.2rem;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
transition: transform 0.2s;
}
.sidebar-close:hover {
transform: scale(1.1);
}
.sidebar-content {
height: 100%;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.sidebar-label {
font-size: 0.7rem;
text-transform: uppercase;
color: var(--accent-gold);
font-weight: 800;
letter-spacing: 0.05em;
}
.sidebar-content p {
font-size: 0.8rem;
color: var(--text-secondary);
margin: 0;
line-height: 1.4;
}
@media (max-width: 1300px) {
.fixed-sidebar {
display: none;
}
}
/* =========================================
MOBILE AD OVERLAY
========================================= */
.mobile-ad-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 9999;
display: none;
/* Hidden by default, shown via media query or JS */
align-items: center;
justify-content: center;
padding: 20px;
backdrop-filter: blur(5px);
}
.mobile-ad-content {
position: relative;
width: 90vw;
max-width: 400px;
background: #0f172a;
border: 1px solid var(--border-highlight);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
animation: adPopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-ad-close {
position: absolute;
top: 0;
right: 0;
background: black;
color: white;
border: none;
padding: 5px 10px;
font-family: "Inter", sans-serif;
font-size: 0.7rem;
font-weight: 800;
cursor: pointer;
z-index: 10;
letter-spacing: 0.05em;
}
.mobile-ad-banner {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
}
.mobile-ad-banner img {
width: 100%;
height: 100%;
object-fit: cover;
}
.mobile-ad-banner-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(0, 0, 50, 0.8) 40%, transparent);
display: flex;
flex-direction: column;
justify-content: center;
padding: 20px;
color: white;
}
.mobile-ad-banner-overlay h3 {
font-size: 1.2rem;
font-weight: 800;
margin: 0;
line-height: 1.1;
color: white;
}
.mobile-ad-banner-overlay p {
font-size: 0.8rem;
margin: 5px 0 15px 0;
opacity: 0.9;
}
.mobile-ad-btn {
display: inline-block;
padding: 8px 15px;
background: white;
color: #0033ff;
text-decoration: none;
font-size: 0.75rem;
font-weight: 700;
border-radius: 2px;
width: fit-content;
}
@keyframes adPopUp {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@media (max-width: 768px) {
.mobile-ad-overlay {
display: flex;
}
.mobile-menu-btn {
display: block;
}
.nav-center {
display: none !important;
}
.profile-container {
border-left: none;
padding-left: 0;
}
.logo {
font-size: 1.2rem;
}
header {
padding: 0 1rem;
}
.global-info-bar {
display: none !important;
}
header {
top: 0;
}
body {
padding-top: 65px;
}
}
/* Mobile Nav Overlay */
.mobile-nav-overlay {
position: fixed;
top: 0;
left: -100%;
width: 80%;
height: 100%;
background: var(--bg-surface);
z-index: 2005;
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
padding: 80px 2rem 2rem 2rem;
box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.mobile-nav-overlay.active {
left: 0;
}
.mobile-nav-link {
font-size: 1.2rem;
font-weight: 600;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 1rem;
}
.mobile-nav-close {
position: absolute;
top: 1.5rem;
right: 1.5rem;
font-size: 2rem;
color: var(--text-muted);
cursor: pointer;
}
.nav-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
z-index: 2004;
display: none;
}
.nav-mask.active {
display: block;
}
/* ===== ARTICLE INTELLIGENCE MODAL ===== */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(8px);
z-index: 2000;
display: none;
/* Controlled by JS */
align-items: center;
justify-content: center;
padding: 2rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.modal-overlay.active {
display: flex;
opacity: 1;
}
.modal-content {
width: 100%;
max-width: 900px;
max-height: 90vh;
background: #0f172a;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
animation: modal-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-slide-up {
from {
transform: translateY(30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.modal-close {
position: absolute;
top: 1.5rem;
right: 1.5rem;
background: rgba(0, 0, 0, 0.5);
border: none;
color: white;
font-size: 2rem;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
z-index: 10;
line-height: 1;
}
.modal-article-header {
position: relative;
height: 300px;
min-height: 300px;
}
.modal-hero-img {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
}
.modal-title-box {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 2rem;
background: linear-gradient(to top, #0f172a 20%, transparent 100%);
}
.modal-badge-source {
background: var(--accent-blue);
color: white;
padding: 4px 12px;
border-radius: 4px;
font-size: 0.7rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 0.8rem;
display: inline-block;
}
.modal-main-title {
font-family: 'Outfit', sans-serif;
font-size: 2rem;
font-weight: 800;
color: white;
margin-bottom: 0.5rem;
line-height: 1.2;
}
.modal-meta {
display: flex;
gap: 1rem;
align-items: center;
color: #94a3b8;
font-size: 0.85rem;
}
.modal-badge-bias {
background: rgba(255, 255, 255, 0.05);
padding: 2px 8px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-body-scroll {
flex: 1;
overflow-y: auto;
padding: 2rem;
}
.modal-grid {
display: grid;
grid-template-columns: 1.8fr 1fr;
gap: 2.5rem;
}
.modal-section {
margin-bottom: 2rem;
}
.modal-section-title {
font-size: 1.1rem;
font-weight: 700;
color: white;
margin-bottom: 1.2rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.modal-bullet-list {
list-style: none;
padding: 0;
}
.modal-bullet-list li {
padding-left: 1.5rem;
position: relative;
margin-bottom: 0.8rem;
color: #cbd5e1;
line-height: 1.6;
}
.modal-bullet-list li:before {
content: "⚡";
position: absolute;
left: 0;
font-size: 0.9rem;
}
.modal-impact-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}
.impact-box {
padding: 1.5rem;
border-radius: 16px;
background: rgba(255, 255, 255, 0.02);
}
.impact-box.affected {
border-left: 4px solid var(--accent-blue);
}
.impact-box.importance {
border-left: 4px solid var(--accent-gold);
}
.modal-small-title {
font-size: 0.75rem;
font-weight: 800;
margin-bottom: 0.6rem;
letter-spacing: 1px;
}
.affected .modal-small-title {
color: var(--accent-blue);
}
.importance .modal-small-title {
color: var(--accent-gold);
}
.impact-box p {
font-size: 0.9rem;
color: #94a3b8;
line-height: 1.5;
}
.modal-tags-box {
background: rgba(255, 255, 255, 0.02);
padding: 1.5rem;
border-radius: 16px;
margin-bottom: 2rem;
}
.modal-tag-container {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.modal-tag-pill {
background: rgba(255, 255, 255, 0.05);
color: #e2e8f0;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
}
.modal-actions {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.modal-btn {
width: 100%;
padding: 1rem;
border-radius: 12px;
font-weight: 800;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 1px;
text-align: center;
cursor: pointer;
transition: all 0.2s;
}
.save-btn-modal {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: white;
}
.save-btn-modal:hover {
background: rgba(255, 255, 255, 0.1);
border-color: var(--accent-gold);
color: var(--accent-gold);
}
.source-btn {
background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
color: white;
border: none;
text-decoration: none;
}
.source-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
.chat-btn-modal {
background: linear-gradient(135deg, var(--accent-green), #059669);
color: white;
border: none;
}
.chat-btn-modal:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(52, 168, 83, 0.4);
}
.report-btn-modal {
background: transparent;
border: 1px solid rgba(234, 67, 53, 0.3);
color: var(--accent-red);
font-size: 0.75rem;
padding: 0.75rem;
}
.report-btn-modal:hover {
background: rgba(234, 67, 53, 0.1);
border-color: var(--accent-red);
}
/* Responsive Modal */
@media (max-width: 768px) {
.modal-grid {
grid-template-columns: 1fr;
}
.modal-article-header {
height: 200px;
min-height: 200px;
}
.modal-main-title {
font-size: 1.4rem;
}
.modal-overlay {
padding: 1rem;
}
}
/* Floating Action Button (FAB) for Modal */
.modal-fab {
position: absolute;
bottom: 2rem;
right: 2rem;
background: linear-gradient(135deg, #10b981, #059669);
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 50px;
font-weight: 800;
display: flex;
align-items: center;
gap: 0.8rem;
box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
cursor: pointer;
z-index: 1000;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-fab:hover {
transform: scale(1.05) translateY(-5px);
box-shadow: 0 15px 30px rgba(16, 185, 129, 0.6);
}
.fab-icon {
font-size: 1.2rem;
}
.fab-text {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Card Chat Button */
.card-chat-btn {
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.2);
color: #10b981;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.card-chat-btn:hover {
background: #10b981;
color: white;
transform: scale(1.1);
}
:root {
/* Cyber Dark Palette - Premium News Intelligence */
--bg-color: #050505;
/* Deep black-blue */
--bg-surface: #0f1218;
/* Slightly lighter for cards */
--bg-glass: rgba(20, 25, 34, 0.7);
--border-color: rgba(255, 255, 255, 0.08);
--border-highlight: rgba(255, 255, 255, 0.15);
--text-primary: #ffffff;
--text-secondary: #9aa0a6;
--text-muted: #6b7280;
/* Accents */
--accent-red: #ea4335;
/* Breaking News Red */
--accent-blue: #4285f4;
/* Tech/Info Blue */
--accent-gold: #fbbc04;
/* Developing/Premium */
--accent-green: #34a853;
/* Live/Trending */
/* Category Colors */
--cat-sports: #f59e0b;
--cat-politics: #3b82f6;
--cat-business: #8b5cf6;
--cat-tech: #a855f7;
--cat-ai: #6366f1;
--cat-world: #22d3ee;
--cat-india: #ff9933;
/* India Saffronish */
--cat-science: #10b981;
--cat-entertainment: #ec4899;
--font-main: 'Inter', sans-serif;
--font-display: 'Outfit', sans-serif;
--shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
}
[data-theme="light"] {
--bg-color: #F5F5F5;
--bg-surface: #FFFFFF;
--bg-glass: rgba(255, 255, 255, 0.8);
--border-color: rgba(0, 0, 0, 0.1);
--border-highlight: rgba(0, 0, 0, 0.2);
--text-primary: #111827;
--text-secondary: #4B5563;
--text-muted: #9CA3AF;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
/* Light Mode Specific Overrides */
[data-theme="light"] body {
color: var(--text-primary);
}
[data-theme="light"] .logo,
[data-theme="light"] .logo span {
color: var(--text-primary) ;
}
[data-theme="light"] p,
[data-theme="light"] span:not(.badge):not(.tag):not(.breaking-tag):not(.ticker-title):not(.brief-dot):not(.sidebar-label),
[data-theme="light"] div {
color: inherit;
/* Will inherit the darker var(--text-primary) from body */
}
[data-theme="light"] .section-title span,
[data-theme="light"] .info-item span {
color: inherit;
}
/* Ensure mobile sidebar heading is visible in light mode */
[data-theme="light"] .mobile-sidebar-header,
[data-theme="light"] .mobile-sidebar-header h2,
[data-theme="light"] .mobile-menu-header,
[data-theme="light"] .mobile-menu-header .logo,
[data-theme="light"] .mobile-menu-header .logo span {
color: var(--text-primary) ;
}
* {
box-sizing: border-box;
}