/*
 * Theme Name:  Fameup Child
 * Theme URI:   https://rashaburhan.com
 * Description: Child theme for Fameup — RTL Arabic customisations for Rasha Burhan blog
 * Author:      Rasha Burhan
 * Author URI:  https://rashaburhan.com
 * Template:    fameup
 * Version:     10.3.0
 * Text Domain: fameup-child
 */

/* ============================================================
   1. CARD BORDER RADIUS
   ============================================================ */
.bs-blog-post {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* ============================================================
   2. IMAGE BORDER RADIUS
   ============================================================ */
.bs-blog-thumb,
.bs-blog-thumb img,
.wp-post-image,
.img-small-post,
.media-img {
  border-radius: 12px !important;
}
.bs-blog-thumb {
  overflow: hidden !important;
}

/* ============================================================
   2b. FONT UNIFICATION — all headings inherit body font
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.title, .post-title, .entry-title,
.widget-title, .page-title, .section-title,
.card-title, .site-title,
#rb-hero h1, #rb-hero p {
  font-family: inherit !important;
}

/* ============================================================
   3. HIDE ORIGINAL THEME HEADER COMPLETELY
   ============================================================ */
.bs-header-main,
.bs-head-detail,
.bs-header,
.site-header,
header.site-header,
[class*="bs-header"],
.bs-header-banner,
.bs-header-ad,
.header-banner,
.header-ads-area,
.bs-pro-banner,
.custom-header,
.header-image,
.header-image-link,
.bs-header-image {
  display: none !important;
}

/* ============================================================
   3b. HIDE SECONDARY WHITE NAVBAR (theme's second nav bar)
   ============================================================ */
.navbar-wp,
.navbar-wp .menu-item-home,
.navbar-wp li.current_page_item,
.navbar-wp .nav-item:first-child {
  display: none !important;
}

/* ============================================================
   4. CUSTOM HEADER — #rb-header
   ============================================================ */
#rb-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  width: 100%;
  background: #1F1B2C;
  border-bottom: 1px solid rgba(201,172,101,0.20);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.rb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  direction: rtl;
}

/* Logo — right side (RTL start) */
.rb-header__logo {
  flex-shrink: 0;
}
.rb-header__logo img,
.rb-header__logo a img {
  max-height: 50px;
  width: auto;
  display: block;
}
.rb-header__logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #C9AC65;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.rb-header__logo-text:hover {
  color: #DFC07A;
}

/* Nav — center */
.rb-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.rb-header__nav ul,
.rb-header__nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.rb-header__nav ul li,
.rb-header__nav .menu li {
  margin: 0;
}
.rb-header__nav ul li a,
.rb-header__nav .menu li a {
  display: block;
  padding: 6px 14px;
  color: rgba(234,230,243,0.85) !important;
  text-decoration: none !important;
  font-size: 15px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.rb-header__nav ul li a:hover,
.rb-header__nav .menu li a:hover,
.rb-header__nav ul li.current-menu-item > a,
.rb-header__nav .menu li.current-menu-item > a {
  color: #C9AC65 !important;
  background: rgba(201,172,101,0.10);
}

/* CTA subscribe button — left side (RTL end) */
.rb-header__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid #C9AC65;
  border-radius: 20px;
  color: #C9AC65 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.rb-header__cta:hover {
  background: #C9AC65;
  color: #1F1B2C !important;
}

/* Hamburger button — hidden on desktop */
.rb-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.rb-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #C9AC65;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile nav drawer */
.rb-mobile-nav {
  display: none;
  background: #1F1B2C;
  border-top: 1px solid rgba(201,172,101,0.15);
}
.rb-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.rb-mobile-nav ul li a {
  display: block;
  padding: 10px 20px;
  color: rgba(234,230,243,0.85) !important;
  text-decoration: none !important;
  font-size: 15px;
  border-bottom: 1px solid rgba(201,172,101,0.07);
  text-align: right;
  transition: color 0.2s ease, background 0.2s ease;
}
.rb-mobile-nav ul li:last-child a {
  border-bottom: none;
}
.rb-mobile-nav ul li a:hover {
  color: #C9AC65 !important;
  background: rgba(201,172,101,0.08);
}

/* Mobile — show hamburger, hide desktop nav */
@media (max-width: 768px) {
  .rb-hamburger {
    display: flex;
  }
  .rb-header__nav {
    display: none;
  }
  .rb-header__inner {
    padding: 0 14px;
    height: 54px;
  }
  .rb-header__cta {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* Hamburger open state */
#rb-header.nav-open .rb-mobile-nav {
  display: block;
}
#rb-header.nav-open .rb-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#rb-header.nav-open .rb-hamburger span:nth-child(2) {
  opacity: 0;
}
#rb-header.nav-open .rb-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   5. HERO SECTION — hidden
   ============================================================ */
#rb-hero {
  display: none !important;
}

