body {
  background: #e8f1fa url('/img/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Inter', Arial, sans-serif;
  color: #223146;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* -- Tema: Dark & Light -- */
body.theme-dark {
  background: #161c26 !important;
  color: #e4e6ea;
}
body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background: #24304b;
  color: #fff;
  border-color: #444;
}
body.theme-dark .profile-card,
body.theme-dark .card,
body.theme-dark .page-container,
body.theme-dark .ask-question-card,
body.theme-dark .questions-list-block,
body.theme-dark ul.question-list li {
  background: rgba(34, 44, 60, 0.98) !important;
  color: #e4e6ea !important;
  box-shadow: 0 2px 24px rgba(30,40,65,0.18);
}
body.theme-dark .profile-actions a,
body.theme-dark .card .btn {
  background: #2b51a6 !important;
  color: #fff !important;
}
body.theme-dark .profile-actions a:hover,
body.theme-dark .card .btn:hover {
  background: #162a50 !important;
}
body.theme-dark .badge-item {
  background: #243d61;
  color: #a3c5fa;
  border-color: #3e5377;
}

body.theme-light {
  background: #f4f6fa;
  color: #222;
}
body.theme-light input,
body.theme-light textarea,
body.theme-light select {
  background: #fff;
  color: #000;
  border-color: #ccc;
}
body.theme-light .profile-card,
body.theme-light .card,
body.theme-light .page-container {
  background: rgba(255,255,255,0.94);
  color: #223146;
}

/* -- Genel kutu, içerik -- */
.page-container {
  max-width: 1100px;
  margin: 32px auto;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(36,58,110,0.10);
  padding: 34px 32px 48px 32px;
  min-height: 70vh;
}

/* -- Dashboard ve kartlar (genel) -- */
.dashboard-navbar {
  background: #182137;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  font-size: 20px;
  font-weight: 600;
}
.dashboard-main {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44,100,255,0.04);
  padding: 22px 20px 16px 20px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 4px 28px rgba(44,100,255,0.11);
}
.card .title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 9px;
  color: #2e3957;
  letter-spacing: .02em;
}
.card .subtitle {
  color: #5c658c;
  font-size: 15px;
  margin-bottom: 12px;
}
.card .btn {
  background: #3d68ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 15px;
  margin: 7px 7px 0 0;
  cursor: pointer;
  transition: background .15s;
}
.card .btn:hover {
  background: #143ca3;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* -- İstatistik, ikonlar -- */
.stat {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  color: #6e7999;
  margin-top: 8px;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  font-size: 20px;
  margin-right: 6px;
  color: #4363e9;
}

/* -------- PROFİL KARTI --------- */
.profile-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}
.profile-card {
  max-width: 370px;
  width: 100%;
  background: rgba(255,255,255,0.94);
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(60,90,180,0.13);
  padding: 28px 26px 25px 26px;
  text-align: center;
  margin: 0 auto;
  backdrop-filter: blur(2px);
  border: 1.5px solid #eef2fa;
  transition: box-shadow .15s;
}
.profile-avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.3px solid #3269ff;
  margin-bottom: 14px;
  background: #f3f7fc;
  box-shadow: 0 2px 12px rgba(44,100,255,0.04);
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.profile-name {
  font-size: 1.43em;
  font-weight: 700;
  margin-bottom: 2px;
  color: #2a3b70;
  letter-spacing: 0.01em;
}
.profile-email {
  font-size: 0.98em;
  color: #727ea5;
  margin-bottom: 14px;
  word-break: break-all;
}
.profile-points {
  font-size: 1.09em;
  color: #23326b;
  margin-bottom: 7px;
  font-weight: 600;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: 7px 0 17px 0;
}
.badge-item {
  background: #e6ebff;
  color: #2c3e80;
  padding: 5px 13px;
  border-radius: 13px;
  font-size: 0.97em;
  font-weight: 600;
  border: 1px solid #bdd3fa;
  display: flex; align-items: center;
  gap: 4px;
}
.profile-actions {
  margin-top: 10px;
}
.profile-actions a {
  display: inline-block;
  margin: 7px 5px 0 5px;
  padding: 8px 22px;
  background: #3568fc;
  color: #fff;
  border-radius: 8px;
  font-size: 1em;
  text-decoration: none;
  font-weight: 500;
  border: none;
  transition: background .14s;
  box-shadow: 0 2px 8px rgba(60,100,220,0.10);
}
.profile-actions a:hover {
  background: #163ab7;
}
@media (max-width: 500px) {
  .profile-card {
    max-width: 99vw;
    margin: 24px 2vw 0 2vw;
    padding: 12vw 2vw;
  }
  .profile-avatar { width: 60px; height: 60px; }
}

