/* ==========================================
   📱 BOSTME - RESPONSIVE DESIGN
   ==========================================
   متوافق مع جميع الشاشات - 384px إلى 2560px
   ========================================== */

/* ===== شاشات كبيرة جداً (أكثر من 1600px) ===== */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
  .hero-title { font-size: 4.5rem; }
  html { font-size: 20px; }
}

/* ===== شاشات كبيرة (2560px) ===== */
@media (min-width: 2000px) {
  .container { max-width: 1600px; }
  html { font-size: 22px; }
}

/* ===== لابتوب كبير (1200px - 1599px) ===== */
@media (min-width: 1200px) and (max-width: 1599px) {
  .container { max-width: 1140px; }
  .hero-title { font-size: 3.8rem; }
}

/* ===== أجهزة لوحية (1024px - 1199px) ===== */
@media (max-width: 1199px) {
  .container { max-width: 960px; }
  
  .hero-title { font-size: 3rem; }
  .hero-stats { gap: 32px; }
  .stat-number { font-size: 2.2rem; }
  
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ===== أجهزة لوحية صغيرة وأيباد (768px - 1023px) ===== */
@media (max-width: 1023px) {
  html { font-size: 18px; }
  
  section { padding: 60px 0; }
  
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1.1rem; }
  
  .section-title { font-size: 1.8rem; }
  .section-desc { font-size: 1rem; }
  
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  
  .stat-number { font-size: 2rem; }
  .hero-stats { gap: 28px; }
  
  .navbar-nav { gap: 16px; }
  
  .btn-hero { padding: 16px 32px; font-size: 1.1rem; }
}

/* ===== جوال كبير وأيباد برو مود (max-width: 768px) ===== */
@media (max-width: 768px) {
  html { font-size: 17px; }
  
  section { padding: 48px 0; }
  
  /* شريط التنقل - قائمة جانبية */
  .navbar-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 26, 0.98);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 399;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .navbar-nav.open { display: flex; }
  .navbar-nav a { font-size: 1.1rem; padding: 10px 0; }
  
  .navbar-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .navbar-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #FFD700;
    border-radius: 3px;
    transition: 0.3s;
  }
  
  .navbar-test-btn { padding: 8px 16px; font-size: 0.85rem; }
  .navbar-test-btn .btn-text { display: none; }
  
  /* الهيرو */
  .hero-section { min-height: auto; padding: 100px 0 40px; }
  .hero-title { font-size: 2rem; line-height: 1.3; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.8rem; padding: 6px 16px; margin-bottom: 16px; }
  
  .hero-stats { flex-wrap: wrap; gap: 20px; margin-top: 24px; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.8rem; }
  
  .hero-actions { flex-direction: column; width: 100%; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; justify-content: center; }
  .btn-hero { font-size: 1rem; padding: 14px 24px; width: 100%; }
  .btn-hero-secondary { font-size: 1rem; padding: 12px 24px; width: 100%; max-width: 320px; }
  
  .hero-live-counter { margin-top: 16px; }
  .hero-scroll-indicator { display: none; }
  
  /* الشبكات */
  .how-grid,
  .features-grid,
  .articles-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .how-card { padding: 28px 20px; }
  .feature-item { padding: 20px; }
  .article-card { padding: 20px; }
  
  /* العناوين */
  .section-title { font-size: 1.5rem; margin-bottom: 12px; }
  .section-desc { font-size: 0.95rem; margin-bottom: 32px; }
  .section-icon { font-size: 2rem; }
  
  .how-title { font-size: 1.2rem; }
  .how-text { font-size: 0.9rem; }
  
  .article-title { font-size: 1.1rem; }
  .article-excerpt { font-size: 0.9rem; }
  .article-meta { font-size: 0.8rem; flex-wrap: wrap; gap: 8px; }
  
  .feature-item h4 { font-size: 1rem; }
  .feature-item p { font-size: 0.85rem; }
  
  .testimonial-card { padding: 20px; }
  .testimonial-text { font-size: 0.9rem; }
  .testimonial-stars { font-size: 1rem; }
  
  /* الفوتر */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 40px 0 20px; }
  .footer-desc { font-size: 0.85rem; }
  .footer-title { font-size: 1rem; margin-bottom: 12px; }
  
  .footer-langs { flex-wrap: wrap; gap: 6px; }
  
  /* أيقونة عائمة */
  .floating-test-btn { width: 55px; height: 55px; bottom: 20px; left: 20px; }
  .floating-label { display: none; }
  
  /* CTA */
  .cta-section { padding: 60px 0; }
  .cta-title { font-size: 1.5rem; }
  .cta-text { font-size: 0.95rem; }
  .btn-cta { font-size: 1rem; padding: 14px 24px; width: 100%; max-width: 320px; }
  
  .cta-content { padding: 0 10px; }
  .cta-icon { font-size: 3rem; }
  
  /* الإحصائيات */
  .hero-stat { min-width: 60px; }
  
  /* التنقل */
  .navbar-nav { align-items: stretch; }
  .nav-link { padding: 8px 0; }
}