#rb-hero-UNUSED {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, #1F1B2C 0%, #2B2438 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  direction: rtl;
}

/* Stars via box-shadow — no background-image */
#rb-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
     20px  15px 0 1px rgba(201,172,101,0.90),
     75px 120px 0 0   rgba(255,255,255,0.65),
    140px  40px 0 1px rgba(201,172,101,0.70),
    200px 175px 0 0   rgba(255,255,255,0.55),
    265px  60px 0 1px rgba(201,172,101,0.85),
    320px 100px 0 0   rgba(255,255,255,0.70),
    390px  20px 0 1px rgba(201,172,101,0.65),
    450px 195px 0 0   rgba(255,255,255,0.60),
    510px  80px 0 1px rgba(201,172,101,0.80),
    570px 140px 0 0   rgba(255,255,255,0.75),
    635px  30px 0 1px rgba(201,172,101,0.55),
    695px 210px 0 0   rgba(255,255,255,0.65),
    755px  75px 0 1px rgba(201,172,101,0.90),
    810px 160px 0 0   rgba(255,255,255,0.50),
    875px  10px 0 1px rgba(201,172,101,0.75),
    935px 230px 0 0   rgba(255,255,255,0.80),
   1000px  50px 0 1px rgba(201,172,101,0.60),
   1055px 185px 0 0   rgba(255,255,255,0.55),
   1120px 120px 0 1px rgba(201,172,101,0.85),
   1175px  30px 0 0   rgba(255,255,255,0.70),
   1240px 165px 0 1px rgba(201,172,101,0.75),
   1300px  75px 0 0   rgba(255,255,255,0.60),
   1365px 230px 0 1px rgba(201,172,101,0.55),
   1420px  45px 0 0   rgba(255,255,255,0.85),
     55px  95px 0 0   rgba(201,172,101,0.65),
    170px 220px 0 1px rgba(255,255,255,0.60),
    290px 150px 0 0   rgba(201,172,101,0.80),
    430px  10px 0 1px rgba(255,255,255,0.50),
    600px 230px 0 0   rgba(201,172,101,0.70),
    720px  50px 0 1px rgba(255,255,255,0.75),
    850px 190px 0 0   rgba(201,172,101,0.85),
    990px  30px 0 1px rgba(255,255,255,0.65),
   1100px 310px 0 0   rgba(201,172,101,0.60),
   1220px  90px 0 1px rgba(255,255,255,0.55),
   1350px 280px 0 0   rgba(201,172,101,0.80);
  animation: rb-stars-twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Bottom glow */
#rb-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 100%, rgba(201,172,101,0.12) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes rb-stars-twinkle {
  0%   { opacity: 0.55; }
  100% { opacity: 1; }
}

.rb-hero__content {
  position: relative;
  z-index: 1;
}

.rb-hero__title,
.rb-hero__subtitle {
  font-family: inherit !important; /* identical font, only size differs */
}

.rb-hero__title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: #C9AC65;
  margin: 0 0 12px;
  line-height: 1.25;
  text-shadow: 0 0 40px rgba(201,172,101,0.40);
}

.rb-hero__subtitle {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  color: rgba(234,230,243,0.88);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   5b. INTRO SECTION — #rb-intro (2-column, homepage only)
   ============================================================ */
#rb-intro {
  background: linear-gradient(135deg, #1F1B2C 0%, #2B2438 100%);
  padding: 60px 20px;
  direction: rtl;
  border-top: 1px solid rgba(201,172,101,0.15);
}

.rb-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* Left column — photo */
.rb-intro__image {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}
.rb-intro__image img {
  width: 220px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(201,172,101,0.3);
  object-fit: cover;
  display: block;
}
.rb-intro__photo-placeholder {
  width: 220px;
  height: 280px;
}
.rb-intro__photo-placeholder {
  background: rgba(201,172,101,0.12);
  display: none;
  align-items: center;
  justify-content: center;
}

/* Right column — text */
.rb-intro__text {
  flex: 1;
}
.rb-intro__title {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  color: #C9AC65 !important;
  margin: 0 0 12px;
  line-height: 1.3;
}
.rb-intro__subtitle {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 500;
  color: rgba(234,230,243,0.90);
  margin: 0 0 16px;
  line-height: 1.5;
}
.rb-intro__desc {
  font-size: 15px;
  color: rgba(234,230,243,0.68);
  line-height: 1.8;
  margin: 0 0 28px;
}
.rb-intro__btn {
  display: inline-block;
  background: #C9AC65;
  color: #1F1B2C !important;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.rb-intro__btn:hover {
  background: #DFC07A;
}

/* Mobile — stack to 1 column */
@media (max-width: 768px) {
  #rb-intro {
    padding: 40px 20px;
  }
  .rb-intro__inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .rb-intro__image {
    flex: none;
  }
  .rb-intro__image img {
    width: 180px;
    margin: 0 auto;
  }
  .rb-intro__photo-placeholder {
    width: 180px;
    height: 220px;
    margin: 0 auto;
  }
}

