/* ===========================
   BASE
=========================== */
body {
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  padding: 0;
  margin: 0;
  background-color: #020214;
  color: #ffffff;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
  padding: 10px 0;
}

ul { margin: 0; padding: 0; }

/* ===========================
   HEADER
=========================== */
header {
  background: #0E1C3C;
  color: #ffffff;
  padding-top: 40px;
  min-height: 70px;
  border-bottom: red 3px solid;
  position: relative;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

header a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  transition: 0.3s;
}

header li   { float: left; display: inline; padding: 0 20px; }
header nav  { float: right; margin-top: 10px; }

header #branding   { float: left; }
header #branding h1{ margin: 0; }

header .highlight {
  background: linear-gradient(90deg, #0070f3, red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

header .current a { color: #7B2FFF; font-weight: bold; }
header a:hover    { color: #A78BFA; font-weight: bold; }

/* ---- زر اللغة ---- */
.lang-btn {
  padding: 7px 18px;
  background: rgba(123, 47, 255, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #A78BFA;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  position: absolute;    
  right: 15px;     /* من اليمين */
  top: 15px;
  z-index: 999;        /* يطلع فوق كل شي */
}
.lang-btn:hover {
  background: rgba(123, 47, 255, 0.45);
  border-color: #A78BFA;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 47, 255, 0.4);
}
/* ===========================
   SHOWCASE
=========================== */
#showcase {
  width: 100%;
  min-height: 400px;
  background: url('../img/JJK_CURCED.jpg') no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #ffffff;
  border-bottom: red 3px solid;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#showcase .container { width: 80%; margin: auto; overflow: visible; }
/* ===========================
   MAIN TABS
=========================== */
.tabs {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 20px 0 10px;
  flex-wrap: wrap;
}

.tabs button {
  padding: 14px 40px;
  background: rgba(21, 48, 110, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e0e8ff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.tabs button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.tabs button:hover::before { left: 100%; }

.tabs button.active {
  background: linear-gradient(135deg, #1751c7, #0d2a66);
  color: #fff;
  border: 1px solid rgba(23,81,199,0.6);
  transform: translateY(-4px);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 8px 25px rgba(23,81,199,0.4), 0 0 30px rgb(241,31,31); }
  50%      { box-shadow: 0 8px 30px rgba(23,81,199,0.6), 0 0 40px rgb(241,31,31); }
}

.tabs button:hover:not(.active) {
  background: rgba(29,63,138,0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23,81,199,0.2);
}

/* ===========================
   SHARED FILTER ROW (scrollable)
=========================== */
.filter-scroll-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #7e22ce #1a1d29;
}

.filter-scroll-row::-webkit-scrollbar { height: 4px; }
.filter-scroll-row::-webkit-scrollbar-track { background: #1a1d29; border-radius: 4px; }
.filter-scroll-row::-webkit-scrollbar-thumb { background: #7e22ce; border-radius: 4px; }

/* ===========================
   NEWS FILTER
=========================== */
.news-filter {
  padding: 8px 20px 18px;
}

.news-btn {
  position: sticky;
  padding: 12px 18px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.news-btn:hover:not(.active) {
  background: rgba(220, 38, 38, 0.28);
  border-color: rgba(248, 113, 113, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}

.news-btn.active {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  border-color: #f87171;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220,38,38,0.5);
}

/* ===========================
   CHARACTER FILTER
=========================== */
.char-filter {
  padding: 8px 20px 18px;
}

.char-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  background: rgba(126, 34, 206, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: #c084fc;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.char-btn:hover:not(.active) {
  background: rgba(126, 34, 206, 0.3);
  border-color: rgba(192,132,252,0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(126,34,206,0.3);
}

.char-btn.active {
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(126,34,206,0.5);
}
/* ===========================
   GRID
=========================== */
.grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 10px 30px;
}

.no-results {
  text-align: center;
  color: #888;
  font-size: 15px;
  padding: 30px 0;
}

/* ===========================
   CARDS
=========================== */
.instagram-card {
  background: #242735;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.instagram-card.show { opacity: 1; transform: translateY(0); }

.insta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 600;
}

.insta-author { color: #c084fc; }
.insta-date   { color: #aaa; font-size: 12px; }

.insta-title {
  padding: 0 15px;
  margin: 6px 0 10px;
  font-size: 16px;
  color: #fff;
}

.instagram-card img,
.instagram-card video {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-top: 1px solid #333;
}

.insta-desc {
  padding: 0 15px 10px;
  margin: 0;
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.insta-desc.expanded { -webkit-line-clamp: unset; overflow: visible; }

.read-more-btn {
  background: none;
  border: none;
  color: #ff66c4;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 15px 15px;
  margin-top: -5px;
  transition: 0.2s;
}

.read-more-btn:hover { color: #ff99dd; transform: translateX(3px); }

/* ===========================
   DOWNLOAD BUTTON
=========================== */
.download-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: rgba(23,81,199,0.2);
  border: 1px solid rgba(23,81,199,0.5);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.download-btn:hover {
  background: rgba(23,81,199,0.45);
  border-color: #60a5fa;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23,81,199,0.4);
}
.load-more-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 40px;
  background: linear-gradient(135deg, #6b21a8, #4c1d95);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.load-more-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* ===========================
   ABOUT / SERVICES PAGES
=========================== */
article#main-col { float: left;  width: 55%; }
aside#sidebar    { float: right; width: 40%; margin-top: 0; }

/* DMCA + Contact جنب بعض على الديسكتوب */
.dmca-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dmca-col, .contact-col { width: 100%; }

.dark {
  background: #0a0a0a;
  color: #e0e0e0;
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 25px;
  position: relative;
  border: 2px solid transparent;
  background-image: linear-gradient(#0a0a0a, #0a0a0a),
                    linear-gradient(135deg, #7e22ce, #c084fc, #7e22ce);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 25px rgba(126,34,206,0.4);
  transition: all 0.4s ease;
}

.dark:hover { box-shadow: 0 0 40px rgba(192,132,252,0.7); transform: translateY(-5px); }

.dark h3 {
  color: #c084fc;
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  text-shadow: 0 0 8px rgba(192,132,252,0.5);
  border-bottom: 2px solid rgba(126,34,206,0.3);
  padding-bottom: 10px;
}

.page-title {
  color: red;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(126,34,206,0.6);
}

.dmca-list { padding-left: 0; list-style: none; }
.dmca-list li { padding: 5px 0; color: #ccc; }

/* ===========================
   FOOTER
=========================== */
footer {
  padding: 20px;
  margin-top: 20px;
  color: #ffffff;
  background-color: #0E1C3C;
  text-align: center;
  border-top: #7B2FFF 2px solid;
}

/* ===========================
   BACK BUTTON
=========================== */
.back-btn {
  position: fixed;
  bottom: 70px;
  right: -100%;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 50px;
  background: black;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.4s;
  border: none;
}

.back-btn.active { right: 20px; }

/* ===========================
   MEDIA — TABLET (max 768px)
=========================== */
@media (max-width: 768px) {
  .container { width: 95%; }

  header #branding,
  header nav,
  header nav li,
  article#main-col,
  aside#sidebar {
    float: none;
    text-align: center;
    width: 100%;
  }

  header { padding-bottom: 20px; }
  header .container { justify-content: center; }
#showcase {
  width: 100%;
  min-height: 400px;
  background: url('../img/JJK_CURCED.jpg') no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #ffffff;
  border-bottom: red 3px solid;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .tabs button { padding: 15px 33px; font-size: 16px; }

  .grid { max-width: 100%; }
}

@media (max-width: 480px) {
  header .highlight { font-size: 38px; }
}
#showcase {
  width: 100%;
  min-height: 400px;
  background: url('../img/JJK_CURCED.jpg') no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #ffffff;
  border-bottom: red 3px solid;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ===========================
   DESKTOP (min 1024px)
=========================== */
@media (min-width: 1024px) {
  header { padding-top: 15px; min-height: 80px; }
  header .highlight { font-size: 42px; }
  header a { font-size: 17px; }

#showcase {
  width: 100%;
  min-height: 400px;
  background: url('../img/showcase.jpg') no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #ffffff;
  border-bottom: red 3px solid;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .tabs { padding: 30px 0 15px; gap: 20px; }
  .tabs button { padding: 16px 55px; font-size: 17px; }
  .grid { max-width: 750px; gap: 30px; padding-bottom: 50px; }

  .instagram-card img,
  .instagram-card video { max-height: 600px; }

  .insta-title { font-size: 18px; padding: 0 20px; margin: 10px 0; }
  .insta-desc  { font-size: 15px; padding: 0 20px 12px; }

  .container { width: 75%; max-width: 1200px; }

  article#main-col { width: 62%; }
  aside#sidebar    { width: 33%; }

  footer { padding: 25px; font-size: 16px; }

  /* DMCA + Contact جنب بعض */
  .dmca-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }
  .dmca-col    { flex: 2; }
  .contact-col { flex: 1; position: sticky; top: 20px; }
}
/* ===========================
   WIDE SCREEN (min 1440px)
=========================== */
@media (min-width: 1440px) {
  #showcase { min-height: 650px;}
  .grid { max-width: 850px; }
  .container { width: 70%; max-width: 1300px; }
}

/* ===========================
   WARNING BUTTON & MODAL
=========================== */
.warn-btn {
  position: absolute;
  left: 15px;
  top: 15px;
  z-index: 999;
  width: 34px;
  height: 34px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #ef4444;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.warn-btn:hover {
  background: rgba(220, 38, 38, 0.35);
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
  transform: scale(1.08);
}

.warn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.warn-overlay.open { display: flex; }

.warn-box {
  background: #1a1d29;
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 30px 28px;
  max-width: 500px;
  width: 92%;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.45);
}
.warn-box .warn-ar {
  direction: rtl;
  text-align: right;
}
.warn-box .warn-en {
  direction: ltr;
  text-align: left;
  margin-top: 16px;
}
.warn-box p {
  color: #e0e0e0;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 8px;
}
.warn-ok-btn {
  display: block;
  margin: 22px auto 0;
  padding: 10px 44px;
  background: #ef4444;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
.warn-ok-btn:hover { background: #b91c1c; }