/*
Theme Name: Radio Magazine
Author: Generated by Devender
Description: Radio Magazine is a dynamic, modern, and fully responsive WordPress theme tailored for digital news magazines and online publications.
Version: 1.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radio-magazine
Tags: news, magazine, responsive, blog, featured-content, rtl, accessibility
*/

:root{
  --rm-bg: #ffffff;
  --rm-text: #111827;
  --rm-accent: #e11d48;
  --rm-muted: #6b7280;
  --rm-card: #f9fafb;
  --rm-transition: 200ms;
  --rm-max-width: 1200px;
}

[data-theme="dark"]{
  --rm-bg: #0b1220;
  --rm-text: #e6eef8;
  --rm-accent: #ff6b81;
  --rm-muted: #93a3b6;
  --rm-card: #071223;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:var(--rm-bg);
  color:var(--rm-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

.site { max-width: var(--rm-max-width); margin:0 auto; padding:18px; }

.header{ display:flex; align-items:center; justify-content:space-between; gap:12px; position:relative; z-index:40; }
.site-logo{ display:flex; align-items:center; gap:12px; }
.logo-text{ text-decoration:none; color:var(--rm-text); font-weight:700; font-size:1.125rem; }
.site-nav{ display:flex; gap:14px; align-items:center; }
.site-nav .nav-menu{ display:flex; gap:12px; list-style:none; margin:0; padding:0; }
.site-nav .nav-menu a{ text-decoration:none; color:var(--rm-text); padding:6px 8px; border-radius:6px; }
.site-nav .nav-menu a:hover{ background:rgba(0,0,0,0.04); }

.breaking-ticker{ background:var(--rm-accent); color:#fff; padding:6px 10px; border-radius:6px; font-weight:700; font-size:0.95rem; }

.header-right{ display:flex; gap:8px; align-items:center; }

.theme-toggle{ background:none; border:1px solid var(--rm-muted); padding:6px 8px; border-radius:6px; cursor:pointer; color:var(--rm-text); }

.main-grid{ display:grid; grid-template-columns: 1fr 320px; gap:20px; margin-top:18px; }
@media (max-width:900px){ .main-grid{ grid-template-columns:1fr; } .site-nav{ display:none; } }

.featured{ display:grid; grid-template-columns: 2fr 1fr; gap:12px; }
.featured .lead{ background:var(--rm-card); padding:12px; border-radius:8px; }
.card{ background:var(--rm-card); padding:12px; border-radius:8px; transition: transform var(--rm-transition); }
.card:hover{ transform: translateY(-4px); }

.grid-list{ display:grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.list-layout .post-row{ display:flex; gap:12px; align-items:flex-start; }

.h-1{ font-size:1.6rem; font-weight:700; margin:0 0 8px 0; }
.h-2{ font-size:1.125rem; font-weight:700; margin:0 0 8px 0; }
.small{ font-size:0.9rem; color:var(--rm-muted); }

.header.sticky{ position:fixed; top:0; left:0; right:0; background:var(--rm-bg); box-shadow:0 6px 18px rgba(0,0,0,0.08); }
.header-placeholder{ height:0; transition:height 200ms; }

.entry-content img{ max-width:100%; height:auto; display:block; margin:8px 0; }

.ad-slot{ background:linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02)); min-height:90px; display:flex; align-items:center; justify-content:center; border-radius:6px; color:var(--rm-muted); }

.sidebar .widget{ margin-bottom:16px; }

.footer{ margin-top:36px; padding:18px 0; border-top:1px solid rgba(0,0,0,0.06); color:var(--rm-muted); font-size:0.9rem; }

.screen-reader-text{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

.rtl body{ direction:rtl; }

.post-meta.small{ margin-top:18px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

.entry-content .live-flash{ background: rgba(255,250,205,0.6); padding:6px; border-radius:6px; }





/* responsive behaviors */
@media (max-width:1024px) { .header-inner{ flex-wrap:wrap; } .header-actions{ order:3; width:100%; justify-content:center; } }
@media (max-width:768px) {
  .breaking-toggle{ display:flex; }
  .breaking-wrap{ flex-direction:column; align-items:stretch; width:100%; }
  .breaking-content{ margin-top:6px; max-height:0; opacity:0; }
  .breaking-wrap.expanded .breaking-content{ max-height:80px; opacity:1; }
  .breaking-content{ width:100%; justify-content:center; }
}





/* === Header Responsive Layout === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* === Compact sticky header === */
.header-compact {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  z-index: 1000;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}
.header-compact.visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.compact-breaking-btn {
  background: #e11;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* === Responsive Navigation === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px;
  }
  .site-nav.active {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}

