/* === SHUNYA SHATABDI v3.8 ENHANCEMENTS CSS === */

/* ═══ MOBILE FULL-WIDTH FIX ═══ */
@media (max-width: 768px) {
  html, body { width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important; margin: 0 !important; padding: 0 !important; }
  .mc { padding: 8px 0 !important; max-width: 100% !important; width: 100% !important; overflow-x: hidden !important; margin: 0 !important; }
  .hs { grid-template-columns: 1fr !important; gap: 10px !important; margin: 0 0 16px 0 !important; padding: 0 !important; }
  .hero-wrap, .hm { min-height: 220px !important; border-radius: 0 !important; width: 100% !important; }
  .ho { padding: 14px 12px !important; }
  .htl { font-size: 20px !important; line-height: 1.35 !important; }
  .hsid { gap: 8px !important; padding: 0 !important; }
  .hsc { gap: 8px !important; border-radius: 0 !important; max-width: 100% !important; overflow: hidden !important; margin: 0 !important; }
  .hsc .cimg { width: 110px !important; min-width: 110px !important; height: 80px !important; flex-shrink: 0 !important; }
  .hsc .cb { padding: 8px 10px !important; flex: 1 !important; min-width: 0 !important; overflow: hidden !important; }
  .hsc .ctitle { font-size: 14px !important; line-height: 1.4 !important; -webkit-line-clamp: 2 !important; word-break: break-word !important; overflow-wrap: break-word !important; }
  .ng { grid-template-columns: 1fr !important; gap: 10px !important; margin: 0 0 16px 0 !important; padding: 0 !important; }
  .nc { border-radius: 0 !important; margin: 0 !important; width: 100% !important; }
  .cc { padding: 10px 12px !important; }
  .ch { font-size: 16px !important; line-height: 1.45 !important; }
  .ci { aspect-ratio: 16/9 !important; width: 100% !important; border-radius: 0 !important; }
  .ci img { width: 100% !important; height: 100% !important; }
  .cg { grid-template-columns: 1fr !important; gap: 10px !important; padding: 0 !important; }
  .sb { margin: 0 0 10px 0 !important; border-radius: 0 !important; width: 100% !important; }
  .sbh { padding: 10px 12px !important; font-size: 17px !important; }
  .ti { padding: 10px 12px !important; gap: 10px !important; }
  .tt { font-size: 14px !important; line-height: 1.5 !important; }
  .tn { font-size: 22px !important; min-width: 28px !important; }
  .sh { margin-bottom: 14px !important; padding: 0 10px 8px !important; }
  .st { font-size: 20px !important; }
  .sg { gap: 6px !important; padding: 0 !important; margin: 12px 0 !important; }
  .scard { padding: 6px 8px !important; border-radius: 8px !important; }
  .fg { grid-template-columns: 1fr !important; gap: 10px !important; padding: 0 !important; }
  .footer { padding: 24px 0 80px !important; overflow-x: hidden !important; }
  .footer-inner { padding: 0 10px !important; max-width: 100% !important; }
  .stg { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .stc { padding: 12px 8px !important; border-radius: 0 !important; }
  .breaking-ticker { height: 36px !important; width: 100% !important; border-radius: 0 !important; }
  .ticker-scroll span { font-size: 13px !important; }
  .mkt-strip { height: 30px !important; width: 100% !important; }
  .header-inner { padding: 6px 10px !important; }
  .main-header { width: 100% !important; }
  .logo-text-main { font-size: 22px !important; }
  .logo-icon { width: 40px !important; height: 40px !important; font-size: 20px !important; }
  .main-nav { width: 100% !important; }
  .main-nav .nav-inner { padding: 0 6px !important; }
  .nav-item { padding: 8px 10px !important; font-size: 14px !important; }
  /* News detail */
  .nd { padding: 16px 10px !important; max-width: 100% !important; }
  .nd h1 { font-size: 22px !important; line-height: 1.4 !important; }
  .nd .nd-body { font-size: 15px !important; line-height: 1.8 !important; }
  .nd .nd-share { flex-wrap: wrap !important; gap: 6px !important; }
  .nd .nd-share a { padding: 6px 12px !important; font-size: 12px !important; }
  /* Admin/Reporter panels */
  .ap { flex-direction: column !important; }
  .asb { width: 100% !important; max-height: 180px !important; }
  .ac { padding: 12px !important; margin-bottom: 10px !important; }
  .rp { flex-direction: column !important; }
  .rp .rsb { width: 100% !important; padding: 10px !important; }
  .at { display: block !important; overflow-x: auto !important; }
  .at th, .at td { padding: 8px !important; font-size: 12px !important; white-space: nowrap !important; }
  .cp { padding: 16px 10px !important; }
  .cp h1 { font-size: 22px !important; }
}

@media (max-width: 480px) {
  .mc { padding: 4px 0 !important; }
  .htl { font-size: 18px !important; }
  .hero-wrap, .hm { min-height: 200px !important; }
  .hsc .cimg { width: 95px !important; min-width: 95px !important; height: 70px !important; }
  .hsc .ctitle { font-size: 13px !important; }
  .ch { font-size: 15px !important; }
  .ng { gap: 8px !important; }
  .cc { padding: 8px 10px !important; }
  .st { font-size: 18px !important; }
  .tt { font-size: 13px !important; }
  .tn { font-size: 20px !important; }
  .footer { padding: 20px 0 80px !important; }
  .footer-inner { padding: 0 8px !important; }
  .stg { gap: 6px !important; }
  .stc { padding: 10px 6px !important; }
  .stn { font-size: 22px !important; }
  .header-inner { padding: 5px 6px !important; }
  .logo-text-main { font-size: 20px !important; }
  .logo-icon { width: 36px !important; height: 36px !important; font-size: 18px !important; }
  .nd { padding: 12px 8px !important; }
  .nd h1 { font-size: 20px !important; }
}

@media (max-width: 375px) {
  .mc { padding: 2px 0 !important; }
  .hsc .cimg { width: 85px !important; min-width: 85px !important; height: 65px !important; }
  .hsc .ctitle { font-size: 12px !important; }
  .htl { font-size: 17px !important; }
}


/* ═══ SOCIAL ICON CIRCLES ═══ */
.si, .scard .si { width: 32px !important; height: 32px !important; min-width: 32px !important; max-width: 32px !important; border-radius: 50% !important; background: rgba(255,255,255,.25) !important; display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; flex-shrink: 0 !important; box-sizing: border-box !important; }
.si img, .si svg, .scard .si img, .scard .si svg { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; border-radius: 2px !important; object-fit: contain !important; display: block !important; margin: 0 auto !important; }

/* Footer icons */
#fsc { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; }
#fsc a, #fsc a[style] { width: 34px !important; height: 34px !important; min-width: 34px !important; max-width: 34px !important; border-radius: 50% !important; background: rgba(255,255,255,.12) !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; padding: 0 !important; }
#fsc a img, #fsc a svg { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; border-radius: 2px !important; object-fit: contain !important; }
@media (max-width: 768px) {
  #fsc a { width: 30px !important; height: 30px !important; min-width: 30px !important; max-width: 30px !important; }
  .si, .scard .si { width: 26px !important; height: 26px !important; min-width: 26px !important; max-width: 26px !important; }
}

/* Share buttons */
.nd-share a img, .nd-share a svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; border-radius: 50% !important; object-fit: contain !important; display: inline-block !important; vertical-align: middle !important; margin-right: 5px !important; padding: 2px !important; background: rgba(255,255,255,.2) !important; box-sizing: border-box !important; }


