/*
Theme Name: Tubelight Talks Theme
Theme URI: https://tubelighttalks.com
Author: You
Description: Final Theme with 80s Ticker Speed
Version: 15.0
*/

/* VARIABLES */
:root { --red: #e63946; --dark: #1d3557; --white: #ffffff; --bg-light: #f4f5f7; --text-dark: #222; --card-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* GLOBAL RESET */
html, body { margin:0; padding:0; font-family:'Segoe UI', sans-serif; background: var(--bg-light); color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style:none; padding:0; margin:0; }
* { box-sizing: border-box; }

/* HEADER */
.top-bar { background: #14213d; color: white; padding: 0 5%; height: 40px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.v-nav { background: white; padding: 0 5%; height: 70px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; }
.logo { font-size: 26px; font-weight: 900; }
.logo span { color: var(--red); font-size: 12px; border: 1px solid var(--red); padding: 2px 6px; margin-left: 5px; border-radius: 3px; }
.desktop-menu ul { display: flex; gap: 20px; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.desktop-menu a:hover { color: var(--red); }
.hamburger-btn, .mobile-menu-drawer, .menu-overlay { display: none; }

/* TICKER (SLOW SPEED: 80s) */
.ticker-wrap { background: #000; color: white; height: 40px; display: flex; overflow: hidden; border-bottom: 3px solid var(--red); }
.ticker-heading { background: var(--red); padding: 0 15px; display: flex; align-items: center; font-weight: 800; font-size: 12px; z-index: 10; white-space: nowrap; }
.ticker { display: flex; align-items: center; animation: marquee 80s linear infinite; white-space: nowrap; padding-left: 100%; }
.ticker-item { margin-right: 40px; font-size: 13px; font-weight: 600; }
.info-bar { background: white; padding: 5px 5%; text-align: right; font-size: 12px; color: #666; font-weight: 600; border-bottom: 1px solid #eee; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* HERO & CONTENT */
.vartman-container { max-width: 1200px; margin: 0 auto; padding: 20px 15px; }
.hero-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; height: 400px; }
.main-slider-box { position: relative; border-radius: 10px; overflow: hidden; background: #000; height: 100%; box-shadow: var(--card-shadow); }
.slide-item { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.slide-item.active { opacity: 1; z-index: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.slide-info { position: absolute; bottom: 0; padding: 25px; color: white; z-index: 2; }
.cat-pill { background: var(--red); font-size: 10px; padding: 4px 8px; border-radius: 3px; font-weight: 700; text-transform: uppercase; }
.slide-title { font-size: 26px; margin: 10px 0 0; line-height: 1.2; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 10px 15px; cursor: pointer; z-index: 10; font-size: 18px; border-radius: 50%; transition: 0.3s; }
.prev-btn { left: 15px; } .next-btn { right: 15px; }
.slider-btn:hover { background: var(--red); }

.hero-sidebar { background: white; border-radius: 10px; padding: 15px; display: flex; flex-direction: column; box-shadow: var(--card-shadow); height: 100%; overflow: hidden; }
.sidebar-head { margin: 0 0 15px; font-size: 16px; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.sidebar-scroll { overflow-y: auto; flex-grow: 1; padding-right: 5px; }
.side-post-card { display: flex; gap: 12px; margin-bottom: 15px; padding: 8px; border-radius: 6px; transition: 0.2s; align-items: center; }
.side-post-card:hover { background: #f9f9f9; }
.side-img-box img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }
.side-title { font-size: 13px; margin: 0 0 4px; line-height: 1.4; color: #333; font-weight: 600; }
.side-time { font-size: 11px; color: #999; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 40px; }
.section-heading { border-left: 5px solid var(--red); padding-left: 15px; font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 25px; }
.news-card { display: flex; gap: 20px; background: white; border-radius: 10px; overflow: hidden; margin-bottom: 25px; padding: 20px; box-shadow: var(--card-shadow); transition: 0.3s; border: 1px solid #eee; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-image-wrap { width: 240px; flex-shrink: 0; }
.card-image-wrap img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.card-body { flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 20px; margin: 0 0 10px; line-height: 1.3; }
.card-excerpt { font-size: 14px; color: #666; margin-bottom: 15px; line-height: 1.6; }
.card-buttons { margin-top: auto; display: flex; gap: 12px; }
.btn-read { background: linear-gradient(45deg, #1d3557, #457b9d); color: white; padding: 8px 16px; border-radius: 50px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px rgba(29, 53, 87, 0.3); }

.live-widget { background: white; border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid #eee; }
.live-header { background: var(--dark); color: white; padding: 12px 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.blinking-dot { width: 10px; height: 10px; background: var(--red); border-radius: 50%; animation: pulse 1.5s infinite; }
.live-feed { padding: 20px; max-height: 400px; overflow-y: auto; }
.timeline-item { position: relative; padding-left: 20px; border-left: 2px dashed #ddd; margin-bottom: 20px; }
.timeline-item::before { content:''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; background: #ddd; border-radius: 50%; }
.timeline-item:first-child::before { background: var(--red); }
.time-marker { font-size: 10px; color: var(--red); font-weight: 800; margin-bottom: 2px; }
.time-content a { font-size: 13px; font-weight: 600; color: #333; line-height: 1.4; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* DARK MODE */
body.dark-mode { background: #121212; color: #e0e0e0; }
body.dark-mode .v-nav, body.dark-mode .info-bar { background: #1e1e1e; border-color: #333; }
body.dark-mode .logo a { color: white; }
body.dark-mode .hero-sidebar, body.dark-mode .news-card, body.dark-mode .live-widget { background: #1e1e1e; border-color: #333; }
body.dark-mode .side-title, body.dark-mode .card-title a, body.dark-mode .time-content a { color: #f0f0f0; }
body.dark-mode .card-excerpt, body.dark-mode .info-bar { color: #aaa; }
body.dark-mode .side-post-card:hover { background: #252525; }
body.dark-mode .main-search-btn { color: white; }

/* FOOTER CSS (Dark) */
.site-footer { background: #0b0f19; color: #ccc; padding: 50px 0 20px; margin-top: 50px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-logo { font-size: 24px; font-weight: 900; color: white; margin-bottom: 15px; display: block; }
.footer-logo span { color: var(--red); }
.footer-desc { line-height: 1.6; margin-bottom: 20px; }
.footer-head { color: white; font-size: 16px; font-weight: 700; margin-bottom: 20px; border-left: 3px solid var(--red); padding-left: 10px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--red); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #222; margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12px; color: #666; }

/* MOBILE */
@media (max-width: 768px) {
    .desktop-menu { display: none; }
    .hamburger-btn, .mobile-menu-drawer, .menu-overlay { display: block; }
    .menu-overlay { display: none; } .menu-overlay.active { display: block; }
    .hamburger-btn { border:none; background:none; font-size:24px; cursor:pointer; }
    .mobile-menu-drawer { position:fixed; top:0; left:-100%; width:250px; height:100%; background:white; z-index:2000; padding:20px; transition:0.3s; box-shadow:2px 0 10px rgba(0,0,0,0.1); }
    .mobile-menu-drawer.active { left:0; }
    .hero-section, .content-grid { display: block; height: auto; }
    .main-slider-box { height: 250px; margin-bottom: 20px; }
    .hero-sidebar { height: auto; margin-bottom: 30px; }
    .news-card { flex-direction: column; }
    .card-image-wrap { width: 100%; }
    .card-image-wrap img { height: 180px; }
    body.dark-mode .mobile-menu-drawer { background: #1e1e1e; }
    body.dark-mode .mobile-menu-drawer a { color: white; }
}






