/*
Theme Name: Reha News
Theme URI: https://rehanews.example.com
Author: Reha News Engineering Team
Author URI: https://rehanews.example.com
Description: Reha News (रेहा न्यूज़) - Production-ready, ultra-fast editorial news, magazine, and publishing theme inspired by tagDiv Newspaper (#5489609). Features multi-level dropdown menus, dual/single/no sidebar options, dynamic color customizer, auto-location weather, 18+ responsive ad slots, Review CPT, and Core Web Vitals optimization.
Version: 2.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reha-news
Tags: news, magazine, blog, custom-post-types, grid-layout, ad-management, entertainment, translation-ready, full-width-template
*/

:root {
  --reha-primary: #e11d48;
  --reha-primary-dark: #be123c;
  --reha-header-bg: #ffffff;
  --reha-header-text: #0f172a;
  --reha-topbar-bg: #0f172a;
  --reha-topbar-text: #cbd5e1;
  --reha-footer-bg: #0f172a;
  --reha-footer-text: #cbd5e1;
  --reha-container-width: 1280px;
  --reha-dark: #0f172a;
  --reha-light: #f8fafc;
  --reha-border: #e2e8f0;
  --reha-text: #334155;
  --reha-heading: #0f172a;
  --reha-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --reha-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  /* Legacy aliases for backward compatibility */
  --np-primary: var(--reha-primary);
  --np-dark: var(--reha-dark);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--reha-font-body);
  color: var(--reha-text);
  background-color: #f1f5f9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--reha-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 100% Fluid / Boxed Responsive Container (Prevents 50% shrink bug) */
.reha-container, .np-container {
  width: 100% !important;
  max-width: var(--reha-container-width, 1280px);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Anti-CLS Ad Containers */
.np-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  margin: 1.5rem auto;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.np-ad-slot::before {
  content: 'ADVERTISEMENT';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.np-ad-header { min-height: 90px; max-width: 728px; }
.np-ad-sidebar { min-height: 250px; width: 300px; }
.np-ad-in-article { min-height: 250px; max-width: 600px; }
.np-ad-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 50px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

/* Category Badges */
.np-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--np-primary);
  border-radius: 3px;
}

/* Review Box Styles */
.np-review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.np-review-score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--np-primary);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
}

/* Sticky Video Mini-Player */
.np-sticky-video.is-docked {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  height: 180px;
  z-index: 9998;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border-radius: 8px;
  overflow: hidden;
  animation: npSlideUp 0.3s ease forwards;
}

@keyframes npSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Paywall Scrim */
.np-paywall-scrim {
  position: relative;
  margin-top: -120px;
  padding-top: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 40%, #ffffff 100%);
  text-align: center;
}
