/* ------------------------------
   Modern Light Blue & White Theme
   Glass + Soft Neon UI
------------------------------ */

:root{
  --bg:#f0f6fc;
  --card-bg:rgba(255,255,255,0.85);
  --glass:rgba(255,255,255,0.6);
  --text:#0d1b2a;
  --text-muted:#5a6c85;
  --accent:#4da6ff;
  --accentr:rgb(255, 77, 77);
  --accent-glow:#8ecbff;
  --accentr-glow: rgb(255, 142, 142)f;
  --radius:16px;

  font-family: 'Inter', system-ui, sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;}

body{
  background:linear-gradient(180deg,#eaf3fc,#f0f6fc 60%);
  color:var(--text);
  min-height:100vh;
  font-size:16px;
}

/* --------------------------------
   NAVBAR - Soft Glass & Glow
----------------------------------*/
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 30px;
  background:var(--glass);
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(77,166,255,0.2);
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  border-radius:0 0 var(--radius) var(--radius);
}

.brand a{
  font-size:22px;
  font-weight:700;
  color:var(--accent);
  text-decoration:none;
  letter-spacing:0.5px;
  text-shadow:0 0 6px var(--accent-glow);
}

.search{
  display:flex;
  align-items:center;
  gap:12px;
}

.search input, .search select{
  padding:12px 16px;
  border-radius:var(--radius);
  border:1px solid rgba(77,166,255,0.3);
  background:rgba(255,255,255,0.6);
  color:var(--text);
  transition:.25s;
  backdrop-filter:blur(10px);
}

.search input:focus, .search select:focus{
  border-color:var(--accent);
  box-shadow:0 0 12px var(--accent-glow);
}

/* Glow Button */
.btn{
  padding:12px 20px;
  background:var(--accent);
  color:#fff;
  border-radius:var(--radius);
  font-weight:600;
  text-decoration:none;
  transition:.3s;
  box-shadow:0 0 12px var(--accent-glow);
}
.btn:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 0 20px var(--accent-glow);
}

.btnr{
  padding:12px 20px;
  background:var(--accentr);
  color:#fff;
  border-radius:var(--radius);
  font-weight:600;
  text-decoration:none;
  transition:.3s;
  box-shadow:0 0 12px var(--accentr-glow);
}
.btnr:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 0 20px var(--accentr-glow);
}

/* --------------------------------
   CONTAINER & CARD DESIGN
----------------------------------*/
.container{
  max-width:1100px;
  margin:40px auto;
  padding:0 20px;
}

.card{
  background:var(--card-bg);
  padding:24px;
  border-radius:var(--radius);
  backdrop-filter:blur(18px);
  border:1px solid rgba(77,166,255,0.2);
  box-shadow:0 8px 26px rgba(0,0,0,0.1);
  transition:.35s;
  animation:fadeIn .6s ease forwards;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(0,0,0,0.15);
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

/* --------------------------------
   INPUTS
----------------------------------*/
input, textarea{
  width:100%;
  padding:14px;
  margin:10px 0;
  border-radius:var(--radius);
  background:rgba(255,255,255,0.7);
  color:var(--text);
  border:1px solid rgba(77,166,255,0.3);
  transition:.25s;
}

input:focus, textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 12px var(--accent-glow);
}

label{
  color:var(--text-muted);
  font-size:14px;
  margin-top:6px;
  display:block;
}

/* --------------------------------
   BUTTON
----------------------------------*/
button{
  padding:14px 22px;
  border-radius:var(--radius);
  background:var(--accent);
  border:none;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  margin-top:12px;
  box-shadow:0 0 14px var(--accent-glow);
  transition:.3s;
}
button:hover{
  transform:scale(1.04) translateY(-2px);
  box-shadow:0 0 20px var(--accent-glow);
}

/* --------------------------------
   POST LIST
----------------------------------*/
.listings .post{
  padding:18px;
  border-radius:var(--radius);
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(12px);
  display:flex;
  justify-content:space-between;
  margin-bottom:16px;
  transition:.25s;
}
.listings .post:hover{
  background:rgba(255,255,255,0.9);
  transform:translateY(-3px);
}

.post .meta{
  color:var(--text-muted);
}

