/* ---- ملف css/style.css الكامل (مُحدّث لضبط محاذاة عمودية لأيقونة غوغل بلاي) ---- */

/* 0. Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  direction: rtl;
  font-family: sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}

/* 1. Variables */
:root {
  --primary-color: #E10600;
  --primary-color-hover: #C00500;
  --primary-color-active: #A00400;
  --play-button-color: #4285F4;
  --play-button-hover: #3367D6;
}

/* 2. Header */
header {
  background-color: var(--primary-color);
}
.header-container {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 80px;
}
.logo-container {
  display: flex;
  align-items: center;
  direction: rtl;
}
.logo-img {
  width: 50px;
  height: 50px;
  margin-left: 10px;
}
.logo-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}
.nav-menu {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  z-index: 40;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background .3s, filter .3s;
}
.nav-menu a:hover {
  background: #FFD700;
  color: #000;
}
.nav-menu a.active {
  background: rgba(255,255,255,0.2);
  filter: brightness(1.2);
}
.nav-menu a.active:hover {
  background: rgba(255,255,255,0.3);
}

/* 2.3 Hamburger & Overlay */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 50;
}
.nav-overlay {
  display: none;
  position: fixed;
  top: 80px;
  right: 0;
  width: 100%;
  height: calc(100% - 80px);
  background: rgba(0,0,0,0.5);
  z-index: 30;
}

/* 2.4 Responsive Header & Sidebar */
@media (max-width: 1024px) {
  .hamburger { display: block; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: calc(100% - 80px);
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: flex-end;
    padding: 20px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 40;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
  }
  .nav-menu.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-menu a {
    display: block;
    width: 100%;
    text-align: right;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .nav-menu a:last-child {
    border-bottom: none;
  }
  .nav-overlay.active {
    display: block;
  }
}

/* 3. Hero */
.hero {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.hero .highlight {
  color: var(--primary-color);
}
.hero p {
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* 3.1 Hero Buttons Container */
.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 20px;
}

/* 4. Buttons Styling: ارتفاع أكبر ومحاذاة مركزية */
.hero-buttons .btn-play,
.hero-buttons .btn-playstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 30px;
  white-space: nowrap;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: background-color .2s ease, transform .1s ease;
}

/* زرّ التنزيل */
.hero-buttons .btn-play {
  background-color: var(--play-button-color);
  color: #fff !important;
}
.hero-buttons .btn-play:hover {
  background-color: var(--play-button-hover);
  transform: translateY(-2px);
}
.hero-buttons .btn-play:active {
  background-color: #2a56c6;
  transform: translateY(0);
}

/* زرّ غوغل بلاي */
.hero-buttons .btn-playstore {
  background-color: var(--primary-color);
  color: #fff !important;
  padding-left: 44px;
  padding-right: 44px;
  direction: ltr;
}
.hero-buttons .btn-playstore:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-2px);
}
.hero-buttons .btn-playstore:active {
  background-color: var(--primary-color-active);
  transform: translateY(0);
}

/* محور تعديل محاذاة عمودية للأيقونة */
.hero-buttons .btn-playstore .icon-playstore {
  width: 20px;
  height: auto;
  margin-right: 6px;
  margin-bottom: 0;
  display: inline-block;
  vertical-align: middle; /* يضمن أن الأيقونة في منتصف النص عمودياً */
}

/* 5. Support Center Page */
.support-hero {
  text-align: center;
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: #fff;
  box-sizing: border-box;
  border-radius: 8px;
  margin: 15px auto;
  width: 80%;
  max-width: 800px;
}
.support-title {
  font-size: 2rem;
}
.support-desc {
  text-align: center;
  font-size: 1rem;
  margin: 15px 20px 40px;
}

/* 6. Contact Cards */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 10px auto;
  padding: 0 20px;
  direction: rtl;
}
.contact-card {
  background: #fff;
  border-left: 6px solid var(--primary-color-hover);
  border-radius: 8px;
  padding: 20px;
  text-align: right;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.contact-card:hover {
  transform: translateY(-4px);
}
.contact-card .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-color-active);
}
.contact-card p {
  font-size: 1rem;
  color: #333;
}

/* 7. Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-links {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  transition: color .3s;
}
.footer-links a:hover {
  color: #FFD700;
}
.footer-copy {
  margin-top: .4rem;
  font-size: .8rem;
}
.social-icons {
  display: flex;
  gap: 10px;
}
.social-icons a svg {
  fill: #fff;
  width: 24px;
  height: 24px;
}

/* 8. Global Responsive */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero-buttons {
    gap: 8px;
  }
  .hero-buttons .btn-play,
  .hero-buttons .btn-playstore {
    padding: 12px 20px;
    white-space: nowrap;
  }
  .hero-buttons .btn-playstore {
    padding-left: 26px;
    padding-right: 26px;
  }
  .logo-img {
    width: 50px;
    height: 50px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .nav-menu a {
    font-size: 1rem;
    padding: 10px;
  }
  .support-title {
    font-size: 1.6rem;
  }
  .contact-card {
    padding: 15px;
  }
  .contact-card .icon {
    font-size: 2rem;
  }
  .footer-links {
    gap: 10px;
  }
}
