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

/* BASE */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

/* LAYOUT WRAPPER */
.layout {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR (SABİT) === */
.sidebar {
  position: fixed;              /* sabit */
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background-color: #2b2b2b;
  padding: 2rem 1rem;
  overflow-y: auto;             /* menü uzun olursa kaydır */
  z-index: 1000;
  box-shadow: 1px 0 0 rgba(0,0,0,.08);
}

.sidebar .logo img {
  width: 100%;
  margin-bottom: 2rem;
  display: block;
}

.sidebar nav a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin: 1rem 0;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, color .2s;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background-color: #2e2e4d;
  color: #fff;
}

/* === MAIN CONTENT === */
/* sabit sidebar nedeniyle sağa itiyoruz */
.main {
  flex: 1;
  padding: 3rem;
  margin-left: 220px;           /* sidebar genişliği kadar boşluk */
  padding-bottom: 84px;         /* sabit footer kapatmasın */
}

.form-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
  margin-bottom: 1.5rem;
  color: #222;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.row {
  display: flex;
  gap: 1rem;
}

.row .input-group {
  flex: 1;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
}

button:hover {
  background-color: #0056b3;
}

.inbox {
  margin-top: 2rem;
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 6px;
}

.inbox h3 {
  margin-bottom: 0.5rem;
}

#copy-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#copy-btn:hover {
  background: #218838;
}

.how-to-use {
  max-width: 700px;
  margin: 40px auto;
  padding: 25px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #111111;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* === SABİT FOOTER (SIDEBAR’A HİZALI) === */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 220px;                  /* sidebar genişliği kadar içeri kaydır */
  right: 0;
  height: 56px;
  background: #222;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 14px;
  z-index: 900;
  box-shadow: 0 -1px 0 rgba(0,0,0,.08);
}

/* === RESPONSIVE (opsiyonel) === */
@media (max-width: 900px) {
  .sidebar {
    width: 200px;
  }
  .main {
    margin-left: 200px;
  }
  .fixed-footer {
    left: 200px;
  }
}

@media (max-width: 720px) {
  /* küçük ekran: sidebar üstte akışkan davranabilir */
  .sidebar {
    position: fixed;
    width: 180px;
  }
  .main {
    margin-left: 180px;
    padding: 2rem 1.25rem 84px;
  }
  .fixed-footer {
    left: 180px;
  }
}

/* Sadece authentication sayfasındaki form-container için */
body.authentication {
  background-color: #f0f2f5;
  font-family: "Segoe UI", sans-serif;
}

.form-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  max-width: 600px;
  margin: 40px auto;
  transition: all 0.3s ease;
}

.form-container h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

/* Secret alanı */
textarea#secret {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #f9f9f9;
  resize: vertical;
  transition: border 0.2s ease;
}

textarea#secret:focus {
  border-color: #007bff;
  outline: none;
}

/* Buton */
button#btn-generate {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 10px;
}

button#btn-generate:hover {
  background-color: #0056b3;
}

/* Kod kutusu */
.inbox {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.inbox h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

#code-text {
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
}

/* Kopyalama butonu */
#copy-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#copy-btn:hover {
  background-color: #218838;
}

/* === Policies & FAQ shared blocks === */
.box {
  max-width: 950px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e9e9f3;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.box h1 { margin-bottom: 6px; }
.muted { color: #666; font-size: .9rem; margin-bottom: 18px; }
.box h2 { margin-top: 22px; margin-bottom: 8px; font-size: 1.1rem; }
.box p { margin: 10px 0; line-height: 1.65; }
.box ul { margin: 10px 0 10px 18px; }
.box li { margin: 6px 0; }
.note {
  background: #eef8ff;
  border: 1px solid #cce9ff;
  color: #0b3d66;
  padding: 10px;
  border-radius: 6px;
  margin: 12px 0;
}
.badge {
  display: inline-block;
  font-size: .78rem;
  padding: .15rem .5rem;
  border-radius: 6px;
  background: #eef2ff;
  color: #3843d0;
  margin-left: .35rem;
}

/* FAQ page blocks */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e9e9f3;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
details {
  border: 1px solid #eaeaf5;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  background: #fcfcff;
}
details[open] { background: #f7f8ff; }
summary { cursor: pointer; font-weight: 600; outline: none; }
details p { margin: 10px 0; line-height: 1.65; }

/* Layout helpers for fixed sidebar/footer (shared) */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 220px;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b2b2b;
  color: #ccc;
  border-top: 1px solid #1f1f1f;
  z-index: 9999;
}
/* Body bottom space so content not hidden under footer */
body { padding-bottom: 48px; }

/* Responsive: when sidebar collapses, footer should span full width */
@media (max-width: 900px) {
  .fixed-footer { left: 0; }
}

/* ====== Home Intro (Who We Are) ====== */
.home-hero{
  max-width: 900px;
  margin: 0 auto 28px auto;
  background: #fff;
  border: 1px solid #e9ecf8;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.home-hero h1{ font-size: 1.8rem; margin: 0 0 8px 0; }
.home-hero p{ color:#4e5566; line-height:1.7; margin: 6px 0; }
.home-hero .muted{ color:#6b7291; }

/* ====== Showcase Sections + 2x2 Grid ====== */
.showcase{ max-width: 1100px; margin: 22px auto 36px; }
.showcase-head{ margin: 0 0 12px 0; padding: 0 2px; }
.showcase-head h2{ margin: 0 0 4px 0; }
.showcase-head p{ color:#6a728a; margin:0; }

.grid-2x2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 860px){
  .grid-2x2{ grid-template-columns: 1fr; }
}

.grid-2x2 {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tile-img {
  width: 100%;
  height: 230px;          /* sabit kutu yüksekliği */
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  display: block;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

.tile-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;   /* görsel bozulmadan kutuya oturur */
  background-color: #fff;
}

.tile-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.fixed-footer {
  position: fixed;
  left: 220px;              /* sidebar genişliğinle uyumlu olsun */
  right: 0;
  bottom: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2b2b2b;
  color: #ccc;
  border-top: 1px solid #1f1f1f;
  font-size: 13px;
  z-index: 9999;
}

@media (max-width: 900px) {
  .fixed-footer {
    left: 0;
  }
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  color: #e5e7ff;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .dot {
  color: #666;
}

.footer-main {
  opacity: 0.9;
}