/* --------------------------------
   LOCKED CONTENT
----------------------------------*/
.locked{
  padding:22px;
  background:rgba(255,255,255,0.75);
  border-radius:var(--radius);
  text-align:center;
  animation:fadeIn .5s ease-out;
}

/* --------------------------------
   LINKS
----------------------------------*/
a{
  color:var(--accent);
  transition:.2s
}
a:hover{
  text-shadow:0 0 8px var(--accent-glow)
}

/* --------------------------------
   RESPONSIVE DESIGN
----------------------------------*/
@media (max-width:900px){
  .search{flex-wrap:wrap}
}

@media (max-width:700px){
  .topbar{
    flex-direction:column;
    gap:14px;
    padding:20px;
  }
  .brand a{font-size:24px}
}

@media (max-width:550px){
  .card, .post{padding:20px}
  .btn, button{width:100%;text-align:center}
}

/* --------------------------------
   LOGIN / REGISTER CONTAINER - MODERN GLASS
----------------------------------*/
body.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #e0f0ff, #cce6ff 70%);
  font-family: 'Inter', sans-serif;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  margin: 40px;
  background: rgba(255, 255, 255, 0.3); /* yarı saydam cam efekti */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  padding: 32px 28px;
  animation: fadeIn 0.6s ease forwards;
  transition: all 0.3s ease;
}

.auth-container:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0.5px;
}

.auth-container form label {
  display: block;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-container form input {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: var(--radius);
  border: 1px solid rgba(77, 166, 255, 0.3);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.auth-container form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  outline: none;
}

.auth-container form button {
  width: 100%;
  padding: 14px 0;
  margin-top: 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 14px var(--accent-glow);
  transition: all 0.3s ease;
}

.auth-container form button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px var(--accent-glow);
}

.auth-container p {
  text-align: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-container a {
  color: var(--accent);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.auth-container a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Responsive */
@media (max-width:500px) {
  .auth-container {
    padding: 28px 20px;
    margin: 20px;
  }
  .auth-container h2 {
    font-size: 24px;
  }
}

/* --------------------------------
   POST DETAIL PAGE - MODERN GLASS
   Prefix: postpage-
----------------------------------*/
.postpage-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  animation: fadeIn 0.6s ease forwards;
  transition: all 0.3s ease;
}

.postpage-container:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.postpage-container a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.postpage-container a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Post title */
.postpage-title {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Meta information - categories separated */
.postpage-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.postpage-meta span {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.postpage-meta span:hover {
  background: rgba(255, 255, 255, 0.5);
}

.postpage-meta span p {
  display: inline-block; /* inline-block ile değer yanına geçer */
  color: var(--accent); /* açık mavi / accent rengi */
  font-weight: 600;
  margin: 0; /* <p> default margin kaldır */
  font-size: 13px;
}

/* Post content */
.postpage-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.postpage-content p {
  margin-bottom: 14px;
}

/* Locked content message */
.postpage-locked {
  padding: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.postpage-locked a {
  color: var(--accent);
  font-weight: 600;
}

.postpage-locked a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

.post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-img {
  width: 260px;      /* Küçük ama oran koruyor */
  height: 146px;     /* 1920x1080 oranı = 16:9 */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #c6e4ff33;
  background: #000;
}

/* ---- Post Resimleri ---- */
.post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.post-img {
    width: 180px;        /* Küçük önizleme boyutu */
    height: 101px;       /* 16:9 oranını koru */
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.25s, box-shadow 0.25s;
}

.post-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ---- Image Popup Modal ---- */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    transition: opacity 0.25s ease;
}

.img-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.25s ease forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    .post-images {
        justify-content: center;
    }
    
    .post-img {
        width: 45%;
        height: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .postpage-container {
    padding: 24px 18px;
    margin: 30px 12px;
  }

  .postpage-title {
    font-size: 24px;
  }

  .postpage-meta {
    justify-content: flex-start;
    gap: 8px;
  }

  .postpage-meta span {
    font-size: 13px;
    padding: 5px 10px;
  }

  .postpage-content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .postpage-container {
    padding: 20px 14px;
  }

  .postpage-title {
    font-size: 20px;
  }

  .postpage-content {
    font-size: 15px;
  }
}
