/* =====================================================
   Al-Mashreq eBookstore — theme.css (Branding overrides)
   ===================================================== */

:root{
  --primary:#0b1b33;
  --accent:#f28a1b;
  --soft:#f5f7fb;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#586174;
  --border:#e6e9f2;
}

/* General background refinement */
body{
  background: var(--soft);
  color: var(--text);
}

/* =====================================================
   Header — Pills style (works for BOTH .topbar and .site-header)
   ===================================================== */
.site-header,
.topbar{
  background: var(--primary) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

/* IMPORTANT: match new container width (1400px) */
.site-header .container.inner,
.site-header .container,
.topbar .container{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  padding: 10px 16px !important;
  max-width: 1400px;
  margin:0 auto;
}

/* Brand */
.site-header .brand,
.topbar .brand{
  color:#fff !important;
}

.site-header .brand-title,
.topbar .brand-title{
  color:#fff !important;
  font-weight:900;
  font-size:16px;
  white-space:nowrap;
}

.site-header .brand-logo,
.topbar .brand-logo{
  width:44px !important;
  height:44px !important;
  border-radius:14px !important;
  background:#fff !important;
  padding:4px !important;
  display:block !important;
  box-shadow:0 8px 18px rgba(0,0,0,.25) !important;
}

/* Nav pills */
.site-header .navlink,
.topbar .navlink{
  color:#fff !important;
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.16) !important;
}
.site-header .navlink:hover,
.topbar .navlink:hover{
  background: rgba(255,255,255,.20) !important;
  border-color: rgba(255,255,255,.24) !important;
}
.site-header .navlink.active,
.topbar .navlink.active{
  background: rgba(255,255,255,.26) !important;
  border-color: rgba(255,255,255,.34) !important;
}

/* Mobile behavior */
@media (max-width:900px){
  .site-header .container.inner,
  .site-header .container,
  .topbar .container{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .site-header .nav,
  .topbar .nav{
    justify-content:center !important;
  }
}

/* Primary CTA */
.btn.primary,
button.primary{
  background: linear-gradient(90deg, #3b6edb 0%, var(--accent) 100%);
  color:#fff;
  border: none;
}
.btn.primary:hover,
button.primary:hover{
  opacity:.95;
}

/* Minor polish: sidebar button always full width */
.side-card .btn.primary{
  width:100%;
  height:44px;
  border-radius:14px;
}

/* Footer v2 (kept as-is, premium like header) */
.site-footer.v2{
  background: var(--primary, #0b1b33);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 40px;
}

.site-footer.v2 .footer-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px 22px;
  align-items: center;
  padding: 18px 16px;
}

.site-footer.v2 .foot-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.site-footer.v2 .foot-logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
  display: block;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.site-footer.v2 .foot-brand-text strong{
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.site-footer.v2 .foot-brand-text span{
  display: block;
  font-size: 13px;
  opacity: .82;
  margin-top: 3px;
}

.site-footer.v2 .foot-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer.v2 .foot-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.site-footer.v2 .foot-link:hover{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-1px);
}

.site-footer.v2 .foot-copy{
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
  font-size: 12px;
  opacity: .85;
}

@media (max-width: 860px){
  .site-footer.v2 .footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer.v2 .foot-brand{
    justify-content: center;
  }
  .site-footer.v2 .foot-nav{
    justify-content: center;
  }
}
