/* =========================
   GLOBAL VARIABLES
========================= */
:root{
  --bg:#050505;
  --bg2:#0b0b0b;
  --red:#8b0000;
  --red-glow:#ff1a1a;
  --text:#e6e6e6;
  --muted:#9a9a9a;
  --card:#0f0f0f;
  --border:#1f1f1f;
}

/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:"JetBrains Mono",monospace;
  background:radial-gradient(circle at top,var(--bg2),var(--bg));
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
}

/* =========================
   BACKGROUND EFFECTS
========================= */
.bg-grid{
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,0,0,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,0,0,.03) 1px,transparent 1px);
  background-size:40px 40px;
  z-index:-2;
}

.bg-glow{
  position:fixed;
  top:-30%;
  left:50%;
  transform:translateX(-50%);
  width:900px;
  height:900px;
  background:radial-gradient(circle,var(--red-glow),transparent 65%);
  opacity:.15;
  filter:blur(120px);
  z-index:-1;
}

/* =========================
   NAVBAR
========================= */
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 32px;
  background:rgba(5,5,5,.85);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:50;
}

.logo{
  font-size:20px;
  font-weight:700;
  letter-spacing:1px;
}

.logo-red{color:var(--red-glow)}
.logo-white{color:#fff}

/* =========================
   DROPDOWN MENU
========================= */
.nav-menu{position:relative}

.menu-btn{
  background:transparent;
  border:1px solid var(--border);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  transition:.3s;
}

.menu-btn:hover{
  border-color:var(--red);
  box-shadow:0 0 12px rgba(255,0,0,.4);
}

.menu-btn .arrow{
  font-size:12px;
  transition:.3s;
}

.menu-btn.active .arrow{
  transform:rotate(180deg);
}

.dropdown{
  position:absolute;
  top:56px;
  right:0;
  width:240px;
  background:linear-gradient(180deg,#0e0e0e,#050505);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  display:none;
  flex-direction:column;
  gap:6px;
  box-shadow:0 0 35px rgba(255,0,0,.25);
  animation:dropdown .3s ease;
  z-index:99;
}

@keyframes dropdown{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}

.dropdown.active{display:flex}

.dropdown a{
  padding:10px 12px;
  border-radius:10px;
  color:#dcdcdc;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  transition:.3s;
}

.dropdown a i{
  color:var(--red-glow);
  width:18px;
}

.dropdown a:hover{
  background:#8b0000;
  color:#fff;
  box-shadow:0 0 12px rgba(255,0,0,.6);
}

/* =========================
   MAIN LAYOUT
========================= */
.container{
  max-width:1300px;
  margin:70px auto;
  padding:0 24px;
}

.posts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:32px;
}

/* =========================
   POST CARD
========================= */
.post-card{
  background:linear-gradient(180deg,var(--card),#070707);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  transition:.35s;
}

.post-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 35px rgba(255,0,0,.25);
}

/* 🔥 GÖRSEL SIĞDIRMA DÜZELTMESİ */
.post-card{
  background:linear-gradient(180deg,var(--card),#070707);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  transition:.35s;
  position:relative;
}

.post-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 35px rgba(255,0,0,.25);
}

.post-image img{
  width:100%;
  height:auto;
  object-fit:cover;
  filter:grayscale(.15) contrast(1.1);
}

.post-content{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.post-category{
  font-size:11px;
  color:var(--red-glow);
  text-transform:uppercase;
  letter-spacing:1px;
}

.post-title{
  font-size:16px;
  font-weight:600;
}

.post-desc{
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
}

.inspect-btn{
  margin-top:8px;
  padding:10px 0;
  border-radius:10px;
  border:1px solid var(--red);
  background:transparent;
  color:#fff;
  cursor:pointer;
  transition:.3s;
}

.inspect-btn:hover{
  background:var(--red);
  box-shadow:0 0 15px rgba(255,0,0,.6);
}

/* =========================
   MODAL
========================= */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100;
}

.modal.active{display:flex}

/* 🔥 MOBİL SCROLL DÜZELTMESİ */
.modal-box{
  width:min(720px,92%);
  max-height:90vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;

  background:linear-gradient(180deg,#0e0e0e,#050505);
  border:1px solid var(--border);
  border-radius:18px;
  padding:28px;
  box-shadow:0 0 45px rgba(255,0,0,.25);
  position:relative;
  animation:pop .35s ease;
}

@keyframes pop{
  from{transform:scale(.9);opacity:0}
  to{transform:scale(1);opacity:1}
}

.modal-close{
  position:absolute;
  top:16px;
  right:18px;
  font-size:26px;
  color:#aaa;
  cursor:pointer;
}

.modal-close:hover{color:#fff}

.modal-box pre{
  background:#020617;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:14px;
  font-size:13px;
  line-height:1.6;
  white-space:pre-wrap;
  word-wrap:break-word;
  overflow-wrap:break-word;
  overflow-x:hidden;
  margin-bottom:20px;
}

/* PASSWORD */
.modal-password{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}

.password-box{
  padding:6px 12px;
  border-radius:8px;
  background:#0b0b0b;
  border:1px solid var(--red);
  color:var(--red-glow);
  font-weight:600;
}

/* DOWNLOAD */
.download-btn{
  display:block;
  text-align:center;
  padding:14px 0;
  border-radius:12px;
  border:1px solid var(--red);
  color:#fff;
  text-decoration:none;
  transition:.3s;
}

.download-btn:hover{
  background:var(--red);
  box-shadow:0 0 18px rgba(255,0,0,.6);
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top:80px;
  border-top:1px solid var(--border);
  background:#050505;
}

.footer-inner{
  max-width:1200px;
  margin:auto;
  padding:32px 24px;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-inner p{
  font-size:13px;
  color:var(--muted);
}

.footer-inner small{
  font-size:12px;
  color:#666;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){
  .navbar{padding:14px 20px}
  .container{margin:40px auto}
}

@media(max-width:600px){
  .modal{align-items:flex-end}
  .modal-box{
    max-height:95vh;
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
  }
}
/* =========================
   PAGE LOADER
========================= */
#pageLoader{
  position:fixed;
  inset:0;
  background:radial-gradient(circle at top,var(--bg2),var(--bg));
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  transition:opacity .6s ease, visibility .6s ease;
}

#pageLoader.hide{
  opacity:0;
  visibility:hidden;
}

.loader-inner{
  font-size:34px;
  font-weight:700;
  letter-spacing:3px;
  animation:pulse 1.6s infinite;
}

.loader-red{
  color:var(--red-glow);
  text-shadow:0 0 18px rgba(255,0,0,.8);
}

.loader-white{
  color:#fff;
}

@keyframes pulse{
  0%{opacity:.4;transform:scale(.95)}
  50%{opacity:1;transform:scale(1)}
  100%{opacity:.4;transform:scale(.95)}
}
/* MODAL IMAGE SLIDER */
.modal-gallery{
  margin:20px 0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
}

.gallery-track{
  display:flex;
  transition:.4s ease;
}

.gallery-img{
  width:100%;
  flex-shrink:0;
  max-height:260px;
  object-fit:cover;
  cursor:pointer;
}

.gallery-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  padding:10px;
  background:#050505;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#444;
}

.dot.active{
  background:var(--red-glow);
  box-shadow:0 0 8px rgba(255,0,0,.8);
}

/* FULLSCREEN IMAGE */
.image-viewer{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.image-viewer.active{display:flex}

.image-viewer img{
  max-width:92%;
  max-height:92%;
  border-radius:14px;
  box-shadow:0 0 40px rgba(255,0,0,.4);
}

.image-close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:32px;
  color:#fff;
  cursor:pointer;
}
/* =========================
   FLAG BADGE (CARD CORNER)
========================= */
.post-image{
  position:relative;
}

.flag-badge{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:22px;
  border-radius:6px;
  overflow:hidden;
  background:#000;
  box-shadow:0 4px 12px rgba(0,0,0,.6);
  z-index:3;
}

.flag-badge img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* =========================
   SECURE DOWNLOAD PANEL
========================= */
.secure-download{
  margin-top:24px;
  background:linear-gradient(180deg,#0a0a0a,#050505);
  border:1px solid rgba(255,0,0,.25);
  border-radius:18px;
  padding:18px;
  box-shadow:0 0 25px rgba(255,0,0,.15);
}

.secure-header{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:var(--red-glow);
  margin-bottom:14px;
}

.secure-header i{
  text-shadow:0 0 10px rgba(255,0,0,.8);
}

.secure-password .label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
  display:block;
}

.password-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.password-value{
  flex:1;
  padding:10px 14px;
  background:#0b0b0b;
  border:1px solid var(--red);
  border-radius:12px;
  color:var(--red-glow);
  font-weight:600;
  letter-spacing:.5px;
}

.copy-btn{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#080808;
  color:#fff;
  cursor:pointer;
  transition:.3s;
}

.copy-btn:hover{
  border-color:var(--red);
  box-shadow:0 0 12px rgba(255,0,0,.6);
}

.secure-download-btn{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 0;
  border-radius:14px;
  border:1px solid var(--red);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
}

.secure-download-btn:hover{
  background:var(--red);
  box-shadow:0 0 18px rgba(255,0,0,.6);
}
.footer-instagram{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  font-size:22px;
  color:#e1306c;
  transition:.25s;
}

.footer-instagram:hover{
  transform:scale(1.15);
  color:#ff4da6;
}