/*
Theme Name: Qabsa
*/

/* =========================
   Fonts
========================= */
@font-face { font-family: label; src: url(Somar-Bold.otf); font-display: swap; }
@font-face { font-family: logo; src: url(Somar-Bold.otf); font-display: swap; }
@font-face { font-family: thetitle; src: url(Alyamama-Regular.ttf); font-display: swap; }
@font-face { font-family: caption; src: url(Alyamama-Light.ttf); font-display: swap; }
@font-face { font-family: contentfont; src: url(Alyamama-Light.ttf); font-display: swap; }
@font-face { font-family: fact; src: url(Somar-Light.otf); font-display: swap; }
@font-face { font-family: factbold; src: url(Somar-Bold.otf); font-display: swap; }

/* =========================
   Base
========================= */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  direction: rtl;
}

body {
  margin: 0;
  min-height: 100%;
  background: #F4F4F4;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.wrapper,
.header,
.container {
  overflow-x: hidden;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  background: #FFF;
}

/* =========================
   Header
========================= */
.header {
  position: relative;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
  border-bottom: 1px solid #EEE;
  direction: rtl;
  overflow: visible;
}

/* Logo centered */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: logo, Arial, sans-serif;
  color: #000;
  z-index: 5;
}

.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #000;
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
}

.logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