/* ===== جوال صغير (480px - 767px) ===== */
@media (max-width: 767px) {
  html { font-size: 16px; }
  .container { padding: 0 16px; }
  
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.95rem; }
  
  section { padding: 40px 0; }
  
  .section-title { font-size: 1.3rem; }
  .section-desc { font-size: 0.9rem; }
  
  .how-card { padding: 24px 16px; }
  .how-icon { font-size: 2.5rem; }
  
  .feature-item { padding: 16px; }
  .feature-icon { font-size: 1.5rem; }
  
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.4rem; }
  
  .logo-text { font-size: 1.3rem; }
  .logo-icon { font-size: 1.6rem; }
  
  .navbar { height: 64px; }
  .navbar-nav { top: 64px; }
  
  .btn-gold { font-size: 1rem; padding: 12px 20px; }
  .btn-start-level { font-size: 1.1rem; padding: 14px 20px; }
  
  .article-card .article-icon-wrap { font-size: 2.5rem; }
  
  .footer-bottom p { font-size: 0.8rem; }
}

/* ===== جوال صغير جداً (384px - 479px) ===== */
@media (max-width: 479px) {
  html { font-size: 15px; }
  .container { padding: 0 12px; }
  
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 0.9rem; line-height: 1.6; }
  
  section { padding: 32px 0; }
  
  .section-title { font-size: 1.2rem; }
  
  .how-card { padding: 20px 14px; }
  .how-icon { font-size: 2rem; }
  .how-step { width: 30px; height: 30px; font-size: 0.9rem; }
  
  .feature-item { padding: 14px; flex-direction: column; align-items: center; text-align: center; }
  .feature-icon { font-size: 1.8rem; margin-bottom: 8px; }
  
  .hero-stats { gap: 12px; }
  .hero-stat { min-width: 50px; }
  
  .stat-number { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }
  
  .navbar-test-btn { font-size: 0.8rem; padding: 6px 12px; }
  .navbar-toggle span { width: 24px; height: 2px; }
  
  .hero-actions .btn { font-size: 0.9rem; padding: 12px 20px; }
  
  .article-card { padding: 16px; }
  .article-icon-wrap { font-size: 2rem; }
  
  .cta-section { padding: 40px 0; }
  .cta-icon { font-size: 2.5rem; }
  
  .btn-hero { font-size: 0.9rem; padding: 12px 20px; }
  
  .article-meta { font-size: 0.75rem; }
  
  .footer-grid { gap: 16px; }
  .footer { padding: 32px 0 16px; }
}

/* ===== أقل من 384px (أصغر الشاشات) ===== */
@media (max-width: 383px) {
  html { font-size: 14px; }
  
  .hero-title { font-size: 1.2rem; }
  .navbar-test-btn { display: none; }
  
  .hero-badge { font-size: 0.7rem; padding: 4px 12px; }
  
  .hero-stat { min-width: 40px; }
  .stat-number { font-size: 1rem; }
  .stat-label { font-size: 0.6rem; }
  
  .cta-section h2 { font-size: 1.1rem; }
  
  .btn-start-level { font-size: 1rem; }
}

/* ===== توجيه الشاشة Landscape على الجوال ===== */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding: 80px 0 24px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 16px; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.2rem; }
  
  .navbar { height: 56px; }
  .navbar-nav { top: 56px; }
  
  .hero-badge { margin-bottom: 12px; }
  .hero-actions { margin-top: 0; }
  
  .floating-test-btn { display: none; }
}

/* ===== توجيه الشاشة Portrait على التابلت ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-title { font-size: 2.4rem; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== توجيه الشاشة Landscape على التابلت ===== */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-title { font-size: 3rem; }
}

/* ===== أجهزة قابلة للطي (Fold) ===== */
@media (max-width: 280px) {
  html { font-size: 12px; }
  .container { padding: 0 8px; }
  .hero-title { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 8px; }
}
