@font-face {
  font-family: 'Hayah';
  src: url('/assets/fonts/Hayah.otf.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NotoKufiArabic';
  src: url('/assets/fonts/NotoKufiArabic-VariableFont_wght.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* الإعدادات العامة */
  --font-family: 'Hayah', sans-serif;
  --scroll-behavior: smooth;
  
  /* الألوان الرئيسية */
  --bg-color: #000000;
  --text-color: #fff;
  --primary-color: #ff4d4d;
  /* للشعارات وعند hover للروابط وبعض العناصر */
  --secondary-color: #ccc;
  /* للروابط والنصوص الثانوية */
  
  /* الهيدر */
  --header-bg: #0D0D0DC7;
  --header-border: #151515C7;
  
  /* الأزرار */
  --button-bg: #CC0000;
  --button-hover-bg: #ff1a1a;
  --android-live-bg: whitesmoke;
  /* الأحجام والمقاسات */
  --menu-toggle-span-width: 25px;
  --menu-toggle-span-height: 3px;
  --menu-toggle-gap: 4px;
  --icon-size: 25.89px;
  /* يُستخدم للأيقونات مثل .ma*/
  --github-icon-size: 0.925496rem;
  --app-image-max-width: 400px;
  --content-max-width: 600px;
  
  /* الرسوم المتحركة */
  --animation-slideDown: 0.6s;
  --animation-fadeIn: 0.4s;
  --animation-landing-page: 1s;
  
  /* الهوامش والبادينج */
  --header-padding: 1rem 2rem;
  --landing-page-gap: 3rem;
  --features-section-padding: 4rem 2rem;
  --popup-dimensions: 50%;
  --popup-height: 50px;
  --popup-margin-bottom: 20px;
  --footer-padding: 1rem;
  
  /* زر التحميل*/
  --button-width: 90%;
  --button-radius: 8px;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --top-bg: #CC0000;
  --bottom-bg: #000000;
  --icon-size: 32px;
  --badge-font-size: 0.7rem;
  --badge-padding: 2px 6px;
  --badge-border-radius: 4px;
  --top-height: 45px;
  --bottom-height: 60px;
  --bottom-font-size: 16px;
  --bottom-padding: 0px 0;
}




* {
  direction: rtl;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  scroll-behavior: var(--scroll-behavior);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.9) 100%);
  z-index: 0;
  pointer-events: none;
}

header {
  
  background-color: rgba(21, 3, 3, 1);
  border-bottom: 2px solid var(--header-border);
  padding: var(--header-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown var(--animation-slideDown) ease;
  
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.mangasr {
  height: calc(1.3rem * 1.618);
  width: calc(1.3rem * 1.618);
  vertical-align: middle;
  margin-top: -0.1em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: var(--menu-toggle-gap);
  transition: transform 0.3s ease;
}

.menu-toggle span {
  width: var(--menu-toggle-span-width);
  height: var(--menu-toggle-span-height);
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav {
  text-align: center;
  display: flex;
  gap: 1rem;
  transition: all 0.4s ease;
}

nav a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  font-size: 1.4rem;
}

nav a:hover {
  color: var(--primary-color);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav {
    display: flex;
    /* العنصر مخفي بشكل افتراضي */
    flex-direction: column;
    background-color: rgba(21, 3, 3, 1);
    backdrop-filter: blur(10px) !important;
    /* تأثير التمويه */
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    
  }
  
  nav.active {
    display: flex;
    /* عند تفعيل الـ active، يظهر العنصر */
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn2 .2s ease-in-out;
  }
}

.landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  gap: var(--landing-page-gap);
  animation: fadeIn var(--animation-landing-page) ease-in-out;
  position: relative;
  z-index: 1;
  margin-top: calc(140px / 1.618);
}

.content {
  max-width: var(--content-max-width);
  text-align: center;
}

.app-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tagline {
  font-size: calc(2rem / 1.618);
  color: var(--secondary-color);
  margin-bottom: 2rem;
}


/* زر التحميل */
.android-button {
  width: var(--button-width);
  max-width: 100%;
  border-radius: var(--button-radius);
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  margin: auto;
  border: 1.5px solid var(--top-bg);
  user-select: none;
  transition: .1s ease-in-out;
}



.android-button:active {
  transform: scale(0.95);
}

/* الشريط العلوي */
.android-button-top {
  background-color: var(--top-bg);
  height: var(--top-height);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* أيقونة أندرويد */
.android-icon {
  width: var(--icon-size);
  height: var(--icon-size);
}

/* الشارة الصغيرة لـ APK */
.apk-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: var(--badge-border-radius);
  padding: var(--badge-padding);
  font-size: var(--badge-font-size);
  font-weight: bolder;
  font-family: 'NotoKufiArabic' !important;
}

/* الشريط السفلي */
.android-button-bottom {
  background-color: var(--bottom-bg);
  color: #ffffff;
  text-align: center;
  font-size: 1rem;
  padding: 10px 0;
  font-family: 'NotoKufiArabic' !important;

}



/* android-button-live */
.android-button-live {
  width: var(--button-width);
  max-width: 100%;
  border-radius: var(--button-radius);
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  margin: auto;
  border: 1.5px solid var(--android-live-bg);
  user-select: none;
  transition: .1s ease-in-out;
}


.android-button-live:active {
  transform: scale(0.95);
}

/* الشريط العلوي */
.android-button-top-live {
  background-color: var(--android-live-bg);
  height: var(--top-height);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.apk-badge-live {
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: transparent;
  color: #000000;
  border: 1px solid #000000;
  border-radius: var(--badge-border-radius);
  padding: var(--badge-padding);
  font-size: var(--badge-font-size);
  font-weight: bold;
  font-family: 'NotoKufiArabic' !important;
}

/* الشريط السفلي */
.android-button-bottom-live {
  background-color: var(--bottom-bg);
  color: #ffffff;
  text-align: center;
  font-size: 1rem;
  padding: 10px 0;
  font-family: 'NotoKufiArabic' !important;
}


/*security-note*/
.security-note {
  margin-top: 0.5rem;
  font-size: calc(1rem /1.6118);
  color: var(--secondary-color);
  font-family: 'NotoKufiArabic' !important;
}

.security-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.github-icon {
  height: var(--github-icon-size);
  width: var(--github-icon-size);
  vertical-align: middle;
  margin-top: -0.1em;
}


/* ... باقي أنماط CSS ... */

.ask-ai-section {
  padding: 1rem;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1;
  transition: all .2s ease-in-out;
}

.ask-ai-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--primary-color);
  border-radius: 1rem;
  padding: 1rem;
  transition: .2s ease-in-out;
}

