/* ==========================================================================
   LibyaPress Premium - Main Stylesheet
   Theme: Dark Navy & Glassmorphism
   Typography: Cairo (RTL Arabic)
   ========================================================================== */

:root {
  /* Brand Colors */
  --bg-dark: #031f36;
  --bg-darker: #011222;
  --bg-card: rgba(6, 50, 88, 0.4);
  --bg-glass: rgba(10, 74, 130, 0.2);
  --accent-gold: #d4af37;
  --accent-blue: #0ea5e9;
  
  /* Text Colors */
  --text-main: var(--accent-gold);
  --text-muted: #ffffff;
  
  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(10, 74, 130, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-darker);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(6, 50, 88, 0.4), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(10, 74, 130, 0.3), transparent 25%);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: rgba(3, 31, 54, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-image {
  height: 45px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.main-nav a:hover::after {
  width: 80%;
}

.main-nav a:hover {
  background: var(--bg-glass);
}

/* ==========================================================================
   Main Container & Layouts
   ========================================================================== */

.container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  flex: 1;
  width: 100%;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, rgba(6, 50, 88, 0.8), rgba(3, 31, 54, 0.9));
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 40%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-gold), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ==========================================================================
   Article Grid
   ========================================================================== */

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 30px;
  background-color: var(--accent-gold);
  border-radius: 4px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.article-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-glass);
  background-color: var(--bg-dark);
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  flex: 1;
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--accent-blue);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-section p {
  color: var(--text-muted);
}

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

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-muted);
}

.footer-section ul li a:hover {
  color: var(--accent-gold);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-darker);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
}


/* ══════════════════════════════════════════════════════
   WOMEN / مرأة SECTION — Pink Theme
   ══════════════════════════════════════════════════════ */

/* Nav link — always pink */
.nav-women {
  color: #ec0076 !important;
  font-weight: 700;
  position: relative;
}
.nav-women::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ec0076;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-women:hover {
  color: #ff4da6 !important;
}
.nav-women:hover::after {
  transform: scaleX(1);
}

/* Pink theme override — category listing + individual articles */
body[data-category="women"] {
  --bg-dark: #2a0018;
  --bg-darker: #1a000e;
  --bg-card: rgba(236, 0, 118, 0.18);
  --bg-glass: rgba(236, 0, 118, 0.12);
  --shadow-glow: 0 0 20px rgba(236, 0, 118, 0.3);
  --border-glass: rgba(236, 0, 118, 0.2);
  --accent-blue: #ec0076;
  background-color: var(--bg-darker);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(236, 0, 118, 0.15), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(236, 0, 118, 0.08), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(236, 0, 118, 0.05), transparent 30%);
}

/* Header stays darker pink, not full neon */
body[data-category="women"] header {
  background: rgba(26, 0, 14, 0.95) !important;
  border-bottom-color: rgba(236, 0, 118, 0.3) !important;
}

/* Cards get pink glass effect */
body[data-category="women"] .article-card,
body[data-category="women"] .card,
body[data-category="women"] .widget-card {
  background: var(--bg-card) !important;
  border: 1px solid rgba(236, 0, 118, 0.2) !important;
  box-shadow: 0 4px 20px rgba(236, 0, 118, 0.1) !important;
}

body[data-category="women"] .article-card:hover,
body[data-category="women"] .card:hover {
  border-color: rgba(236, 0, 118, 0.4) !important;
  box-shadow: 0 8px 32px rgba(236, 0, 118, 0.2) !important;
}

/* Hero title keeps gold */
body[data-category="women"] .hero-title,
body[data-category="women"] .articles-page-title {
  color: var(--accent-gold) !important;
}

/* Footer stays dark */
body[data-category="women"] footer {
  background: rgba(26, 0, 14, 0.95) !important;
  border-top: 1px solid rgba(236, 0, 118, 0.2) !important;
}

/* Pagination and buttons */
body[data-category="women"] .pagination a,
body[data-category="women"] .btn-primary {
  border-color: #ec0076 !important;
  color: var(--accent-gold) !important;
}

body[data-category="women"] .pagination a:hover,
body[data-category="women"] .btn-primary:hover {
  background: rgba(236, 0, 118, 0.3) !important;
}

body[data-category="women"] .pagination .active {
  background: #ec0076 !important;
  color: #fff !important;
}

/* Scrollbar pink */
body[data-category="women"]::-webkit-scrollbar-thumb {
  background: #ec0076;
}

/* Active nav indicator */
body[data-category="women"] .nav-women {
  text-shadow: 0 0 10px rgba(236, 0, 118, 0.5);
}
body[data-category="women"] .nav-women::after {
  transform: scaleX(1);
}
