/* site.css - Custom Premium Stylesheet for TubaSatisWeb */
:root {
  --brand-red: #b42318;
  --brand-red-hover: #8f1c13;
  --brand-gold: #d6b36a;
  --brand-gold-dark: #b58c3f;
  --bg-slate-navy: #172033;
  --bg-slate-dark: #101726;
  --text-primary: #202a3b;
  --text-muted: #687386;
  --border-color: #dde2ea;
  --surface: #ffffff;
  --surface-muted: #f5f6f8;
  --shadow-sm: 0 8px 24px rgba(16, 23, 38, 0.06);
  --shadow-md: 0 18px 48px rgba(16, 23, 38, 0.10);
  --radius: 14px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: #f5f6f8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.site-body main {
  min-height: 65vh;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 0.9rem;
  background: #fff;
  color: var(--bg-slate-dark);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

/* Live Header Style like satis.tuba.gov.tr */
.HeaderBG,
.site-header {
  background: url('/img/header_bg2.png') repeat;
  background-color: #fafafa;
  border-bottom: 4px solid #dd0c0c;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  min-height: 95px;
}

.site-navbar {
  background: transparent !important;
  border-bottom: none;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

.navbar-brand {
  letter-spacing: 0.5px;
}

.navbar-brand img {
  height: 58px;
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

.site-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  letter-spacing: 0;
}

.site-wordmark strong {
  color: #0f172a;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.site-wordmark span {
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.site-navbar .nav-link {
  color: #1e293b !important;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease-in-out;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #dd0c0c !important;
}

/* Register button white text & icon */
.btn-header-register,
.btn-header-register *,
.site-navbar .btn-danger,
.site-navbar .btn-danger * {
  color: #ffffff !important;
}

.btn-header-register:hover,
.btn-header-register:hover *,
.site-navbar .btn-danger:hover,
.site-navbar .btn-danger:hover * {
  color: #ffffff !important;
  opacity: 0.95;
}

.site-header .cart-badge-btn {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.site-header .cart-badge-btn:hover {
  background-color: #f8fafc !important;
  border-color: #dd0c0c !important;
  color: #dd0c0c !important;
}

/* Custom styles for links and hover states */
.hover-text-white {
  transition: color 0.2s ease-in-out;
}
.hover-text-white:hover {
  color: #fff !important;
}

.btn-danger {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-danger:hover, .btn-danger:focus {
  background-color: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  transform: translateY(-1px);
}

.btn {
  border-radius: 9px;
}

.btn-outline-danger {
  color: var(--brand-red);
  border-color: var(--brand-red);
  font-weight: 500;
}

.btn-outline-danger:hover {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.btn-warning {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #1e293b;
  font-weight: 600;
}

.btn-warning:hover {
  background-color: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
  color: #fff;
}

/* Premium Card Styles */
.book-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
  border-color: rgba(218, 41, 28, 0.2);
}

.book-card-img-wrapper {
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.book-card-img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.12), 0 4px 6px -2px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.book-card:hover .book-card-img {
  transform: scale(1.04);
}

.book-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.book-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-slate-dark);
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.66rem;
}

.book-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.75rem;
}

.book-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-red);
}

/* Category Menu */
.category-list-group .list-group-item {
  border: none;
  background: transparent;
  color: var(--text-primary);
  border-radius: 8px !important;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 15px;
  transition: all 0.2s ease;
}

.category-list-group .list-group-item:hover {
  background-color: #f1f5f9;
  color: var(--brand-red);
  padding-left: 20px;
}