.ai-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
}

.badge-test {
  background-color: rgba(204, 0, 0, 0.25);
  color: white;
  font-size: calc(0.65rem / 1.618);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.ai-description {
  color: var(--secondary-color);
  font-size: calc(1.5rem / 1.618);
  margin: 0;
}

.ai-input-container {
  display: flex;
  gap: 0.4rem;
}

.ai-input {
  outline: none;
  flex-grow: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(13, 13, 13, 0.8);
  color: #fff;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: calc(1rem / 1.618);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .2s ease;
}

.ai-input::placeholder {
  color: #777;
}

.ai-input-btn {
  width: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(204, 0, 0, 0.25);
  color: #fff;
  border-radius: calc(1rem / 1.618);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .2s ease;
  
}

.ai-input-btn:active {
  background-color: rgba(204, 0, 0, 0.35);
  
}

.suggestions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(204, 0, 0, 0.25);
  color: #fff;
  padding: 8px 12px;
  border-radius: 1rem 0.2rem 1rem 1rem;
  /* Rounded buttons */
  font-size: 0.85rem;
  cursor: pointer;
}

.suggestion-btn:hover {
  background-color: rgba(204, 0, 0, 0.35);
  
}

.ai-response {
  border: 1px solid #FFFFFF40;
  background-color: #0D0D0DCC;
  color: #fff;
  padding: 1rem;
  border-radius: 1.1rem 0.2rem 1.1rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

.ai-response.loading {
  display: block;
  border: 1px solid #FFFFFF40;
  min-height: 60px;
  background: linear-gradient(90deg, #0D0D0DCC 25%, rgba(43, 43, 43, 0.8) 50%, #0D0D0DCC 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  
  100% {
    background-position: 200% 0;
  }
}


.security-note-ai {
  margin-top: 0.1rem;
  font-size: 0.4rem;
  color: var(--secondary-color);
  text-align: center;
}

/* تأثيرات غلاف المانجا */
.manga-covers {
  position: absolute;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
  z-index: 0;
}

.covers-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.covers-row {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.covers-row img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(0deg, var(--bg-color) 10%, transparent 50%),
    /* تلاشي قوي من الأسفل فقط */
    linear-gradient(90deg, var(--bg-color) 5%, transparent 20%, transparent 85%, var(--bg-color) 95%);
  /* تلاشي خفيف من الجانبين */
  pointer-events: none;
}

.screenshot-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-image: url("/assets/images/image-mesh-gradient.webp");
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  border-radius: 1rem;
  border: 2px solid #0D0D0D;
}

.screenshot {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.screenshot.active {
  opacity: 1;
  position: relative;
}

.what-is-section {
  padding: 1rem;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1;
}

.what-is-section .what-is-container {
  margin: 0 auto;
  border: 2px solid var(--primary-color);
  border-radius: 1rem;
  padding: 1rem;
}

.what-is-section .section-title {
  font-size: 1.7rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.what-is-section .section-text {
  color: var(--secondary-color);
  font-size: calc(1.7rem / 1.618);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.features-section {
  padding: 2rem;
  background-color: transparent;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-item {
  background-color: rgba(13, 13, 13, 0.8);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid #222;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--secondary-color);
  font-size: calc(1.5rem / 1.618);
  line-height: 1.6;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.popup {
  text-align: center;
  z-index: 999999;
  position: fixed;
  bottom: 0;
  margin-bottom: var(--popup-margin-bottom);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1.5px solid var(--primary-color);
  justify-content: center;
  align-items: center;
  display: flex;
  padding: 5px 0;
  width: 70%;
  background-color: var(--header-bg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color);
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup h1 {
  color: var(--primary-color);
}

@media (min-width: 768px) {
  .landing-page {
    flex-direction: row;
  }
  
  .content {
    order: 1;
    text-align: right;
  }
  
  .app-image {
    order: 2;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn2 {
  0% {
    opacity: 0;
    height: 0;
  }
  
  100% {
    height: 200px;
    /* أو الارتفاع المناسب لقائمة البرجر */
  }
}

.element {
  animation: fadeIn 1s ease-in-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: rgba(21, 3, 3, 1);
  color: var(--secondary-color);
  text-align: center;
  padding: var(--footer-padding);
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

footer p,
footer h1 {
  font-size: 1rem;
  
}

.attribution {
  direction: ltr;
  font-weight: bold;
  color: var(--color-two);
}

.attribution i.fa-heart {
  color: red;
}

.attribution i.fa-code {
  color: var(--color-two);
}

::selection {
  background-color: #FF4D4D45;
}

.footer a{
  color: var(--color-two);
}

.footer a:hover{
  color: var(--primary-color);
}