/*
Theme Name: Albasta
*/
@font-face { font-family: label; src: url(HS-Ishraq-Bold.otf); }
@font-face { font-family: logo; src: url(Royal-Sans_082433.ttf); }
@font-face { font-family: thetitle; src: url(Alyamama-Regular.ttf); }
@font-face { font-family: contentfont; src: url(Alyamama-Light.ttf); }
@font-face { font-family: fact; src: url(Alyamama-Light.ttf); }
@font-face { font-family: factbold; src: url(Alyamama-Bold.ttf); }

/* ===== BASE ===== */
html {
    height: 100%;
    min-height: 100%;
    direction: rtl;
}

body {
    margin: 0;
    background-color: #F4F4F4;
}

/* ===== LINKS FIX ===== */
a {
    text-decoration: none;
    color: inherit;
}

/* ===== WRAPPER ===== */
.wrapper {
    margin: 0 auto;
    background-color: #FFF;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding-bottom: 20px;
    background-color:#FFF; 
    border-bottom:1px solid #EEE;
}

.logo {
    width: 50%;
    font-family: 'logo';
    font-size: 60px;
    text-align: center;
    margin: 0;
    padding-top:20px;
}

.logo a {
    color:#000;
}

.tools {
    width: 25%;
    text-align: left;
    padding: 25px 0 0 10px;
}

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

/* ===== TITLES ===== */
h2 {
    text-align: right;
    margin: 10px 0 30px 0;
    font-family: thetitle;
}

.label {
	font-size:16px;
    border-bottom: 3px solid #CCC;
    margin-bottom: 18px;
    padding-bottom: 5px;
    font-weight:bold;
	font-family: factbold;
}

/* ===== articleS ===== */
.articles-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  padding: 22px;
  border: 1px #EEE solid;
  cursor: pointer;
  font-family: fact;
  box-sizing: border-box;
}

.article-icon {
  font-size: 18px;
  color: #000;
	margin-bottom:10px;
	font-weight:bold;
}

.article-text {
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.9em;
  text-align: justify;
  font-size: 16px;
}

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

.article-divider {
  height: 1px;
  background: #eee;
  margin: 15px 0;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.article-name a {
  font-weight: bold;
  font-size: 14px;
  color: inherit;
}

.article-source {
  font-size: 12px;
  color: #888;
}

/* ===== TOOLBAR ===== */
.toolbar {
  border: 1px solid #EEE;
  font-family: Courier New;
  font-size: 12px;
  color: #6A6A6A;
  border-radius: 5px;
  width: 100%;
  padding: 0px 10px;
  height: 40px; /* 🔥 مهم */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  box-sizing: border-box;
}

/* اللايك (يمين) */
.div1 {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: rtl;
  margin-left: auto;
  height: 100%; 
}

/* الأيقونات (يسار) */
.div2 {
  display: flex;
  align-items: center;
	padding-left:10px;
  gap: 12px;
  height: 100%; 
}

/* إصلاح الإضافة */
.pld-like-dislike-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  height: 100%; 
}


.pld-like-wrap,
.pld-dislike-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 4px;
  height: 100%;
}

/* الأيقونات */
.pld-like-dislike-wrap i {
  display: flex;
  align-items: center;
  height: 100%;
}

/* الأرقام */
.pld-count-wrap {
  display: flex;
  align-items: center;
  height: 100%;
}


.pld-like-dislike-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px;

  transform: translateY(10px); 
}

/* أيقونات السوشال */
.toolbar img {
  width: 15px;
  height: 15px;
  display: block;
}

/* ===== SIDEBAR (FIXED) ===== */
.menu-toggle {
  cursor: pointer;
  font-size: 28px;
}

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

.sidebar.open {
  right: 0;
}

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

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

.overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.overlay.active {
  display: block;
}

/* ===== TAG HEADER ===== */
.tag-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-family:fact;
}

.tag-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.tag-name {
  font-size: 18px;
  font-weight: bold;
}

.tag-desc {
  font-size: 13px;
  color: #777;
}

/* ===== FOOTER ===== */
.footer {
    display:flex;
    margin:0 auto;
    background-color: #F4F4F4;
    padding: 10px 15px;
    border-top: 1px solid #EEE;
    font-family: contentfont;
}

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

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