/*
Theme Name: Dostyeri Kurumsal Sohbet
Theme URI: https://dostyeri.net/
Author: Tarık Turan
Author URI: https://dostyeri.net/
Description: Galeri (resim yükleme) +  Mobil/PC uyumlu, kurumsal kart tasarımlı sohbet + blog teması. Ekran görüntüsündeki (kart/pil buton) yapıya benzer; renkler Customizer'dan değişir. Nick/şifre alanı yoktur (sadece butonlu giriş).
Version: 1.5.3
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dostyeri
Tags: custom-colors, custom-logo, one-column, two-columns, responsive-layout, blog
*/


/* === v1.4.6 ekler: Gece Modu + Sosyal + Ana Menü === */
:root.is-dark, body.is-dark{
  --bg:#070a0f;
  --card:#0d111a;
  --text:#e5e7eb;
  --muted:#9aa4b2;
  --line:#1f2937;
}
/* fallback if theme doesn't use vars */
body.is-dark{
  background:#070a0f !important;
  color:#e5e7eb !important;
}

.dostyeri-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px;
}
.dostyeri-social{
  display:flex;
  align-items:center;
  gap:10px;
}
.dostyeri-social a{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  text-decoration:none;
}
body:not(.is-dark) .dostyeri-social a{
  border:1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}
.dostyeri-social svg{ width:18px; height:18px; }

#themeToggle{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
body:not(.is-dark) #themeToggle{
  border:1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}

.dostyeri-mainmenu-wrap{
  padding: 10px 0 0;
}
.dostyeri-mainmenu{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding: 0 10px 10px;
  margin:0;
}
.dostyeri-mainmenu a{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:800;
  font-size:12.5px;
}
body:not(.is-dark) .dostyeri-mainmenu a{
  border:1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}


/* Logo */
.site-logo{ height:40px; width:auto; display:block; }

/* Share */
.share-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin: 10px 0 12px;
}
.share-label{ font-weight:900; font-size:12.5px; opacity:.85; }
.share-btn{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  text-decoration:none;
  font-weight:800;
  font-size:12.5px;
}
body.is-dark .share-btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

/* Verified badge */
.verified-badge{ display:inline-flex; vertical-align:middle; }
.verified-badge svg{ width:16px; height:16px; position:relative; top:2px; }

