/* ========================================================
   ASTRANOVA NEWS NETWORK - MASTER ARCHITECTURE STYLESHEET
   ======================================================= */

:root {
    --al-dark-blue: #0f172a;
    --al-orange: #ff6b00;
    --al-breaking-red: #ef4444;
    --border-light: #e5e7eb;
    --text-dark: #111111;
    --bg-main: #f3f4f6; /* Your classic clean light background color scheme */
}

body { 
    background-color: var(--bg-main) !important; 
    color: var(--text-dark) !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ========================================================
   1A. ✅ NEW INFINITE RUNNING BREAKING NEWS TICKER TRACK
   ======================================================== */
.ticker-wrap {
    width: 100%;
    background-color: var(--al-breaking-red);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ticker-title-tag {
    background: #000000;
    color: #ffffff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
    position: relative;
    box-shadow: 5px 0 10px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.ticker-marquee {
    display: flex;
    width: 100%;
    box-sizing: content-box;
}

.ticker-content-flow {
    display: inline-flex;
    white-space: nowrap;
    padding-right: 100%;
    animation: marqueeRunningLoop 25s infinite linear;
}

/* Pause the scrolling text track gracefully when a reader hovers their cursor over it */
.ticker-content-flow:hover {
    animation-play-state: paused;
}

.ticker-item-string {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 20px;
    cursor: pointer;
}

.ticker-item-string::after {
    content: "•";
    margin-left: 40px;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
}

@keyframes marqueeRunningLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ========================================================
   2. HEADER & STYLIZED NAVIGATION SYSTEM
   ======================================================== */
header {
    background-color: var(--al-dark-blue);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center; 
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(45deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-3d-container { width: 35px; height: 35px; perspective: 1000px; }
.logo-3d-cube {
    width: 100%; height: 100%; position: relative;
    transform-style: preserve-3d; animation: rotateCube 12s infinite linear;
}
.cube-face { width: 100%; height: 100%; position: absolute; object-fit: cover; border-radius: 4px; }

@keyframes rotateCube {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    flex-grow: 1;
}

.desktop-nav .category-menu-links {
    display: flex;
    align-items: center; 
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.2s;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    display: inline-block;
    line-height: 1; 
    white-space: nowrap; 
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    border-bottom-color: var(--al-orange);
}

.desktop-actions-tray {
    display: flex;
    align-items: center; 
    gap: 15px;
    flex-shrink: 0;
}

.admin-portal-btn {
    background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 4px;
    font-size: 0.85rem; font-weight: 700; border: 1px solid rgba(255,255,255,0.15); transition: background 0.2s;
}
.admin-portal-btn:hover { background: var(--al-orange); border-color: var(--al-orange); }

.live-indicator {
    background-color: var(--al-breaking-red); padding: 6px 12px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 6px; animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.mobile-hamburger-btn { display: none; background: none; border: none; color: #ffffff; font-size: 1.4rem; cursor: pointer; }

/* ========================================================
   3. MAIN STRUCTURAL LAYOUT CORE
   ======================================================== */
.main-container { max-width: 1200px; margin: 30px auto; padding: 0 20px; box-sizing: border-box; }
.hero-broadcast-section {
    background: #ffffff; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border-light); margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.live-frame-container { width: 100%; aspect-ratio: 16 / 9; background: #000000; position: relative; }
.media-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1200') center/cover; cursor: pointer;
}
.play-center-btn { font-size: 3.5rem; color: #ffffff; text-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.2s; }
.media-placeholder:hover .play-center-btn { transform: scale(1.1); color: var(--al-orange); }

.live-overlay-tag {
    position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.7);
    padding: 6px 12px; border-radius: 4px; color: #fff; font-weight: 800; font-size: 0.8rem;
    display: flex; align-items: center; gap: 6px;
}
.live-overlay-tag .dot { width: 8px; height: 8px; background: var(--al-breaking-red); border-radius: 50%; display: inline-block; }
.breaking-news-box { padding: 24px; display: flex; align-items: center; gap: 20px; background: #ffffff; }
.breaking-title { background: var(--al-breaking-red); color: #ffffff; font-weight: 900; font-size: 0.85rem; padding: 6px 12px; border-radius: 3px; letter-spacing: 0.5px; }
.main-headline { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.3; }
.main-headline a:hover { color: var(--al-orange); }

.news-feed-section { display: grid; grid-template-columns: 1fr 2.5fr; gap: 30px; align-items: start; }
.feed-separator { display: none; }

/* Real-time Timeline Container */
.live-updates-container { background: #ffffff; border-radius: 8px; padding: 20px; border: 1px solid var(--border-light); }
.section-heading { margin: 0 0 20px 0; font-size: 1rem; font-weight: 900; color: var(--al-dark-blue); display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px; }
.live-dot { width: 8px; height: 8px; background: var(--al-orange); border-radius: 50%; display: inline-block; }
.timeline-wrapper { border-left: 2px solid var(--border-light); padding-left: 15px; margin-left: 5px; }
.timeline-item { position: relative; margin-bottom: 15px; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 5px; width: 8px; height: 8px; background: #cbd5e1; border-radius: 50%; }
.time-marker { font-size: 0.75rem; font-weight: 700; color: var(--al-orange); margin-bottom: 4px; }
.timeline-text { margin: 0; font-size: 0.88rem; color: #334155; line-height: 1.4; }

/* Sequential Feed Row Stacks */
.news-list-container { display: flex; flex-direction: column; gap: 20px; }
.feed-card {
    background: #ffffff; border-radius: 8px; border: 1px solid var(--border-light);
    padding: 20px; display: flex; justify-content: space-between; gap: 20px; transition: transform 0.2s, box-shadow 0.2s;
}
.feed-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.card-text-side { display: flex; flex-direction: column; align-items: start; gap: 10px; flex: 1; }
.inline-tag { background: #f1f5f9; color: var(--al-dark-blue); font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.feed-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.feed-title button:hover { color: var(--al-orange) !important; }
.card-image-side { width: 160px; height: 105px; border-radius: 6px; overflow: hidden; background: #f1f5f9; }
.card-image-side img { width: 100%; height: 100%; object-fit: cover; }

/* ========================================================
   DEEP DIVE ARTICLE DISPLAY STYLES
   ======================================================== */
.article-full-view { background: #ffffff; border-radius: 8px; border: 1px solid var(--border-light); padding: 30px; animation: slideIn 0.3s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.back-to-feed-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.85rem; color: var(--al-orange); cursor: pointer; margin-bottom: 20px; letter-spacing: 0.5px; }
.back-to-feed-btn:hover { text-decoration: underline; }
.full-article-title { font-size: 2.2rem; font-weight: 800; color: var(--al-dark-blue); line-height: 1.2; margin: 0 0 15px 0; }
.full-article-meta { display: flex; gap: 15px; font-size: 0.88rem; color: #64748b; margin-bottom: 25px; font-weight: 500; }
.author-span { font-weight: 700; color: var(--al-dark-blue); }
.full-article-image-box { width: 100%; max-height: 450px; border-radius: 8px; overflow: hidden; margin-bottom: 30px; background: #f1f5f9; }
.full-article-image-box img { width: 100%; height: 100%; object-fit: cover; }
.full-article-body { font-size: 1.1rem; line-height: 1.6; color: #334155; }
.full-article-body p { margin-bottom: 20px; }
.hide-story { display: none !important; }

/* ========================================================
   MOBILE SLIDING DRAWER SYSTEMS
   ======================================================== */
.mobile-sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.mobile-sidebar-drawer { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: #ffffff; z-index: 2001; box-shadow: 5px 0 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; padding: 24px; box-sizing: border-box; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.sidebar-active.mobile-sidebar-overlay { opacity: 1; visibility: visible; }
.sidebar-active.mobile-sidebar-drawer { left: 0; }
.sidebar-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.sidebar-logo-title { font-weight: 900; font-size: 1.1rem; letter-spacing: 1px; color: var(--al-dark-blue); }
.close-sidebar-btn { background: none; border: none; font-size: 2rem; color: #64748b; cursor: pointer; line-height: 1; }
.mobile-sidebar-links { display: flex; flex-direction: column; gap: 12px; }
.mob-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 6px; font-size: 1rem; font-weight: 700; color: #475569; transition: all 0.2s; }
.mob-link i { width: 20px; font-size: 1.1rem; color: #94a3b8; }
.mob-link:hover, .mob-link.active { background: #f1f5f9; color: var(--al-orange); }
.mob-link:hover i, .mob-link.active i { color: var(--al-orange); }
.sidebar-divider { border: 0; height: 1px; background: var(--border-light); margin: 30px 0; }
.sidebar-utilities-group { display: flex; flex-direction: column; gap: 15px; margin-top: auto; }
.mobile-sidebar-admin-btn { background: var(--al-dark-blue); color: #fff; text-align: center; padding: 12px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; }
.mobile-sidebar-live-tag { background: #f8fafc; border: 1px solid var(--border-light); color: var(--al-breaking-red); text-align: center; padding: 12px; border-radius: 6px; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ========================================================
   FOOTER DESIGN STRIP
   ======================================================== */
footer { background: #0f172a; color: #64748b; padding: 30px 20px; margin-top: 60px; border-top: 1px solid #1e293b; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; font-size: 0.9rem; font-weight: 500; }

.header-weather-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); padding: 6px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 700; color: #ffffff; border: 1px solid rgba(255,255,255,0.1); white-space: nowrap; }
.header-weather-badge i { color: var(--al-orange); }

/* ========================================================
   MEDIA QUERY MATRIX SIZING
   ======================================================== */
@media (max-width: 1024px) {
    .desktop-nav .category-menu-links { gap: 12px; }
    .nav-link { font-size: 0.85rem; }
}
@media (max-width: 992px) {
    .news-feed-section { grid-template-columns: 1fr; }
    .feed-separator { display: block; border: 0; height: 1px; background: var(--border-light); margin: 15px 0; }
}
@media (max-width: 768px) {
    .desktop-nav, .desktop-actions-tray { display: none !important; }
    .mobile-hamburger-btn { display: block; }
    .main-headline { font-size: 1.3rem; }
    .breaking-news-box { flex-direction: column; align-items: start; gap: 10px; padding: 16px; }
    .feed-card { flex-direction: column-reverse; gap: 15px; padding: 16px; }
    .card-image-side { width: 100%; height: 180px; }
    .full-article-title { font-size: 1.75rem; }
}