
/* أنماط بطاقات الأفلام في الصفحة الرئيسية */
.movies-grid {
    display: grid;
    gap: 25px;
    margin: 40px 0;
}

.movies-grid.six-columns {
    grid-template-columns: repeat(6, 1fr);
}

/* التجاوب مع الشاشات */
@media (max-width: 1600px) {
    .movies-grid.six-columns {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1366px) {
    .movies-grid.six-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .movies-grid.six-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .movies-grid.six-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .poster-container {
        height: 200px;
    }
    
    .movie-title {
        font-size: 13px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .movies-grid.six-columns {
        grid-template-columns: repeat(2, 1fr) !important; /* عمودين حتى على الهواتف الصغيرة */
        gap: 12px;
    }
    
    .poster-container {
        height: 180px;
    }
    
    .movie-card-content {
        padding: 10px;
    }
    
    .movie-title {
        font-size: 12px;
        height: 32px;
    }
}

/* إزالة media query للشاشات 360px ليبقى عمودين */
/* @media (max-width: 360px) {
    تم إزالة هذا الجزء ليظل عمودين
} */

/* أنماط خاصة للشاشات الصغيرة جداً مع بقاء عمودين */
@media (max-width: 320px) {
    .movies-grid.six-columns {
        grid-template-columns: repeat(2, 1fr) !important; /* يبقى عمودين */
        gap: 8px; /* تقليل المسافة بين البطاقات */
    }
    
    .poster-container {
        height: 160px; /* تصغير ارتفاع البوستر قليلاً */
    }
    
    .movie-card-content {
        padding: 8px;
    }
    
    .movie-title {
        font-size: 11px; /* تصغير الخط قليلاً */
        height: 30px;
    }
    
    .views-count, .movie-language {
        font-size: 10px; /* تصغير حجم النص */
    }
    
    .quality-badge {
        padding: 4px 8px;
        font-size: 10px;
        top: 8px;
        left: 8px;
    }
}

/* باقي الأنماط تبقى كما هي */
.movie-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 44, 85, 0.3);
}

.poster-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.quality-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff2c55, #ff6b8b);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 44, 85, 0.4);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 44, 85, 0.9), rgba(0,0,0,0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-button i {
    font-size: 40px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.play-button i:hover {
    transform: scale(1.2);
    color: #ff2c55;
}

.movie-card-content {
    padding: 15px;
}

.movie-title {
    font-size: 14px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.views-count, .movie-language {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #a0a0a0;
}

.views-count i, .movie-language i {
    color: #ff2c55;
    font-size: 12px;
}

/* أنماط اللوجو المتغير */
.logo {
  position: relative;
  display: inline-block;
  text-decoration: none;
  height: 50px;
  perspective: 1000px;
}

.logo-front, .logo-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-front {
  background: linear-gradient(135deg, #ff2c55, #e01a3f);
  color: white;
  border-radius: 10px;
  padding: 0 15px;
  transform: rotateY(0deg);
}

.logo-back {
  background: linear-gradient(135deg, #1a1a2e, #2d2d4d);
  color: #ff2c55;
  border-radius: 10px;
  padding: 0 15px;
  transform: rotateY(180deg);
}

.logo:hover .logo-front {
  transform: rotateY(180deg);
}

.logo:hover .logo-back {
  transform: rotateY(0deg);
}

.logo-part-1 {
  font-weight: 800;
  font-size: 24px;
  margin-right: 2px;
}

.logo-part-2 {
  font-weight: 600;
  font-size: 24px;
  color: #f5c518; /* لون ذهبي */
}

.logo-back .logo-part-2 {
  color: #4CAF50; /* لون أخضر للنسخة العربية */
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
  .logo {
    height: 40px;
    margin-bottom: 10px;
  }
  
  .logo-part-1, .logo-part-2 {
    font-size: 20px;
  }
  
  .logo-front, .logo-back {
    padding: 0 12px;
  }
}

/* تأثيرات إضافية */
.logo:active {
  transform: scale(0.95);
}

/* تحسين ظهور اللوجو */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* إصلاح المحاذاة للعناصر */
.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li {
  margin: 0 10px;
}

.nav ul li a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav ul li a:hover {
  background: #ff2c55;
  color: #fff;
}

/* استبدل الكلاس من .search إلى .search-box */
.search-box {
  display: flex;
  align-items: center;
}

.search-box form {
  display: flex;
  align-items: center;
}


..search-box input[type="search"] {
  padding: 8px 15px;
  border: none;
  border-radius: 20px 0 0 20px;
  background: #2d2d4d;
  color: #e0e0e0;
  outline: none;
  width: 250px;
}

..search-box-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 0 20px 20px 0;
  background: #ff2c55;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

..search-box-btn:hover {
  background: #e01a3f;
}

/* أضف هذا في النهاية بعد كل الأكواد الأخرى */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .logo {
    order: 1;
    height: 40px;
    margin-bottom: 10px;
  }
  
  .logo-part-1, .logo-part-2 {
    font-size: 20px;
  }
  
  .logo-front, .logo-back {
    padding: 0 12px;
  }
  
  .nav {
    order: 3;
  }
  
  ..search-box {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  
  ..search-box input[type="search"] {
    width: 70%;
  }
  
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav ul li {
    margin: 5px;
  }
}


/* تأثيرات إضافية - أضف في النهاية */

.logo:active {
  transform: scale(0.95);
}

.logo-front, .logo-back {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* تأثيرات متقدمة */
.logo {
  overflow: hidden;
}

.logo-front::before, .logo-back::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.logo:hover .logo-front::before,
.logo:hover .logo-back::before {
  transform: rotate(45deg) translate(50%, 50%);
}



/* أنماط لصفحة نتائج البحث */
..search-box-results .movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

..search-box-results .movie-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

..search-box-results .movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 44, 85, 0.3);
}

..search-box-highlight {
    background: rgba(255, 44, 85, 0.2);
    color: #ff2c55;
    padding: 2px 4px;
    border-radius: 4px;
}

/* التجاوب لصفحة البحث */
@media (max-width: 1024px) {
    ..search-box-results .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    ..search-box-results .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    ..search-box-results .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* القائمة العلوية ثابتة */
.top-nav {
  background: #00a8ff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.top-menu-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-menu-list li {
  margin: 0 15px;
}

.top-menu-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.top-menu-list a:hover {
  color: #ffeb3b;
}

/* زر القائمة للهاتف */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  margin-right: 15px;
}

/* القائمة الجانبية للموبايل */
@media (max-width: 768px) {
  .top-menu-list {
    display: none;
    flex-direction: column;
    background: #1a1a2e;
    position: fixed;
    top: 0;
    right: -250px;
    width: 220px;
    height: 100%;
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 9999;
  }
  .top-menu-list.active {
    right: 0;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 10px;
  }
  .top-menu-list li {
    margin: 15px 0;
  }
}








