@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Raleway:wght@300;400;500;600;700&family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
  --gold: #C8962A;
  --gold-light: #E8B84B;
  --gold-dark: #8B6914;
  --ocean-deep: #0A1628;
  --ocean-mid: #0D2044;
  --ocean-blue: #1A3A6B;
  --ocean-teal: #0E7490;
  --teal-light: #22D3EE;
  --white: #F0EDE8;
  --gray: #9CA3AF;
  --dark-card: rgba(10, 22, 40, 0.85);
  --border: rgba(200, 150, 42, 0.3);
  --font-en: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ocean-deep);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

body.rtl,
[lang="ar"] {
  font-family: var(--font-ar);
  direction: rtl;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ocean-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ─── Links ─── */
a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color .3s;
}

a:hover {
  color: var(--teal-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Header ─── */
#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}

#masthead.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 900;
  color: var(--ocean-deep);
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 20px rgba(200, 150, 42, 0.4);
}

.site-title-wrap {
  line-height: 1.2;
}

.site-title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.site-subtitle {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ─── Nav ─── */
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all .3s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.discord-btn {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 6px !important;
  border-bottom: none !important;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
  transition: transform .2s, box-shadow .2s !important;
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.3) 0%, rgba(10, 22, 40, 0.7) 60%, var(--ocean-deep) 100%),
    url('images/hero.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(14, 116, 144, 0.2) 0%, transparent 70%);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: .5
  }

  50% {
    opacity: 1
  }
}

.waves-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--ocean-deep), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 150, 42, 0.15);
  border: 1px solid var(--border);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  animation: fadeDown .8s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 0 40px rgba(200, 150, 42, 0.5);
  animation: fadeUp .8s ease .2s both;
}

.hero-title span {
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-ar);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gray);
  margin: 16px 0 36px;
  animation: fadeUp .8s ease .4s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .8s ease .6s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ocean-deep);
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 25px rgba(200, 150, 42, 0.4);
  transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(200, 150, 42, 0.6);
  color: var(--ocean-deep);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--ocean-teal);
  color: var(--teal-light);
  padding: 13px 30px;
  border-radius: 6px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all .3s;
}

.btn-secondary:hover {
  background: var(--ocean-teal);
  color: var(--white);
  border-color: var(--ocean-teal);
}

/* ─── Stats Bar ─── */
.stats-bar {
  background: rgba(13, 32, 68, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: -40px auto 60px;
  max-width: 900px;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  position: relative;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.stat-item {
  padding: 10px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── Section Titles ─── */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
}

.section-title span {
  color: var(--gold-light);
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-desc {
  color: var(--gray);
  margin-top: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Articles Grid ─── */
.articles-section {
  padding: 80px 0;
}

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

.article-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--gold-dark);
}

.card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.article-card:hover .card-thumb img {
  transform: scale(1.08);
}

.card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ocean-deep);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-body {
  padding: 22px;
}

.card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-title {
  font-family: var(--font-ar);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color .3s;
}

.article-card:hover .card-title {
  color: var(--gold-light);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  border-bottom: 1px solid transparent;
  transition: all .3s;
}

.card-link:hover {
  color: var(--teal-light);
  border-bottom-color: var(--teal-light);
  gap: 10px;
}

/* ─── Categories ─── */
.categories-section {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, rgba(13, 32, 68, 0.4), transparent);
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.cat-card {
  background: rgba(13, 32, 68, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  transition: all .3s;
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--gold);
  background: rgba(200, 150, 42, 0.1);
  transform: translateY(-4px);
}

.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.cat-name {
  font-family: var(--font-ar);
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.cat-count {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ─── Discord CTA ─── */
.discord-cta {
  margin: 60px 0;
  padding: 70px 40px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(13, 32, 68, 0.9)),
    linear-gradient(45deg, rgba(200, 150, 42, 0.05), transparent);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.discord-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.1) 0%, transparent 60%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

.discord-cta h2 {
  font-family: var(--font-en);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.discord-cta p {
  color: var(--gray);
  margin-bottom: 28px;
  font-family: var(--font-ar);
  position: relative;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.btn-discord:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(88, 101, 242, 0.7);
  color: #fff;
}

.btn-discord svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ─── Sidebar ─── */
.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 60px 0;
}

.widget {
  background: rgba(13, 32, 68, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 28px;
}

.widget-title {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── Single Post ─── */
.post-header {
  padding: 140px 0 60px;
  text-align: center;
}

.post-title {
  font-family: var(--font-ar);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
}

.post-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
  color: var(--gray);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.post-featured {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.post-content {
  font-family: var(--font-ar);
  font-size: 1.05rem;
  line-height: 1.9;
}

.post-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 36px 0 16px;
}

.post-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 28px 0 12px;
}

.post-content p {
  margin-bottom: 18px;
  color: var(--gray);
}

.post-content p:first-child {
  color: var(--white);
}

.post-content ul,
.post-content ol {
  margin: 16px 0 16px 24px;
  color: var(--gray);
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-right: 4px solid var(--gold);
  padding: 16px 20px;
  background: rgba(200, 150, 42, 0.08);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
}

.post-content img {
  border-radius: 10px;
  margin: 24px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.post-content a {
  color: var(--gold-light);
  border-bottom: 1px solid var(--border);
}

.post-content a:hover {
  color: var(--teal-light);
}

/* ─── Tags ─── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.tag {
  background: rgba(200, 150, 42, 0.1);
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  transition: all .3s;
}

.tag:hover {
  background: var(--gold);
  color: var(--ocean-deep);
}

/* ─── Footer ─── */
#colophon {
  background: linear-gradient(180deg, var(--ocean-deep), #060E1C);
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .site-title {
  font-family: var(--font-en);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-about p {
  color: var(--gray);
  font-size: 0.9rem;
  font-family: var(--font-ar);
  line-height: 1.8;
}

.footer-heading {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--gray);
  font-size: 0.88rem;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200, 150, 42, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1rem;
  transition: all .3s;
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ocean-deep);
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 50px;
}

.page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 32, 68, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gray);
  font-size: 0.9rem;
  transition: all .3s;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ocean-deep);
  font-weight: 700;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.animate-in {
  animation: fadeUp .7s ease both;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .content-area {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}