/* الأنماط الرئيسية لموقع نيوز عدن */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #1e88e5; /* لون سماوي */
  --secondary-color: #f44336; /* لون أحمر */
  --light-color: #ffffff; /* لون أبيض */
  --dark-color: #333333;
  --gray-color: #f5f5f5;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  direction: rtl;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* تنسيق الهيدر */
header {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  max-height: 80px;
}

.social-icons a {
  color: var(--light-color);
  margin-right: 15px;
  font-size: 18px;
}

/* تنسيق القائمة الرئيسية */
.main-nav {
  background-color: var(--dark-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  transition: background-color 0.3s;
}

.main-nav ul li a:hover {
  background-color: var(--primary-color);
}

/* تنسيق شريط الأخبار العاجلة */
.breaking-news {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 10px 0;
  overflow: hidden;
}

.breaking-news-container {
  display: flex;
  align-items: center;
}

.breaking-news-title {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 5px 15px;
  margin-left: 15px;
  font-weight: bold;
  white-space: nowrap;
}

.breaking-news-slider {
  overflow: hidden;
  width: 100%;
}

.breaking-news-items {
  display: flex;
  animation: scroll-rtl 30s linear infinite;
  white-space: nowrap;
}

.breaking-news-item {
  margin-left: 30px;
}

@keyframes scroll-rtl {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* تنسيق المحتوى الرئيسي */
.main-content {
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
}

.main-articles {
  flex: 2;
  margin-left: 30px;
}

.sidebar {
  flex: 1;
}

/* تنسيق المقالات */
.article {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.article-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.article-meta {
  color: #777;
  margin-bottom: 15px;
  font-size: 14px;
}

.article-image {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.article-excerpt {
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.read-more:hover {
  background-color: #1565c0;
}

/* تنسيق الإعلان المتحرك */
.advertisement {
  margin: 20px 0;
  padding: 15px;
  background-color: var(--gray-color);
  border-radius: 5px;
  text-align: center;
  overflow: hidden;
}

.ad-content {
  animation: ad-animation 5s infinite alternate;
}

@keyframes ad-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* تنسيق الفوتر */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  margin-left: 20px;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 20px;
}

/* تنسيق لوحة التحكم */
.admin-panel {
  background-color: var(--light-color);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.admin-panel h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
}

.admin-form button {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.admin-form button:hover {
  background-color: #1565c0;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .main-articles {
    margin-left: 0;
    margin-bottom: 30px;
  }
  
  .header-top {
    flex-direction: column;
    text-align: center;
  }
  
  .social-icons {
    margin-top: 15px;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-left: 0;
    margin-bottom: 30px;
  }
}
