/* =====================================
   RESET
===================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #f4efe9;
  color: #1d1d1d;
  line-height: 1.6;
}

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

/* =====================================
   CONTAINER
===================================== */
.container {
  width: 1100px;
  max-width: 92%;
  margin: 0 auto;
}

/* =====================================
   HEADER
===================================== */
.site-header {
  background: #f4efe9;
  border-bottom: 1px solid #e4ddd5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
}

/* =====================================
   SEARCH
===================================== */
.search-bar {
  flex: 1;
  max-width: 520px;
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4ddd5;
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background: #d14f1f;
  border: none;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-btn:hover {
  background: #b84217;
}

/* =====================================
   BOOK GRID
===================================== */
.search-results {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.book-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.book-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.book-info {
  margin-top: 12px;
}

.book-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.author {
  font-size: 13px;
  color: #777;
}

.price {
  margin-top: 8px;
  font-weight: 700;
  color: #2e7d32;
}

/* =====================================
   AUTH PAGE (FINAL CLEAN VERSION)
===================================== */

.auth-page {
  width: 100%;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 220px minmax(0, 480px) 220px;
  justify-content: center;
  gap: 40px;
}

/* ADS */
.auth-ad {
  display: flex;
  justify-content: center;
}

.ad-box {
  width: 200px;
  height: 600px;
  background: #e6e6e6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

/* FORM */
.auth-card {
  width: 100%;
  background: #ffffff;
  padding: 45px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.auth-title {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
}

/* FORM FIELDS */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
}

/* PASSWORD */
.password-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
}

/* PASSWORD STRENGTH */
.password-strength {
  height: 6px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: 0.3s;
}

/* BUTTON */
.btn-gradient {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#2563eb,#1e40af);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-gradient:hover {
  transform: translateY(-2px);
}

/* FOOTER LINK */
.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 600;
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1100px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-ad {
    display: none;
  }

  .auth-card {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .search-results {
    grid-template-columns: 1fr;
  }
}
/* =========================
   HEADER BOOTSTRAP FIX
========================= */

.site-header {
  background: #f4efe9;
  border-bottom: 1px solid #e7e2dc;
  position: relative;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: #111 !important;
}

/* Search */
.search-bar {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  border: 1px solid #ddd !important;
  padding: 10px 14px;
  border-radius: 8px 0 0 8px;
  outline: none;
  background: #fff;
}

.search-btn {
  border: none;
  background: #cf4f22;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

/* NAV ACTIONS */
.nav-actions {
  display: flex !important;
  align-items: center;
  gap: 14px;
}

/* Buton reset (Bootstrap override) */
.site-header .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #e4ddd5;
  color: #111 !important;
  transition: 0.2s ease;
}

.site-header .nav-btn:hover {
  background: #f3f3f3;
}

/* Accent buton */
.site-header .nav-btn--accent {
  background: #cf4f22 !important;
  color: #fff !important;
  border: none;
}

.site-header .nav-btn--accent:hover {
  background: #1e40af !important;
}

/* Badge Bootstrap override */
.site-header .badge {
  background: #e53935 !important;
  color: #fff !important;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 12px;
}

/* Dropdown fix */
.site-header .dropdown-menu {
  border-radius: 10px;
  border: 1px solid #e7e2dc;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* =========================
   SITE LAYOUT FIX
========================= */

body {
  background: #f4efe9;   /* açık krem ton */
  margin: 0;
  font-family: "DM Sans", sans-serif;
}
.site-main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
/* =========================
   PREMIUM FOOTER
========================= */

.site-footer {
  background: #111;
  color: #ddd;
  padding: 60px 20px 30px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand .logo-text {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  color: #aaa;
}

.footer-links strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
}

.footer-links a {
  display: block;
  color: #bbb;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-note {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Toast */
.toast-notify {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}
/* =========================
   PREMIUM MAIN
========================= */

body {
  background: #f4efe9 !important;
}

.site-main {
  max-width: 1200px;
  margin: 60px auto;
  padding: 50px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.06);
  min-height: 70vh;
}
.site-main > .container,
.site-main > .row {
  margin: 0 !important;
  padding: 0 !important;
}
/* =========================
   FORCE PREMIUM MAIN
========================= */

body {
  background: #f4efe9 !important;
}

.site-main {
  max-width: 1200px !important;
  margin: 60px auto !important;
  padding: 50px !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 70px rgba(0,0,0,0.06) !important;
  min-height: 70vh;
  position: relative;
  z-index: 1;
}

/* Bootstrap override */
.site-main .container {
  max-width: 100% !important;
  padding: 0 !important;
}
.site-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.06);
}
/* =========================
   AUTH PAGE FIX
========================= */

body.auth-layout .site-container {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.auth-layout .site-main {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 60px auto !important;
}
/* =====================================
   AUTH FULL OVERRIDE (FINAL FIX)
===================================== */

body.auth-layout .site-container,
body.auth-layout .site-main {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}