/*
 * Site düzeni: tutarlı yazı boyutları, boşluklar ve dokunmatik dostu düğmeler.
 * style.min.css'ten sonra yüklenir; sitenin renkleri ve genel görünümü korunur.
 *
 * Ölçek (masaüstü / mobil):
 *   Sayfa başlığı (h1 panel başlığı) 24 / 20 px
 *   Kutu başlıkları                  20 / 18 px
 *   Gövde yazısı                     15 / 15 px
 *   İçerik (server/blog yazısı)      16 / 16 px
 */

/* İtalik kullanılmaz */
em, i:not(.fa), cite, dfn, var, address { font-style: normal; }

/* ---------- Genel (tüm ekranlar) ---------- */

/* Kutu başlıkları: 16/20/24/26 px karışıklığı yerine iki boyut */
#main .panel-heading .panel-title { font-size: 20px !important; line-height: 1.3; }
#main .panel-heading h1.panel-title { font-size: 24px !important; }

/* Server ve blog içeriği: okunaklı satır aralığı, taşmayan resimler */
#serverArticle, #blogArticle { font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
#serverArticle img, #blogArticle img { max-width: 100%; height: auto; }
#serverArticle iframe, #blogArticle iframe { max-width: 100%; }

/* Server sayfası: server adı sayfanın ana başlığı (h1), 12 px yerine belirgin */
#main .panel-body h1.col-xs-9 { font-size: 16px !important; font-weight: 700; color: #fff; line-height: 1.5; }

/* Düğmeler: yumuşak geçiş */
.btn { transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease; }
.btn:active { transform: translateY(1px); }

