/* Nintendo Switch tarayıcısı: 1280x720 sabit, uzaktan bakılan ekran.
   Büyük fontlar, büyük tıklama alanları, belirgin odak halkası. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 18px; }

body {
  font-family: "Segoe UI", "Hiragino Sans", Arial, sans-serif;
  background: #16181c;
  color: #e8eaed;
  padding-bottom: 40px;
}

a { color: inherit; text-decoration: none; }

/* Switch'te imleçle gezinilse de odak halkası D-pad/sekmede hayat kurtarır */
a:focus, button:focus, input:focus,
a:hover, button:hover {
  outline: 4px solid #ffcc00;
  outline-offset: 2px;
}

#topbar {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center;
  background: #1f2228;
  padding: 12px 24px;
  border-bottom: 3px solid #ff4500;
}

#logo { font-size: 1.5rem; font-weight: bold; color: #ff4500; padding: 6px 10px; }

#topbar-actions { display: -webkit-flex; display: flex; }
#topbar-actions > * { margin-left: 12px; }

#app { max-width: 1200px; margin: 0 auto; padding: 20px 24px; }

.loading, .error {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.3rem;
  color: #9aa0a6;
}
.error { color: #ff7b6b; }

.btn {
  display: inline-block;
  background: #2b2f36;
  color: #e8eaed;
  border: 2px solid #444a54;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-small { padding: 8px 16px; font-size: 1rem; }
.btn-wide {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: #ff4500;
  border-color: #ff4500;
  color: #fff;
  font-weight: bold;
}
.btn-active { background: #ff4500; border-color: #ff4500; color: #fff; font-weight: bold; }

h1.page-title { font-size: 1.7rem; margin-bottom: 16px; word-wrap: break-word; }

/* --- Ana sayfa --- */
.section-title { font-size: 1.2rem; color: #9aa0a6; margin: 24px 0 12px; }

.sub-grid {
  display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
}
.sub-grid .btn { margin: 0 12px 12px 0; }

.search-row { display: -webkit-flex; display: flex; margin-bottom: 8px; }
.search-row input {
  -webkit-flex: 1; flex: 1;
  background: #22252b;
  border: 2px solid #444a54;
  border-radius: 10px;
  color: #e8eaed;
  font-size: 1.2rem;
  padding: 14px 18px;
  font-family: inherit;
}
.search-row .btn { margin-left: 12px; }

/* --- Gönderi listesi --- */
.sort-tabs { margin-bottom: 20px; }
.sort-tabs .btn { margin-right: 10px; }

.post-card {
  display: -webkit-flex; display: flex;
  background: #1f2228;
  border: 2px solid #2b2f36;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.post-card .thumb {
  width: 120px; height: 90px;
  border-radius: 8px;
  background: #2b2f36;
  margin-right: 18px;
  -webkit-flex-shrink: 0; flex-shrink: 0;
  object-fit: cover;
  text-align: center;
  overflow: hidden;
}
.thumb-placeholder {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  font-size: 2rem; color: #565d68;
}
.post-card .post-title { font-size: 1.15rem; line-height: 1.35; margin-bottom: 8px; }
.post-card .post-meta { font-size: 0.95rem; color: #9aa0a6; }
.post-meta .score { color: #ff8b60; font-weight: bold; }
.post-meta .sub { color: #7fb2ff; }

.load-more-wrap { text-align: center; margin: 24px 0; }

.stale-note {
  background: #2b2620;
  border: 2px solid #6b5a2a;
  border-radius: 10px;
  color: #e0c98a;
  padding: 10px 16px;
  margin-bottom: 14px;
  font-size: 1rem;
}

/* --- Gönderi detayı --- */
.post-body { background: #1f2228; border-radius: 14px; padding: 20px; margin-bottom: 24px; }
.post-body .post-meta { margin-bottom: 14px; }
.post-body img.full { max-width: 100%; border-radius: 10px; display: block; margin: 12px auto; }
.post-body video { max-width: 100%; border-radius: 10px; display: block; margin: 12px auto; }
.selftext { font-size: 1.1rem; line-height: 1.55; margin-top: 12px; word-wrap: break-word; }
.ext-link { display: inline-block; margin-top: 12px; color: #7fb2ff; word-break: break-all; padding: 8px; }
.video-note { color: #9aa0a6; font-size: 0.95rem; margin-top: 8px; }

/* --- Yorumlar --- */
.comments-title { font-size: 1.3rem; margin-bottom: 14px; }
.comment {
  border-left: 4px solid #3a4048;
  padding: 10px 0 4px 16px;
  margin: 10px 0 10px 4px;
}
.comment .c-meta { font-size: 0.9rem; color: #9aa0a6; margin-bottom: 6px; }
.comment .c-meta .author { color: #8fd18f; font-weight: bold; }
.comment .c-body { font-size: 1.05rem; line-height: 1.5; word-wrap: break-word; }
.comment .comment { margin-left: 8px; }
.more-note { color: #565d68; font-size: 0.95rem; padding: 6px 0 0 20px; }