/* ============================================================
   6. REMOVE FOOTER CREDIT — all known selectors
   ============================================================ */
.site-info,
#colophon .site-info,
footer .site-info,
.footer-bottom,
.footer-credit,
.footer-bottom-bar,
.bs-footer-bottom,
.bs-footer-copyright,
.bs-footer-copyright .site-info,
[class*="site-info"],
[class*="footer-credit"],
[class*="footer-bottom"],
[class*="footer-copyright"] {
  display: none !important;
}

/* ============================================================
   7. FOOTER REDESIGN — dark background
   ============================================================ */
#colophon,
.site-footer,
.bs-footer,
footer#colophon {
  background: #1F1B2C !important;
  border-top: 1px solid rgba(201,172,101,0.15) !important;
}

/* Custom footer bar injected via PHP */
.rb-footer-bar {
  background: #1F1B2C;
  border-top: 1px solid rgba(201,172,101,0.25);
  padding: 36px 20px 32px;
  text-align: center;
  direction: rtl;
}

.rb-footer-name {
  font-size: 22px;
  font-weight: 700;
  color: #C9AC65;
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}

.rb-footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rb-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201,172,101,0.12);
  border: 1px solid rgba(201,172,101,0.30);
  color: #C9AC65 !important;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.rb-footer-social a:hover {
  background: #C9AC65;
  border-color: #C9AC65;
  transform: translateY(-3px);
}

.rb-footer-social a:hover svg {
  fill: #1F1B2C;
}

.rb-footer-social svg {
  width: 18px;
  height: 18px;
  fill: #C9AC65;
  flex-shrink: 0;
  transition: fill 0.25s ease;
}

.rb-footer-copy {
  font-size: 13px;
  color: rgba(234,230,243,0.45);
  margin: 0;
}

/* ============================================================
   8. HEADING COLORS — gold
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a,
.widget-title,
.page-title,
.section-title {
  color: #C9AC65 !important;
}
.entry-title a:hover {
  color: #DFC07A !important;
}

/* ============================================================
   9. NUMBERS — force Western Arabic numerals
   ============================================================ */
@font-face {
  font-family: 'rb-num-fix';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('sans-serif');
  unicode-range: U+0030-U+0039, U+0660-U+0669, U+06F0-U+06F9;
}
body,
.post-date, time, [datetime],
.entry-date, .entry-meta,
.comment-count, .nav-links,
.page-numbers, .pagination {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ============================================================
   10. REMOVE CAROUSEL, SLIDER & TRENDING BAR
   ============================================================ */
.bs-slider,
.main-slider,
.featured-slider,
.home-slider,
.slick-slider,
.owl-carousel,
.carousel,
.bs-slider-area,
.bs-latest-news,
.homemain,
.swiper,
.swiper-container,
.trending-bar,
.bs-trending,
[class*="slider"],
[id*="slider"],
[class*="carousel"],
[class*="trending"],
[class*="swiper"] {
  display: none !important;
}

/* ============================================================
   10a. STANDALONE SEARCH BAR — mobile only
   ============================================================ */
@media (min-width: 992px) {
  #rb-search-bar {
    display: none;
  }
}

/* ============================================================
   10b. MOBILE — search bar visible and centered
   ============================================================ */
@media (max-width: 991px) {
  .m-header .msearch,
  .navbar-collapse .search-form,
  .navbar-collapse input[type="search"],
  .navbar-collapse .bs-search-box,
  .bs-search-box,
  .msearch,
  .bs-search-form,
  .header-search,
  input[type="search"],
  .search-field {
    display: block !important;
    width: 90% !important;
    margin: 10px auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* Hide "Sample Page" (page-type items) in any leftover theme nav */
li.page_item,
.menu-item-object-page {
  display: none !important;
}

/* ============================================================
   11. RTL DIRECTION
   ============================================================ */
html {
  direction: rtl;
}
body,
.site,
.entry-content,
.widget-area {
  direction: rtl;
  text-align: right;
}

/* ============================================================
   12. FLOATING WHATSAPP BUTTON — bottom-left, clean 50px
   ============================================================ */
.rb-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.rb-whatsapp-btn:hover {
  transform: scale(1.1);
  background: #1DAA55;
}
.rb-whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .rb-whatsapp-btn {
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
  }
  .rb-whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================================
   13. CTA BLOCK — visible on single posts only
   ============================================================ */

/* Hide on homepage / archives / everywhere except single post */
body:not(.single) .rb-cta-block,
body:not(.single) .entry-content div[style*="linear-gradient"],
body:not(.single) .post-content div[style*="linear-gradient"] {
  display: none !important;
}

/* Ensure our injected CTA shows on single posts */
body.single .rb-cta-block {
  display: block !important;
}
