/*
Theme Name: Canal Anjouan News
Theme URI: https://news.canalanjouan.net
Author: Canal Anjouan Dev
Description: Thème premium d'actualité style Dashboard moderne pour les Comores.
Version: 1.0
*/

:root {
  --primary: #007A5E; /* Vert Comorien */
  --secondary: #1A87D8; /* Bleu */
  --accent: #CE1126; /* Rouge */
  --bg-light: #F4F7F6;
  --card-bg: #FFFFFF;
  --text-main: #1A1A1A;
  --text-muted: #6B7280;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

/* HEADER DASHBOARD STYLE */
.header-dashboard {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 24px; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo span { color: var(--text-main); }

.search-bar {
  flex: 1;
  max-width: 400px;
  margin: 0 30px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 30px;
  background: var(--bg-light);
  outline: none;
  font-size: 14px;
}

/* LECTEUR RADIO */
.radio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  padding: 8px 15px 8px 8px;
  border-radius: 30px;
}
.play-btn {
  width: 40px; height: 40px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s;
}
.play-btn:hover { transform: scale(1.1); }
.radio-info { display: flex; flex-direction: column; }
.radio-title { font-size: 12px; font-weight: 700; color: var(--primary); }
.radio-status { font-size: 10px; color: var(--text-muted); }
.pulse-animation {
  width: 10px; height: 10px; background: var(--accent); border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 0.5; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.5; transform: scale(0.8); } }

/* LAYOUT & GRID */
.container { max-width: 1280px; margin: 40px auto; padding: 0 20px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* CARDS */
.news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.news-card:hover { transform: translateY(-5px); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 122, 94, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card-title a { color: var(--text-main); text-decoration: none; }
.card-excerpt { color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); border-top: 1px solid #F1F5F9; padding-top: 15px; }

/* ESPACE PUB */
.ad-banner { width: 100%; height: 120px; background: #E5E7EB; display: flex; align-items: center; justify-content: center; color: var(--text-muted); border-radius: var(--radius); margin: 40px 0; font-weight: bold; letter-spacing: 2px; }

/* NEWSLETTER & FOOTER */
.footer { background: #111827; color: white; padding: 60px 20px 20px; margin-top: 60px; }
.newsletter-box { max-width: 600px; margin: 0 auto 40px; text-align: center; }
.newsletter-box h3 { font-size: 28px; margin-bottom: 10px; }
.newsletter-box p { color: #9CA3AF; margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; }
.newsletter-form input { padding: 15px 20px; border: none; border-radius: 30px; width: 300px; outline: none; }
.newsletter-form button { padding: 15px 30px; background: var(--primary); color: white; border: none; border-radius: 30px; cursor: pointer; font-weight: bold; }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 20px; margin-top: 40px; color: #9CA3AF; font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-dashboard { flex-wrap: wrap; padding: 15px; gap: 15px; }
  .search-bar { order: 3; max-width: 100%; margin: 0; width: 100%; }
  .container { padding: 0 15px; }
}