/* ═══ WEATHER PERMANENT TAB ═══ */
.ss-weather-tab { position: fixed; bottom: 90px; left: 16px; z-index: 996; background: linear-gradient(135deg, #0f4c75, #1b6ca8); color: #fff; border-radius: 14px; padding: 14px 18px; font-family: 'Rajdhani', sans-serif; box-shadow: 0 6px 30px rgba(15,76,117,.5); max-width: 260px; min-width: 200px; opacity: 0; transform: translateY(20px) scale(.95); transition: all .5s cubic-bezier(.4,0,.2,1); backdrop-filter: blur(10px); }
.ss-weather-tab.show { opacity: 1; transform: translateY(0) scale(1); }
.ss-weather-tab.collapsed { padding: 8px 14px !important; max-width: 180px !important; min-width: 140px !important; cursor: pointer; }
.ss-weather-tab.collapsed .wt-details, .ss-weather-tab.collapsed .wt-aqi { display: none; }
.wt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; }
.wt-city { opacity: .9; font-weight: 600; }
.wt-live { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.wt-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: wtBlink 1.2s infinite; }
@keyframes wtBlink { 0%,100%{opacity:1} 50%{opacity:.2} }
.wt-main { display: flex; align-items: center; gap: 10px; }
.wt-icon { font-size: 36px; line-height: 1; }
.wt-temp { font-size: 28px; font-weight: 800; line-height: 1; }
.wt-desc { font-size: 12px; opacity: .85; margin-top: 2px; }
.wt-details { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wt-chip { background: rgba(255,255,255,.1); padding: 4px 8px; border-radius: 6px; font-size: 11px; display: flex; flex-direction: column; align-items: center; }
.wtc-v { font-weight: 700; font-size: 13px; }
.wt-aqi { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wt-aqi-badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.wt-aqi-txt { font-size: 10px; opacity: .8; }
.wt-aqi-good { background: #16a34a; }
.wt-aqi-mod { background: #ca8a04; }
.wt-aqi-bad { background: #ea580c; }
.wt-aqi-vbad { background: #dc2626; }
.wt-aqi-haz { background: #7c2d12; }
.wt-toggle { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.2); border: none; color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.blink-border { animation: wtBorderBlink 3s infinite; }
@keyframes wtBorderBlink { 0%,100%{box-shadow: 0 6px 30px rgba(15,76,117,.5)} 50%{box-shadow: 0 0 20px rgba(14,165,233,.6), 0 6px 30px rgba(15,76,117,.5)} }
@media (max-width: 768px) {
  .ss-weather-tab { bottom: 76px; left: 6px; right: 6px; max-width: none; min-width: 0; padding: 10px 12px; }
  .ss-weather-tab.collapsed { max-width: 160px !important; left: 6px; right: auto; }
}


/* ═══ WHATSAPP CHANNEL STYLES ═══ */
.wap-channel-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; transition: .2s; }
.wap-channel-card:hover { box-shadow: 0 2px 12px rgba(37,211,102,.15); border-color: #25D366; }
.wap-ch-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: linear-gradient(135deg, #25D366, #128C7E); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.wap-ch-info { flex: 1; min-width: 0; }
.wap-ch-name { font-weight: 700; font-size: 14px; color: #075E54; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wap-ch-url { font-size: 11px; color: #999; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wap-ch-cat { font-size: 11px; color: #25D366; font-weight: 600; }
.wap-ch-actions { display: flex; gap: 6px; flex-shrink: 0; }
.wap-ch-btn { padding: 5px 10px; border: none; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; }
.wap-ch-open { background: #25D366; color: #fff; }
.wap-ch-del { background: #f5f5f5; color: #e53935; }


/* ═══ COLOR THEMES ═══ */
.color-picker-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.color-swatch { width: 42px; height: 42px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: .2s; }
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: #333; box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
[data-accent="blue"] { --primary: #1565C0; --primary-light: #42A5F5; --grad-red: linear-gradient(135deg, #1565C0, #42A5F5); }
[data-accent="green"] { --primary: #2E7D32; --primary-light: #66BB6A; --grad-red: linear-gradient(135deg, #2E7D32, #66BB6A); }
[data-accent="purple"] { --primary: #6A1B9A; --primary-light: #AB47BC; --grad-red: linear-gradient(135deg, #6A1B9A, #AB47BC); }
[data-accent="orange"] { --primary: #E65100; --primary-light: #FF9800; --grad-red: linear-gradient(135deg, #E65100, #FF9800); }
[data-accent="teal"] { --primary: #00695C; --primary-light: #26A69A; --grad-red: linear-gradient(135deg, #00695C, #26A69A); }


/* ═══ EDITOR/TIMESTAMP TAGS ═══ */
.editor-tag { background: linear-gradient(135deg, #f3e5f5, #e8eaf6); padding: 2px 10px; border-radius: 12px; font-size: 11px; font-family: 'Rajdhani', sans-serif; font-weight: 600; color: #6A1B9A; display: inline-flex; align-items: center; gap: 3px; }
.time-tag { background: #f5f5f5; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-family: 'Rajdhani', sans-serif; color: #666; display: inline-flex; align-items: center; gap: 3px; }
.update-tag { background: #fff8e1; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-family: 'Rajdhani', sans-serif; color: #e65100; display: inline-flex; align-items: center; gap: 3px; }