/* -------- NAVBAR -------- */
.main-navbar {
  width: 100%;
  background: rgba(22, 24, 28, 0.98);
  box-shadow: 0 2px 16px rgba(255, 140, 0, 0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-height: 60px;
  position: relative;
  z-index: 22;
}
.nav-logo {
  color: #ff9900;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 7px #ffb638, 0 0 14px #ff9000;
  user-select: none;
}
.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links li {
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  background: rgba(25,22,13,0.91);
  border-radius: 9px;
  padding: 7px 18px 7px 18px;
  margin: 0 1px;
  color: #ff9000;
  font-weight: bold;
  font-size: 1.08em;
  text-decoration: none;
  box-shadow: 0 1px 6px #ffb63880, 0 0 3px #fc8c0c70;
  transition: background .12s, color .14s, box-shadow .2s;
  text-shadow: 0 0 7px #ffbe46, 0 0 13px #ffab00;
  border: 1.5px solid #ffa24b30;
}
.nav-links a:hover,
.nav-links a:focus {
  background: #222;
  color: #fffbe6;
  box-shadow: 0 1px 14px #ffa600bb, 0 0 7px #ffb63880;
  text-shadow: 0 0 10px #ffd86d, 0 0 12px #ff9000;
  outline: none;
}
.nav-toggle, .nav-hamburger { display: none; }
@media (max-width: 850px) {
  .main-navbar { flex-wrap: wrap; padding: 0 10px; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    background: rgba(20,20,20,0.98);
    box-shadow: 0 4px 32px #fc8c0c25;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    max-height: 0; overflow: hidden;
    transition: max-height .27s cubic-bezier(0.39, 0.58, 0.57, 1);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
  .nav-toggle:checked + .nav-hamburger + .nav-links {
    max-height: 440px;
    padding-bottom: 16px;
  }
  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: center;
    cursor: pointer; width: 38px; height: 38px; margin-left: auto; margin-right: 2px; z-index: 25;
  }
  .nav-hamburger span {
    display: block; width: 29px; height: 4px; background: #ff9000;
    margin: 4px 0; border-radius: 2.7px; box-shadow: 0 0 8px #ffb638b7; transition: .19s;
  }
  .nav-links li { margin: 8px 0; }
  .nav-links { margin-top: 6px; padding-left: 0; }
}

/* ----------- SORU SOR KARTI ------------ */
.ask-question-card {
  max-width: 420px;
  margin: 38px auto 22px auto;
  background: rgba(26,26,32,0.95);
  border-radius: 18px;
  box-shadow: 0 2px 32px #fc8c0c30, 0 1px 8px #0002;
  padding: 28px 26px 18px 26px;
  text-align: center;
  border: 1.5px solid #ffa83f44;
}
.ask-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 17px;
  letter-spacing: 0.03em;
  color: #ff9000;
  text-shadow: 0 0 9px #ffc46c, 0 0 18px #ff9000;
}
.ask-question-card input,
.ask-question-card textarea {
  width: 100%;
  border: 1.5px solid #ffb638;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 16px;
  margin-bottom: 15px;
  background: #1a1811;
  color: #fff8dc;
  box-shadow: 0 2px 8px #ffb63812;
  transition: border .15s;
}
.ask-question-card input:focus,
.ask-question-card textarea:focus {
  border-color: #fc8c0c;
  background: #211b0a;
  outline: none;
}
.ask-question-card button {
  width: 100%;
  background: linear-gradient(90deg, #ff9900, #ffa740 80%);
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 11px 0;
  font-size: 1.08em;
  font-weight: 700;
  margin-top: 7px;
  cursor: pointer;
  box-shadow: 0 2px 14px #ffb63866;
  transition: background .13s, color .13s;
  letter-spacing: .02em;
  text-shadow: 0 0 4px #fff5, 0 0 12px #ffd46a60;
}
.ask-question-card button:hover {
  background: linear-gradient(90deg, #ffa338, #ff8c00 80%);
  color: #fffbe6;
}

/* ----------- SON SORULAR (LİSTE) ------------ */
/* SON SORULAR BLOKU TAM KUTULU GÖRÜNÜM */
.questions-list-block {
  max-width: 440px;
  margin: 35px auto 0 auto;
  background: rgba(22, 16, 0, 0.94);
  border-radius: 18px;
  box-shadow: 0 2px 26px #ffb63850, 0 1px 8px #0005;
  padding: 22px 18px 24px 18px;
  border: 1.5px solid #ffa83f88;
}

.questions-list-block h3,
.questions-list-block .son-sorular-baslik {
  color: #ff9000;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  text-shadow: 0 0 9px #ffc46c, 0 0 12px #ff9000;
  text-align: center;
}

/* Sorular kutu stili */
ul.question-list {
  background: transparent !important;
  margin-top: 0;
  padding: 0;
  list-style: none;
}

ul.question-list li {
  background: rgba(40, 30, 8, 0.95);
  margin-bottom: 13px;
  border-radius: 10px;
  padding: 14px 15px;
  color: #ffe3aa;
  border: 1.2px solid #ffb63844;
  box-shadow: 0 1px 10px #ffb63818;
  font-size: 1.07em;
  text-align: left;
  transition: box-shadow .14s, border .14s;
}

ul.question-list li a {
  color: #fff5d4;
  font-weight: bold;
  text-shadow: 0 0 5px #ff9000cc;
  font-size: 1.11em;
  text-decoration: none;
  transition: color .14s;
}

ul.question-list li a:hover { color: #fff; }
ul.question-list li small {
  display: block;
  margin-top: 5px;
  color: #ffa740;
  font-size: 0.99em;
  text-shadow: none;
}

/* Responsive kutu */
@media (max-width: 600px) {
  .questions-list-block { max-width: 98vw; padding: 5vw 2vw 5vw 2vw;}
  ul.question-list li { font-size: 1em; padding: 12px 7px; }
}

/* --- Soru Kartları Grid --- */
.questions-cards-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 960px;
  margin: 34px auto 0 auto;
  padding: 0 12px;
}
.question-card {
  background: rgba(34, 26, 10, 0.95);
  border-radius: 15px;
  box-shadow: 0 2px 12px #ffb63838, 0 1px 8px #0003;
  border: 1.4px solid #ffa83f40;
  padding: 18px 17px 14px 17px;
  color: #ffe3aa;
  transition: box-shadow .14s, border .13s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}
.question-card a {
  color: #fffbe6;
  font-size: 1.12em;
  font-weight: bold;
  text-shadow: 0 0 5px #ff9000cc;
  text-decoration: none;
  margin-bottom: 7px;
  transition: color .14s;
  display: block;
}
.question-card a:hover { color: #fff; }
.question-card small {
  display: block;
  margin-top: 6px;
  color: #ffa740;
  font-size: 0.97em;
}
.questions-cards-block-title {
  margin: 35px auto 10px auto;
  color: #ff9000;
  font-size: 1.25em;
  font-weight: bold;
  text-align: left;
  max-width: 1100px;
  text-shadow: 0 0 9px #ffc46c, 0 0 18px #ff9000;
  padding-left: 6px;
}

.questions-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 54px auto;
  justify-content: flex-start;
}

.question-card {
  background: rgba(26,26,32,0.88);
  border-radius: 13px;
  min-width: 270px;
  max-width: 300px;
  flex: 1 1 280px;
  box-shadow: 0 1px 8px #ffa74015, 0 0 6px #0001;
  border: 1.2px solid #ffb6382c;
  margin-bottom: 0;
  padding: 18px 16px 12px 16px;
  color: #ffd36b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow .19s, transform .14s;
}
.question-card:hover {
  box-shadow: 0 3px 22px #ffb63833, 0 0 13px #ffb63866;
  transform: translateY(-4px) scale(1.03);
}
.question-card a {
  color: #ffe19a;
  font-weight: bold;
  text-shadow: 0 0 5px #ff9e00aa;
  font-size: 1.08em;
  margin-bottom: 4px;
  transition: color .16s;
}
.question-card a:hover { color: #fff; text-decoration: underline; }
.question-card small {
  color: #ffba3c;
  margin-top: 7px;
  font-size: .96em;
  display: block;
  opacity: .92;
}
@media (max-width: 800px) {
  .questions-cards-wrap { flex-direction: column; gap: 14px; }
  .question-card { max-width: 97vw; min-width: 0; }
}
.question-detail-card {
    background: rgba(26,26,32,0.91);
    border-radius: 16px;
    box-shadow: 0 2px 32px #fc8c0c30, 0 1px 8px #0002;
    border: 1.5px solid #ffa83f55;
    padding: 28px 22px 18px 22px;
    margin: 0 auto;
    color: #ffe6ad;
    max-width: 480px;
    min-width: 0;
}
.qd-title {
    font-size: 1.32em;
    color: #ff9000;
    font-weight: bold;
    margin-bottom: 17px;
    text-shadow: 0 0 8px #ffc46c, 0 0 14px #ff9000;
    letter-spacing: 0.03em;
}
.qd-body {
    margin-bottom: 22px;
    color: #fff9ed;
    font-size: 1.1em;
    white-space: pre-line;
    word-break: break-word;
}
.qd-meta {
    color: #ffc75a;
    font-size: .99em;
    margin-top: 6px;
    letter-spacing: 0.01em;
    opacity: .85;
}
