:root {
  --bg-main: #0b1c2d;
  --bg-card: #1e1e1e;
  --text-main: #e4e6eb;
  --text-muted: #a0a4ab;
}

* {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0b1c2d, #000);
  color: var(--text-main);
  direction: rtl;
}

/* ==================================================
   SPLASH SCREEN (BLOCK ALL INTERACTION)
================================================== */

/* While splash is active → NOTHING is clickable */
body.splash-active {
  pointer-events: none;
}

/* Splash itself blocks clicks from passing through */
body.splash-active .splash {
  pointer-events: auto;
}

/* Video must NEVER be interactive */
body.splash-active .splash video {
  pointer-events: none;
}

.splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #0b1c2d, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: splashFadeOut 5s forwards;
}

.splash-video {
  width: 60%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: contain;

  -webkit-mask-image: radial-gradient(
    circle,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 75%
  );
  mask-image: radial-gradient(
    circle,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 75%
  );
}

@keyframes splashFadeOut {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ==================================================
   HEADER
================================================== */

.site-header {
  text-align: center;
  padding: 40px 20px 20px;
}

.site-header p {
  color: var(--text-muted);
}

/* ==================================================
   GRID
================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
}

.post {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.post img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ==================================================
   NEW POST (HERO)
================================================== */

.new-post {
  grid-column: span 2;
  border: 3px solid red;
  animation: blink 1.2s infinite;
}

.new-post::after {
  content: "NEW";
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

@keyframes blink {
  0%   { box-shadow: 0 0 0 rgba(255,0,0,0); }
  50%  { box-shadow: 0 0 15px rgba(255,0,0,0.9); }
  100% { box-shadow: 0 0 0 rgba(255,0,0,0); }
}

/* ==================================================
   MODAL
================================================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.hidden {
  display: none;
}

.modal-content {
  width: 90%;
  max-width: 420px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Red X */
.close {
  position: absolute;
  left: 15px;
  top: 10px;
  font-size: 26px;
  background: none;
  color: red;
  border: none;
  cursor: pointer;
  font-weight: bold;
  z-index: 9999;
}

/* ==================================================
   SLIDER (RTL-SAFE, MOVES RIGHT)
================================================== */

.slider {
  width: 100%;
  overflow: hidden;
  direction: ltr;
}

.slider-track {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  transition: transform 0.35s ease;
}

.slider-track img,
.slider-track video {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ==================================================
   DOTS
================================================== */

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #666;
}

.dot.active {
  background: white;
}

/* ==================================================
   INFO
================================================== */

.post-info {
  padding: 16px;
}

.post-info p {
  color: var(--text-muted);
}

.whatsapp-btn {
  display: block;
  margin-top: 10px;
  padding: 12px;
  background: #25d366;
  color: black;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
}