/* Anasayfa SEO metni */
.seo-aciklama h2 { font-size: 22px; line-height: 1.35; margin: 0 0 12px; color: #fff; }
.seo-aciklama h3 { font-size: 18px; line-height: 1.4; margin: 20px 0 10px; color: #fff; }
.seo-aciklama p, .seo-aciklama li { font-size: 15px; line-height: 1.7; }
.seo-aciklama ul { padding-left: 20px; }
.seo-aciklama li { margin-bottom: 8px; }

/* ---------- Videolar: kart ızgarası ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; margin-bottom: 16px; }
.video-kart { display: block; color: #ddd; text-decoration: none; }
.video-kart:hover, .video-kart:focus { color: #e3b04b; text-decoration: none; }
.video-kart-resim { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #111; border: 1px solid rgba(255, 255, 255, .08); }
/* YouTube kapakları 4:3 ve üst/alt siyah bantlı; 16:9 kırpılınca bantlar gider */
.video-kart-resim img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-kart:hover .video-kart-resim img { transform: scale(1.04); }
.video-kart:hover .video-kart-resim { border-color: #e3b04b; }
.video-kart-oynat { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .65); color: #fff; border: 2px solid rgba(255, 255, 255, .85); transition: background-color .15s ease; }
.video-kart:hover .video-kart-oynat { background: #e3b04b; color: #111; border-color: #e3b04b; }
.video-kart-baslik { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; min-height: 2.8em; }
.video-ekle-btn { margin-top: 0; }
.paginationDiv { text-align: center; float: none; }

/* Video detay: oynatıcı ekrana göre 16:9 */
#blogArticle iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ---------- Anasayfa ---------- */
/* Giriş yazısı: h1'in alt boşluğu satırları açıyordu */
#main .col-md-12.font-size-18 { font-size: 16px; line-height: 1.6; margin-bottom: 16px; color: #ccc; }
#main .col-md-12.font-size-18 h1 { font-size: inherit !important; margin: 0 !important; line-height: inherit; color: #fff; }

/* Popüler / Son Eklenen sekmeleri: daha okunur */
@media (min-width: 768px) {
  #main .panel-heading ul[role="tablist"] .btn { font-size: 13px; padding: 6px 14px; }
}

/* Server listesi: satır vurgusu, isimler belirgin */
#main .table-server-list > tbody > tr { transition: background-color .12s ease; }
#main .table-server-list > tbody > tr:hover > td, #main .table-server-list > tbody > tr:hover > th { background-color: rgba(227, 176, 75, .10); }
#main .table-server-list > tbody > tr > td > a { color: #eee; font-weight: 600; }
#main .table-server-list > tbody > tr > td > a:hover { color: #e3b04b; text-decoration: none; }

/* Zor / Orta / Kolay: tıklanınca server sayfası açılır, rengi zorluk rengidir */
#main .table-server-list .zorluk-sutun a { color: inherit; font-weight: 600; }
#main .table-server-list .zorluk-sutun a:hover { text-decoration: underline; }

/* ---------- Mobil (767 px ve altı) ---------- */
@media (max-width: 767px) {

  body { font-size: 15px; line-height: 1.6; }

  /* Eşit kenar boşlukları */
  #main.container { padding-left: 12px; padding-right: 12px; }
  #main > .row { margin-left: -12px; margin-right: -12px; }
  #main > .row > [class*="col-"] { padding-left: 12px; padding-right: 12px; }
  #main .panel { margin-bottom: 16px; }

  /* Başlıklar */
  #main .panel-heading .panel-title { font-size: 18px !important; }
  #main .panel-heading h1.panel-title { font-size: 20px !important; }

  /* Anasayfa giriş yazısı */
  #main .col-md-12.font-size-18 { font-size: 15px !important; line-height: 1.6; margin-bottom: 14px; }
  #main .col-md-12.font-size-18 h1 { font-size: 15px !important; }

  /* Gövde yazıları: 12-14 px yerine 15 px */
  #main .panel-body, #main .panel-list li, #main .table > tbody > tr > td { font-size: 15px; }

  /* Server/blog içeriği: kullanıcıların seçtiği 18-30 px'lik satır içi
     boyutlar mobilde okunabilir ölçeğe indirilir */
  #serverArticle, #blogArticle { font-size: 17px; }
  #serverArticle [style*="font-size"], #blogArticle [style*="font-size"] { font-size: inherit !important; line-height: inherit !important; }
  /* Kullanıcının başlık gibi kullandığı büyük boyutlar (22 px ve üstü) vurgulu kalır */
  #serverArticle [style*="font-size:22"], #serverArticle [style*="font-size: 22"], #serverArticle [style*="font-size:24"], #serverArticle [style*="font-size: 24"],
  #serverArticle [style*="font-size:26"], #serverArticle [style*="font-size: 26"], #serverArticle [style*="font-size:28"], #serverArticle [style*="font-size: 28"],
  #serverArticle [style*="font-size:3"], #serverArticle [style*="font-size: 3"], #serverArticle [style*="font-size:4"], #serverArticle [style*="font-size: 4"],
  #blogArticle [style*="font-size:22"], #blogArticle [style*="font-size: 22"], #blogArticle [style*="font-size:24"], #blogArticle [style*="font-size: 24"],
  #blogArticle [style*="font-size:26"], #blogArticle [style*="font-size: 26"], #blogArticle [style*="font-size:28"], #blogArticle [style*="font-size: 28"],
  #blogArticle [style*="font-size:3"], #blogArticle [style*="font-size: 3"], #blogArticle [style*="font-size:4"], #blogArticle [style*="font-size: 4"] {
    font-size: 20px !important; font-weight: 700; line-height: 1.4 !important;
  }
  #serverArticle h1, #serverArticle h2, #blogArticle h1, #blogArticle h2 { font-size: 20px !important; }
  #serverArticle h3, #serverArticle h4, #blogArticle h3, #blogArticle h4 { font-size: 18px !important; }

  /* Server bilgileri: etiketler alt satıra kaymasın */
  #main .panel-body span.col-xs-3 { width: 36%; }
  #main .panel-body span.col-xs-9, #main .panel-body h1.col-xs-9 { width: 64%; font-size: 15px; }
  #main .panel-body h1.col-xs-9 { font-size: 16px !important; }

  /* Düğmeler: parmakla rahat basılır (en az 44 px) */
  #main .btn { min-height: 44px; padding: 11px 16px; font-size: 15px; line-height: 1.3; }
  #main .btn-sm { min-height: 40px; padding: 9px 14px; font-size: 14px; }
  #main .btn-block + .btn-block { margin-top: 8px; }

  /* Popüler / Son Eklenen sekmeleri: eşit genişlikte yan yana */
  #main .panel-heading ul[role="tablist"] { display: flex; gap: 8px; margin: 10px 0 0; padding: 0; }
  #main .panel-heading ul[role="tablist"] > li { flex: 1 1 0; padding: 0; margin: 0 !important; }
  #main .panel-heading ul[role="tablist"] > li.hidden-xs { display: none !important; }
  #main .panel-heading ul[role="tablist"] > li { min-width: 0; display: flex; }
  #main .panel-heading ul[role="tablist"] > li > .btn { display: flex; align-items: center; justify-content: center; width: 100%; white-space: normal; padding-left: 8px; padding-right: 8px; }

  /* Form alanları: iOS'ta yakınlaştırma yapmasın (16 px), rahat dokunma */
  #main .form-control { font-size: 16px; min-height: 44px; }
  #main textarea.form-control { min-height: 120px; }

  /* Listeler: satır yüksekliği ve dokunma alanı */
  #main .panel-list li { padding-top: 10px; padding-bottom: 10px; }
  #main .table > tbody > tr > td, #main .table > thead > tr > th { padding: 10px 8px; vertical-align: middle; }

  /* Açılır mobil menü: okunur yazı, geniş dokunma alanı */
  #navbar-mobile .navbar-nav { margin: 4px -15px; }
  #navbar-mobile .navbar-nav > li > a { font-size: 16px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  #navbar-mobile .navbar-nav > li:last-child > a { border-bottom: 0; }

  /* Reklam ve resimler ekrandan taşmasın */
  #main img { max-width: 100%; }

  /* Footer (#main'den sonra gelen container) */
  #main ~ .container .text-right { text-align: center; font-size: 14px; line-height: 1.6; padding: 12px 0 20px; }

  /* Videolar: telefonda iki sütun */
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .video-kart-baslik { font-size: 14px; }
  .video-kart-oynat { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  #main .panel-heading .video-ekle-btn { min-height: 36px; padding: 7px 12px; font-size: 14px; }
  /* Server listeleri: Zor / Orta / Kolay telefonda da görünür (Durum sütunu gizli kalır) */
  #main .table-server-list .zorluk-sutun { width: 1%; white-space: nowrap; text-align: right; font-weight: 600; }
}
