/* === Glowria Light Elegant Theme - Unified CSS (rules.css) === */

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
  color: #222;
  line-height: 1.8;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease;
}
/* ==== Navigation ==== */
/* ====== الهيدر الجديد (مُدمج) ====== */
header {
  background: #fff;
  padding: 16px 30px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeInDown 0.7s ease-in-out;
  direction: rtl;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .logo img {
  width: 46px;
  border-radius: 10px;
  object-fit: contain;
}

header .logo strong,
header .logo span {
  font-size: 1.4rem;
  color: #000;
  font-weight: 900;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 4px 6px;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 2px;
  background: #5e5e5e;
  border-radius: 1px;
  width: 0;
  transition: width 0.3s ease;
}

header nav ul li a:hover::after {
  width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #5e5e5e;
}
/* ===== Main Content ===== */
.content-wrapper {
  max-width: 980px;
  margin: 60px auto;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.7s ease;
}

/* Headings */
h1 {
  font-size: 30px;
  font-weight: 900;
  color: #111;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

h3 {
  font-size: 20px;
  color: #000;
  margin: 36px 0 12px;
}

/* Text */
p {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
}

ul {
  padding-right: 20px;
  margin-bottom: 20px;
}

ul li {
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 15px;
  color: #444;
}

/* Timestamp */
.timestamp {
  font-size: 14px;
  color: #888;
  margin-top: 30px;
  text-align: left;
}

/* Links */
a {
  color: #007b8f;
  text-decoration: none;
}

a:hover {
  color: #005f70;
  text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 30px;
  padding: 0;
  color: #888;
  font-size: 15px;
}

.breadcrumb-list li::after {
  content: '›';
  margin: 0 6px;
  color: #bbb;
}

.breadcrumb-list li:last-child::after {
  content: '';
}

.breadcrumb-list li a {
  color: #444;
  text-decoration: none;
}

.breadcrumb-list li a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.glowria-footer {
  background: linear-gradient(to bottom, #fafafa, #f0f0f0);
  padding: 50px 20px;
  text-align: center;
  font-family: inherit;
  border-top: 1px solid #e6e6e6;
  color: #333;
  font-size: 15px;
  margin-top: auto;
}

.glowria-footer .footer-top {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #111;
}

.footer-links,
.footer-policy,
.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-links a,
.footer-policy a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-policy a:hover {
  color: #000;
  text-decoration: underline;
}

.footer-social a {
  color: #444;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: #000;
  transform: scale(1.1);
}

.footer-copy {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive - Side Menu Horizontal ===== */
@media (max-width: 768px) {
  .side-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 12px;
    background: #fff;
    padding: 10px;
    margin: 16px 0;
    border-radius: 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .side-menu a {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f8f8f8;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .side-menu a:hover,
  .side-menu a.active {
    background: #efefef;
    color: #000;
    border-color: #ddd;
  }
}