/* Menu icon right */
.menu-toggle {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.menu-toggle svg {
  display: block;
  fill: currentColor;
}

/* Search icon left */
.search-icon-link {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.search-icon-link svg {
  display: block;
  fill: currentColor;
}

/* Old tools wrapper - kept safe if used elsewhere */
.tools {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.tools a {
  display: flex;
  align-items: center;
  justify-content: center;
}


.menu {
    background-color: #FFF;
    text-align: right;
    font-family: 'contentfont';
    font-size: 13px;
    padding: 10px;
	border-bottom:1px solid #EEE; 
	color:#000;
}

.menu a {
    text-decoration: none;
    color: #000;
}

.menu a:hover {
    text-decoration: underline;
    color: #404640;
}

/* Like / share tools */
.tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  direction: rtl;
  border-top: 1px solid #e5e5e5;
  margin-top: 12px;
  padding-top: 8px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.seplist {
  border-bottom: 1px #EEE solid;
}

.post-like-box {
  text-align: right;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 12px;
  font-family: courier new;
}

.article-share-box {
  text-align: left;
  direction: ltr;
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.article-share-box button {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.post-like-box .pld-like-dislike-wrap,
.post-like-box .pld-common-wrap,
.post-like-box .pld-like-wrap,
.post-like-box .pld-dislike-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Search form - old style, kept only if you use it somewhere else */
.header-search-form {
  width: 100%;
  max-width: 280px;
  height: 30px;
  padding: 0 10px;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
  border: 2px solid #FFC90E;
  border-radius: 999px;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: fact, Arial, sans-serif;
  font-size: 14px;
  color: #555;
  text-align: right;
  direction: rtl;
}

.header-search-input::placeholder {
  color: #9A9A9A;
}

.header-search-btn {
  flex: 0 0 auto;
  margin: 0 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8A8A8A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-btn svg {
  display: block;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  z-index: 1001;
  width: 250px;
  height: 100%;
  background: #FFF;
  color: #000;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  text-align: right;
  font-family: factbold, Arial, sans-serif;
  font-size: 18px;
  transition: right 0.3s ease;
}

.sidebar.open {
  right: 0;
}

.sidebar a {
  display: block;
  padding: 15px;
  color: #000;
  border-bottom: 1px solid #EEE;
}

.sidebar a:hover {
  background: #444;
  color: #FFF;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
}

.overlay.active {
  display: block;
}

/* =========================
   Layout
========================= */
.container {
  margin: 0 auto;
  padding: 20px;
  background: #FFF;
}

/* =========================
   Titles / Labels
========================= */
h2 {
  margin: 20px 0 30px;
  text-align: right;
  line-height: 0.1em;
  font-family: thetitle, Arial, sans-serif;
  font-weight: normal;
}

h2 span {
  padding-left: 10px;
  background: #FFF;
  font-size: 16px;
}

.label {
  padding: 0 0 5px;
  color: #E87423;
  font-family: label, Arial, sans-serif;
  font-size: 16px;
  border-bottom: 1px #E87423 solid;
}

.label a {
  color: #E87423;
}

/* =========================
   Articles
========================= */
.articles-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.article-card {
  display: block;
  width: 100%;
  padding: 20px 0 22px;
  background: #FFF;
  border-bottom: 1px solid #EEE;
  border-radius: 0;
  font-family: fact, Arial, sans-serif;
}

.article-card:last-child,
.articles-grid .article-card:last-child {
  margin-bottom: 0;
  border-bottom: 0 !important;
}

.article-card:last-child::after,
.articles-grid .article-card:last-child::after {
  display: none !important;
}

.article-icon {
  flex: 1;
  margin-bottom: 10px;
  color: #111;
  font-family: factbold, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.article-text {
  color: #111;
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-text a {
  font-size: 13px !important;
}

.article-text span {
  color: #FF7A00;
  font-weight: bold;
}

.article-card.is-clickable:hover .article-text {
  color: #000;
}

/* Single title + copy icon */
.article-head {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: rtl;
}

.article-head .article-icon {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: right;
  color: #111;
  font-family: factbold, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-head .article-share-box {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
}

.copy-link-btn,
.share-toggle.copy-link-btn {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.copy-link-btn svg,
.share-toggle.copy-link-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  transition: stroke 0.2s ease;
}

.copy-link-btn:hover {
  background: #F3F3F3;
}

.copy-link-btn.copied {
  background: #E6F4EA;
}

.copy-link-btn.copied svg {
  stroke: #2E7D32;
}

.copy-msg {
  position: absolute;
  top: 50%;
  left: 42px;
  transform: translateY(-50%);
  z-index: 5;
  padding: 7px 10px;
  background: #111;
  color: #FFF;
  border-radius: 14px;
  font-family: fact, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.article-share-box.show-copy-msg .copy-msg {
  opacity: 1;
  visibility: visible;
}

/* Article list */
ul.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.article-list li {
  position: relative;
  margin: 0;
  padding-right: 18px;
  direction: rtl;
}

ul.article-list li::before {
  content: "○";
  position: absolute;
  top: 0;
  right: 0;
}

/* =========================
   YARPP
========================= */
.yarpp .article-text {
  font-size: 14px;
}

.yarpp .article-text a {
  font-size: 13px !important;
}

/* =========================
   Bottom Navigation
========================= */
.bottom-nav {
  clear: both;
  overflow: hidden;
  margin-top: 25px;
  font-family: fact, Arial, sans-serif;
  font-size: 14px;
}

.bottom-nav-left {
  float: left;
}

.bottom-nav-right {
  float: right;
}

.bottom-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: #000;
  background: #FFF;
  border: 1px solid #DDD;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.2s ease;
}

.bottom-nav a:hover {
  background: #F5F5F5;
  border-color: #BBB;
}

/* =========================
   Footer
========================= */
.footer {
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  background: #F4F4F4;
  border-top: 1px solid #EEE;
  border-bottom: 1px solid #EEE;
  font-family: fact, Arial, sans-serif;
}

/* =========================
   Responsive
========================= */
@media screen and (min-width: 768px) {
  .wrapper {
    width: 600px;
  }
}

@media screen and (max-width: 600px) {
  .header {
    height: 64px;
  }

  .logo a {
    font-size: 29px;
    gap: 6px;
  }

  .logo img {
    width: 26px;
    height: 26px;
  }

  .menu-toggle {
    right: 18px;
  }

  .search-icon-link {
    left: 18px;
	  color:#000;
  }

  .menu-toggle svg,
  .search-icon-link svg {
    width: 24px;
    height: 24px;
	  	  color:#000;
  }

  .header-search-form {
    max-width: 180px;
    height: 28px;
  }

  .header-search-input {
    font-size: 13px;
  }

  .header-search-btn svg {
    width: 20px;
    height: 20px;
  }

  .article-icon {
    font-size: 16px;
  }

  .article-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  .article-head .article-icon {
    font-size: 14px;
    line-height: 1.55;
  }

  .copy-link-btn,
  .share-toggle.copy-link-btn {
    width: 32px;
    height: 32px;
  }

  .copy-msg {
    left: 38px;
  }

  .article-text,
  .article-text a,
  .yarpp .article-text,
  .yarpp .article-text a {
    font-size: 14px !important;
  }
}

@media screen and (max-width: 480px) {
  .wrapper {
    width: 100%;
  }
}

.section-title {
    color: #E87423;
    font-family: label;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    direction: rtl;
}

.section-title span {
    width: 110px;
    white-space: nowrap;
    text-align: right;
}

.section-title div {
    height: 1px;
    background: #f26b21;
    flex: 1;
}

.source{background:#F2F6FB; padding:5px 20px ; margin-top: 10px; text-align:right;  font-family:fact; font-size:12px;}

.tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.article-source-box {
    text-align: right;
	font-size: 12px;
}

.article-actions-box {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.article-share-box,
.post-like-box {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .tool {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .article-source-box {
        text-align: right;
    }

    .article-actions-box {
        justify-content: flex-start;
    }
}

.qabsa-random-wrap {
    direction: rtl;
    text-align: right;
}

.qabsa-random-section {
    margin-bottom: 34px;
}

.qabsa-random-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.qabsa-random-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #E87423;
   // background: linear-gradient(135deg, #fff7f0 0%, #ffffff 100%);
    border: 1px solid rgba(232, 116, 35, 0.20);
    border-radius: 999px;
    padding: 7px 13px 8px;
    font-family: label, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    //box-shadow: 0 4px 12px rgba(232, 116, 35, 0.08);
}

/* إزالة النقطة بجانب العنوان */
.qabsa-random-title:before {
    content: none !important;
    display: none !important;
}

.qabsa-random-line {
    height: 2px;
    flex: 1;
    border-radius: 30px;
    background: linear-gradient(to left, #f26b21, rgba(242, 107, 33, 0.10), transparent);
}

.qabsa-random-end {
    width: 7px;
    height: 7px;
    border-radius: 50%;
  //  background: rgba(232, 116, 35, 0.45);
    flex: 0 0 auto;
}

.qabsa-random-list {
    display: block;
}

.qabsa-random-card {
    border-radius: 3px;
    background: #F8F8FF;
    padding: 14px 18px 10px;
    margin-bottom: 15px;
    cursor: pointer;
    border: 1px solid rgba(232, 116, 35, 0.08);
    font-family: fact;
    font-size: 12px;
}

.qabsa-random-card a {
    color: #222;
    text-decoration: none;
    line-height: 1.9;
    display: block;
    transition: color 0.18s ease;
}

.qabsa-random-card a:hover {
    color: #E87423;
}

.qabsa-random-empty {
    padding: 20px;
    direction: rtl;
    text-align: right;
    background: #F8F8FF;
    border-radius: 8px;
    color: #777;
    border: 1px solid rgba(232, 116, 35, 0.08);
}

@media (max-width: 600px) {
    .qabsa-random-section {
        margin-bottom: 28px;
    }

    .qabsa-random-header {
        gap: 9px;
        margin-bottom: 13px;
    }

    .qabsa-random-title {
        font-size: 12px;
        padding: 7px 11px 8px;
    }

    .qabsa-random-title:before {
        content: none !important;
        display: none !important;
    }

    .qabsa-random-end {
        display: none;
    }

    .qabsa-random-card {
        padding: 13px 15px 10px;
        margin-bottom: 12px;
    }

    .qabsa-random-card a {
        font-size: 14px;
        line-height: 1.85;
    }
}