.category-list-group .list-group-item.active {
  background-color: rgba(218, 41, 28, 0.08);
  color: var(--brand-red);
  font-weight: 700;
  padding-left: 20px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  color: #fff;
  padding: 2.2rem 2.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(218, 41, 28, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Floating badge Button */
.cart-badge-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Details page styling */
.book-details-img-container {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-details-img {
  max-height: 450px;
  object-fit: contain;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* Form Styles */
.form-control:focus, .form-select:focus {
  border-color: rgba(218, 41, 28, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(218, 41, 28, 0.1);
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: var(--border-color);
  border-radius: 9px;
  color: var(--text-primary);
  background-color: #fff;
}

textarea.form-control { min-height: auto; }

.form-control::placeholder { color: #9aa3b2; }

.form-control:disabled,
.form-select:disabled {
  background-color: #f0f2f5;
  color: #8993a3;
}

.form-label {
  margin-bottom: 0.45rem;
  color: #485469;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-label span { color: var(--text-muted); font-weight: 500; }

.text-slate-dark { color: var(--bg-slate-dark) !important; }
.text-slate-navy { color: var(--bg-slate-navy) !important; }
.bg-slate-navy { background-color: #0f172a !important; }
.site-footer {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}
.site-footer h5,
.site-footer h6 {
  color: #ffffff !important;
}
.site-footer .footer-icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: #dd0c0c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.site-footer .footer-links a {
  display: inline-block;
  transition: all 0.2s ease;
  font-weight: 500;
}
.site-footer .footer-links a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}
.site-footer a {
  transition: color 0.15s ease-in-out;
}
.site-footer a:hover {
  color: #ffffff !important;
}
.fw-extrabold { font-weight: 800 !important; }
.tracking-wider { letter-spacing: 0.08em; }

/* Step Checkout Indicators */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.checkout-step {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 3px solid var(--border-color);
  padding-bottom: 10px;
}

.checkout-step.active {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

/* Checkout */
.checkout-page { padding-bottom: 1.5rem; }

.checkout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.page-eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brand-red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.checkout-heading h1 {
  margin: 0 0 0.45rem;
  color: var(--bg-slate-dark);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.checkout-heading p { margin: 0; color: var(--text-muted); }

.checkout-security-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  font-size: 0.77rem;
  line-height: 1.45;
  white-space: nowrap;
}

.checkout-security-note i { color: #27805c; font-size: 1.35rem; }
.checkout-security-note strong { color: var(--text-primary); }

.checkout-steps {
  gap: 0;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
  background: transparent;
}

.checkout-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0 0.85rem;
  border-bottom-width: 2px;
  font-size: 0.8rem;
}

.checkout-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #cbd2dc;
  border-radius: 50%;
  color: #7b8594;
  background: #fff;
  font-size: 0.72rem;
}

.checkout-step.active span {
  color: #fff;
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.checkout-step.complete { color: #426b59; border-color: #9bc4b2; }
.checkout-step.complete span { color: #246248; background: #e8f4ee; border-color: #9bc4b2; }

.checkout-panel,
.summary-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.checkout-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #edf0f4;
}

.checkout-panel-heading h2 {
  margin: 0 0 0.18rem;
  color: var(--bg-slate-dark);
  font-size: 1rem;
  font-weight: 800;
}

.checkout-panel-heading p { margin: 0; color: var(--text-muted); font-size: 0.78rem; }

.checkout-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--brand-red);
  background: #fbefed;
  border-radius: 9px;
}

.payment-choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.payment-choice:has(input:checked) {
  border-color: rgba(180, 35, 24, 0.55);
  background: #fff9f8;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.07);
}

.payment-choice .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  margin: 0;
}

.payment-choice .form-check-input:checked { background-color: var(--brand-red); border-color: var(--brand-red); }

.checkout-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf0f4;
}

.checkout-submit-row > span { color: var(--text-muted); font-size: 0.76rem; }
.checkout-submit-row > span i { color: #27805c; margin-right: 0.25rem; }

.checkout-submit {
  min-height: 50px;
  padding: 0.7rem 1.5rem;
  border-radius: 9px;
  font-size: 0.93rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(180, 35, 24, 0.16);
}

.checkout-summary { position: sticky; top: 112px; }
.summary-card h5 { font-size: 0.95rem; }
.summary-total-card { border-top: 3px solid var(--brand-red); }

.checkout-trust-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.checkout-trust-row i { color: #426b59; margin-right: 0.25rem; }

.site-footer { border-top: 3px solid var(--brand-red); }

.bank-query-result {
  padding: 0.85rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: 9px;
}

.bank-query-result > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.75rem;
}

.bank-query-result dt { color: var(--text-muted); font-weight: 600; }
.bank-query-result dd { margin: 0; color: var(--text-primary); font-weight: 700; overflow-wrap: anywhere; text-align: right; }

.book-cover-upload-preview {
  display: block;
  width: 120px;
  height: 180px;
  object-fit: cover;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991.98px) {
  .checkout-summary { position: static; }
  .checkout-heading { align-items: center; }
}

@media (max-width: 767.98px) {
  main.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .brand-top-bar .small { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .checkout-heading { align-items: flex-start; margin-bottom: 1.25rem; }
  .checkout-security-note { display: none; }
  .checkout-step { gap: 0.35rem; font-size: 0.7rem; }
  .checkout-step span { width: 21px; height: 21px; }
  .checkout-submit-row { align-items: stretch; flex-direction: column; }
  .checkout-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Footer styling override */
.footer {
  font-size: 0.9rem;
}
