* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background: #f8fafc; padding: 10px; overflow-y: scroll; scroll-behavior: smooth; min-height: 100vh; display: flex; flex-direction: column; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 10px; }

.header { background: #0f172a; color: white; padding: 10px 14px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.header h1 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.header h1 span { color: #38bdf8; }
.header-logo { height: 24px; width: 24px; border-radius: 50%; object-fit: cover; border: 2px solid #38bdf8; }
.header-controls { display: flex; gap: 8px; align-items: center; }

.search-btn { background: #1e293b; border: 1px solid #475569; color: white; border-radius: 5px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.search-btn:hover { background: #38bdf8; border-color: #38bdf8; color: #0f172a; }

.search-container { display: none; background: #fff; padding: 10px; border-radius: 0 0 8px 8px; border: 1px solid #e2e8f0; gap: 10px; margin-bottom: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.search-container.active { display: flex; }
.search-container input { flex: 1; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; outline: none; }
.search-container button { background: #2563eb; color: white; border: none; padding: 8px 15px; border-radius: 6px; font-weight: 600; cursor: pointer; }

.lang-selector { background: #1e293b; border: 1px solid #475569; color: white; padding: 5px 8px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.hamburger span { display: block; width: 20px; height: 2px; background: white; border-radius: 2px; }

.live-badge { background: #dc2626; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; animation: blink 1.5s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: 0.4s; z-index: 999; }
.overlay.active { opacity: 1; visibility: visible; }

.sidebar { position: fixed; top: 0; right: -300px; width: 300px; height: 100%; background: #1e293b; box-shadow: -4px 0 12px rgba(0,0,0,0.2); transition: right 0.4s ease; z-index: 1000; display: flex; flex-direction: column; }
.sidebar.open { right: 0; }
.sidebar-header { padding: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; }
.sidebar-header h2 { font-size: 16px; color: #fff; font-weight: 600; }
.close-btn { background: none; border: none; color: #94a3b8; font-size: 26px; cursor: pointer; line-height: 1; transition: 0.3s; }
.close-btn:hover { color: #fff; }
.sidebar-menu { padding: 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; }
.sidebar-menu a { color: #cbd5e1; text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 15px; border-radius: 6px; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.sidebar-menu a:hover { background: #334155; color: #fff; }

.main-content { flex: 1; margin-top: 15px; }
.status-bar { background: #ffffff; padding: 10px 15px; border-radius: 8px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; border: 1px solid #e2e8f0; color: #475569; }
.status-bar button { background: #0f172a; color: white; border: none; padding: 6px 15px; border-radius: 5px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.status-bar button:hover { background: #1e3a8a; }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { background: #ffffff; border-radius: 10px; display: flex; gap: 12px; padding: 12px; border: 1px solid #e9edf2; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.news-img { width: 100px; height: 90px; border-radius: 8px; object-fit: cover; background: #e2e8f0; flex-shrink: 0; }
.news-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-title { font-size: 15px; font-weight: 600; line-height: 1.5; color: #1e293b; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-title a { text-decoration: none; color: inherit; }
.news-title a:hover { color: #2563eb; }
.news-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #64748b; margin-top: 6px; flex-wrap: wrap; }
.news-source { background: #f1f5f9; padding: 2px 8px; border-radius: 4px; font-weight: 600; color: #475569; }
.local-tag { background: #dcfce7; color: #166534; padding: 0 6px; border-radius: 4px; font-size: 9px; font-weight: bold; margin-left: 4px; }
.ai-tag { background: #dbeafe; color: #2563eb; padding: 0 6px; border-radius: 4px; font-size: 9px; font-weight: bold; }

.share-btn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: #2563eb; font-weight: 600; font-size: 12px; background: #dbeafe; padding: 4px 8px; border-radius: 4px; transition: 0.3s; }
.share-btn:hover { background: #bfdbfe; }

.loader { text-align: center; padding: 25px; background: white; border-radius: 10px; color: #2563eb; font-weight: 600; }

.footer { background: #0f172a; color: #94a3b8; text-align: center; margin-top: 20px; padding: 20px; border-radius: 10px 10px 0 0; }
.footer-copy { font-size: 13px; margin-bottom: 10px; color: #cbd5e1; font-weight: 500; }
.footer-copy span { color: #38bdf8; }
.footer-links { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 13px; transition: 0.3s; }
.footer-links a:hover { color: #fff; }

.pwa-float { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: #2563eb; color: white; border: none; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; cursor: pointer; box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4); z-index: 1000; transition: transform 0.3s ease, background 0.3s; }
.pwa-float:hover { transform: scale(1.1); background: #1e3a8a; }
.pwa-float:active { transform: scale(0.95); }