/* Authors */
.authors-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 900px){
  .authors-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
}
.author-card{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
}
body.is-dark .author-card{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.author-avatar{
  width:48px; height:48px; border-radius: 16px; object-fit:cover;
}
.author-name{ font-weight:900; }
.author-bio{ font-size:12.5px; opacity:.85; margin-top:2px; }

/* Membership */
.dy-alert{ padding:10px 12px; border-radius:14px; margin:10px 0; font-weight:800; font-size:12.5px; }
.dy-alert-ok{ border:1px solid rgba(22,163,74,.35); background: rgba(22,163,74,.10); }
.dy-alert-err{ border:1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.10); }
.dy-tabs{ display:flex; gap:8px; margin-top:12px; }
.dy-tab{
  padding:8px 12px; border-radius:999px; border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03); cursor:pointer; font-weight:900; font-size:12.5px;
}
body.is-dark .dy-tab{ border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.dy-tab.is-active{ outline:2px solid rgba(29,155,240,.35); }
.dy-panel{ display:none; margin-top:10px; }
.dy-panel.is-active{ display:block; }
.dy-panel label{ display:block; font-weight:900; font-size:12.5px; margin-top:8px; }
.dy-panel input{
  width:100%; padding:10px 12px; border-radius:14px;
  border:1px solid rgba(0,0,0,.10); background: rgba(0,0,0,.02);
  margin-top:6px;
}
body.is-dark .dy-panel input{ border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color:#fff; }


/* === v1.4.8 Gece Modu Fix === */
html.is-dark{
  background:#070a0f;
}
html.is-dark body{
  background:#070a0f !important;
  color:#e5e7eb !important;
}


/* === v1.4.8 Köşe Yazarları Premium === */
.author-card{
  position:relative;
  overflow:hidden;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.author-card:before{
  content:"";
  position:absolute;
  inset:-40% -20% auto -20%;
  height:140%;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
              radial-gradient(circle at 80% 40%, color-mix(in srgb, var(--accent2) 45%, transparent), transparent 62%);
  opacity:.55;
}
.author-card > *{ position:relative; }
.author-avatar{
  width:56px; height:56px; border-radius: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.author-actions{
  margin-left:auto;
  display:flex;
  gap:8px;
}
.author-btn{
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  text-decoration:none;
  white-space:nowrap;
}
body.is-dark .author-btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.author-stats{
  margin-top:4px;
  font-size:12px;
  opacity:.85;
}

/* Top5 chips */
.top5-wrap{ padding: 10px 0 4px; }
.top5{ display:flex; gap:10px; flex-wrap:wrap; padding: 0 10px; }
.top5-chip{
  display:inline-flex; align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12.5px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  text-decoration:none;
}
body.is-dark .top5-chip{ border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); }

/* Comments */
.comments-area{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.10);
}
body.is-dark .comments-area{ border-top: 1px solid rgba(255,255,255,.14); }
.comment-list{ list-style:none; padding:0; margin:0; }
.comment{
  margin-top:10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
}
body.is-dark .comment{ border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.comment .comment-author{ font-weight:900; }
.comment .comment-metadata{ font-size:12px; opacity:.8; margin-top:2px; }
.comment-content{ margin-top:8px; line-height:1.6; }

.comment-respond label{ display:block; font-weight:900; margin-top:10px; }
.comment-respond input, .comment-respond textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
}
body.is-dark .comment-respond input, body.is-dark .comment-respond textarea{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
}
.comment-respond .form-submit input{
  margin-top:10px;
  cursor:pointer;
}


/* === Dostyeri Lightbox (Galeri) === */
html.no-scroll, html.no-scroll body{ overflow:hidden; }
#dyLightbox{ position:fixed; inset:0; z-index:9999; display:none; }
#dyLightbox.is-open{ display:block; }
#dyLightbox .dy-lb-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.72); backdrop-filter: blur(6px); }
#dyLightbox .dy-lb-panel{
  position:absolute; inset: 18px;
  border-radius: 22px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
#dyLightbox .dy-lb-figure{ margin:0; max-width: min(980px, 92vw); max-height: 86vh; display:flex; flex-direction:column; align-items:center; gap:10px; }
#dyLightbox .dy-lb-img{ max-width:100%; max-height: 78vh; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.55); background:#0b1220; }
#dyLightbox .dy-lb-cap{ color: rgba(255,255,255,.88); font-weight: 800; font-size: 13px; text-align:center; }
#dyLightbox .dy-lb-close{
  position:absolute; top:14px; right:14px;
  width:44px; height:44px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color:#fff; font-weight: 900; cursor:pointer;
}
#dyLightbox .dy-lb-nav{
  position:absolute; top:50%; transform: translateY(-50%);
  width:46px; height:46px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color:#fff; font-weight: 900; font-size: 26px; line-height: 1;
  cursor:pointer;
}
#dyLightbox .dy-lb-prev{ left:14px; }
#dyLightbox .dy-lb-next{ right:14px; }
@media (max-width: 520px){
  #dyLightbox .dy-lb-panel{ inset: 10px; border-radius: 18px; }
  #dyLightbox .dy-lb-nav{ display:none; } /* swipe on mobile */
}
/* Lightbox premium */
#dyLightbox{position:fixed; inset:0; z-index:999999; display:none;}
#dyLightbox.is-open{display:block;}
#dyLightbox .dy-lb-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55); backdrop-filter: blur(8px);}
#dyLightbox .dy-lb-panel{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(92vw, 920px); max-height:88vh; border-radius:22px; background:rgba(10,18,28,.88); border:1px solid rgba(255,255,255,.10); box-shadow:0 20px 70px rgba(0,0,0,.35); overflow:hidden;}
#dyLightbox .dy-lb-stage{position:relative; padding:18px;}
#dyLightbox .dy-lb-figure{margin:0;}
#dyLightbox .dy-lb-img{display:block; width:100%; height:auto; max-height:60vh; object-fit:contain; border-radius:18px;}
#dyLightbox .dy-lb-video{display:block; width:100%; max-height:60vh; border-radius:18px; background:#000;}
#dyLightbox .dy-lb-loading{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); padding:10px 14px; border-radius:14px; background:rgba(0,0,0,.55); color:#fff; font-weight:700;}
#dyLightbox .dy-lb-cap{padding:12px 18px 18px; color:#e9eef6;}
#dyLightbox .cap-title{font-weight:800; font-size:16px; margin-bottom:6px;}
#dyLightbox .cap-link{display:inline-block; padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.10); color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.12);}
#dyLightbox .cap-link:active{transform:scale(.98);}
#dyLightbox .dy-lb-close{position:absolute; right:12px; top:12px; width:44px; height:44px; border-radius:16px; border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.35); color:#fff; font-size:20px;}
#dyLightbox .dy-lb-nav{position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border-radius:18px; border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.25); color:#fff; font-size:26px;}
#dyLightbox .dy-lb-prev{left:10px;}
#dyLightbox .dy-lb-next{right:10px;}
@media (max-width:520px){
  #dyLightbox .dy-lb-panel{width:94vw; max-height:90vh;}
  #dyLightbox .dy-lb-nav{display:none;}
}


/* === 4'lü premium grid (PC) === */
.cards-grid{ display:grid; gap:14px; }
.cards-grid--4{ grid-template-columns: 1fr; }
@media (min-width: 520px){ .cards-grid--4{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 860px){ .cards-grid--4{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px){ .cards-grid--4{ grid-template-columns: repeat(4, minmax(0,1fr)); } }

.mini-card{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  text-decoration:none;
}
.mini-thumb{
  width:52px; height:52px; border-radius: 16px;
  overflow:hidden; background: rgba(0,0,0,.06);
  display:grid; place-items:center; flex:0 0 auto;
}
.mini-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.mini-emoji{ font-size: 22px; }
.mini-title{ font-weight: 900; color:#0d2236; font-size: 14px; line-height: 1.2; }

.dy-quickchips{
  display:flex; gap:10px; flex-wrap:wrap;
  padding: 10px 14px 2px;
}
.dy-quickchips .chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  color:#0d2236; font-weight:900; text-decoration:none;
  font-size: 13px;
}