/* =====================================================
   1. CSS VARIABLES & ROOT
   ===================================================== */
:root {
  --navy-darker: #050b1a;
  --navy-dark: #0a1530;
  --navy: #0f1f45;
  --navy-light: #16285c;
  --navy-soft: #1d3270;

  --gold: #d4af37;
  --gold-light: #f1d57a;
  --gold-dark: #a8841f;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --off-white: #f5f3ea;
  --gray-200: #e7e3d4;
  --gray-400: #aab0c2;
  --gray-600: #6b7494;

  --success: #3fae62;
  --danger: #c0392b;
  --info: #3a7bd5;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition-base: all 0.3s ease;
}

/* =====================================================
   2. RESET / BASE
   ===================================================== */
* { box-sizing: border-box; }

body {
  background-color: var(--navy-darker);
  color: var(--off-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--off-white);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: var(--transition-base);
}

p {
  color: var(--gray-400);
  line-height: 1.7;
}

::selection {
  background: var(--gold);
  color: var(--navy-darker);
}

/* =====================================================
   3. UTILITIES
   ===================================================== */
.bg-navy-dark { background-color: var(--navy-dark); }

.section-pad { padding: 5.5rem 0; }

.eyebrow-gold {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.text-muted-gold { color: var(--gray-400); }

.link-gold {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.link-gold:hover { color: var(--gold-light); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-darker);
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
}
.btn-gold:hover {
  color: var(--navy-darker);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-darker);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   4. NAVBAR
   ===================================================== */
.navbar-seetli {
  background-color: rgba(5, 11, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  transition: var(--transition-base);
}
.navbar-seetli.navbar-scrolled {
  background-color: var(--navy-darker);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
}
.navbar-brand i {
  color: var(--gold);
  font-size: 1.6rem;
}
.brand-text {
  color: var(--off-white);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand-text strong { color: var(--gold); }

.navbar-nav .nav-link {
  color: var(--gray-200);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold);
}

.dropdown-menu {
  background-color: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.dropdown-item {
  color: var(--gray-200);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--navy-light);
  color: var(--gold);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 1rem;
  }
}

/* =====================================================
   5. HERO
   ===================================================== */
.hero-section {
  position: relative;
  padding: 9rem 0 5rem;
  background-color: var(--navy-darker);
  background-image:
    radial-gradient(circle at 75% 35%, rgba(58, 123, 213, 0.32), transparent 55%),
    radial-gradient(circle at 68% 60%, var(--gold-glow), transparent 50%);
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=70&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-lead {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-orb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(58, 123, 213, 0.25), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.hero-orb-icon {
  font-size: clamp(6rem, 12vw, 10rem);
  color: var(--gold);
  filter: drop-shadow(0 0 45px var(--gold-glow));
  transform: rotate(-12deg);
}

/* =====================================================
   6. DİJİTAL KÜTÜPHANE KARTLARI
   ===================================================== */
.card-digital {
  background: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  text-align: center;
  transition: var(--transition-base);
}
.card-digital:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card), 0 0 30px var(--gold-glow);
}
.card-digital-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-light));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
}
.card-digital h5 { margin-bottom: 0.5rem; }
.card-digital p { margin-bottom: 1.4rem; font-size: 0.92rem; }

.btn-circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-circle-arrow:hover {
  background: var(--gold);
  color: var(--navy-darker);
}

/* =====================================================
   7. KİTAP KARTLARI (Öne Çıkan / Yeni Çıkan / Yakında)
   ===================================================== */
.card-book {
  position: relative;
  background: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: var(--transition-base);
}
.card-book:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}

.card-book-cover-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--navy-light);
}
.card-book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-book--upcoming .card-book-cover {
  filter: grayscale(40%) brightness(0.8);
}

.card-book-body {
  padding: 1rem;
}
.card-book-body h6 {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}
.card-book-body small {
  color: var(--gray-400);
  font-size: 0.78rem;
}
.card-book-body .price {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
}

.badge-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  border-radius: 50px;
  color: var(--off-white);
}
.badge-tag--new { background: var(--success); }
.badge-tag--bestseller { background: var(--gold-dark); color: var(--navy-darker); }
.badge-tag--digital { background: var(--info); }
.badge-tag--print { background: var(--navy-soft); }
.badge-tag--date { background: rgba(5, 11, 26, 0.85); border: 1px solid var(--gold); color: var(--gold); }

.btn-fav {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 11, 26, 0.7);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}
.btn-fav:hover { background: var(--navy-soft); }
.btn-fav.is-active { color: var(--danger); }

.btn-add-cart.is-added {
  background: var(--success);
  color: var(--off-white);
}

/* =====================================================
   8. YAZAR KARTLARI
   ===================================================== */
.card-author {
  background: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition-base);
}
.card-author:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}
.card-author-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin-bottom: 1.1rem;
}
.card-author h5 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.card-author .specialty {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.card-author p { font-size: 0.88rem; margin-bottom: 1.2rem; }

/* =====================================================
   9. HAKKIMIZDA
   ===================================================== */
.about-image-frame {
  position: relative;
  padding: 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
}
.about-image-frame img { border-radius: var(--radius-md); width: 100%; }

.card-info-mini {
  background: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-md);
  padding: 1.3rem 1rem;
  height: 100%;
  text-align: center;
}
.card-info-mini i {
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.card-info-mini h6 { margin-bottom: 0.4rem; }
.card-info-mini p { font-size: 0.82rem; margin-bottom: 0; }

/* =====================================================
   10. KATEGORİ KARTLARI
   ===================================================== */
.card-category {
  background: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-md);
  padding: 1.6rem 1rem;
  text-align: center;
  height: 100%;
  transition: var(--transition-base);
}
.card-category:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--gold-glow);
}
.card-category i {
  display: block;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.card-category span {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--off-white);
}

/* =====================================================
   11. GİRİŞ PANELLERİ
   ===================================================== */
.card-login-panel {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background-size: cover;
  background-position: center;
}
.card-login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 11, 26, 0.95) 40%, rgba(5, 11, 26, 0.55));
}
.card-login-panel--kurumsal {
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1000&q=75&auto=format&fit=crop');
}
.card-login-panel--bireysel {
  background-image: url('https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?w=1000&q=75&auto=format&fit=crop');
}
.card-login-content {
  position: relative;
  z-index: 1;
  padding: 2.2rem;
  max-width: 420px;
}
.card-login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-login-content h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.card-login-content p { margin-bottom: 1.3rem; }

/* =====================================================
   12. DUYURU KARTLARI
   ===================================================== */
.card-announcement {
  background: var(--navy);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  height: 100%;
  transition: var(--transition-base);
}
.card-announcement:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.card-announcement i {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}
.card-announcement h5 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.card-announcement p { font-size: 0.88rem; margin-bottom: 0.9rem; }

/* =====================================================
   13. FOOTER
   ===================================================== */
.footer-seetli {
  background-color: var(--navy-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.footer-text {
  font-size: 0.88rem;
  max-width: 320px;
}
.footer-heading {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-list a {
  color: var(--gray-400);
  font-size: 0.88rem;
}
.footer-list a:hover { color: var(--gold); }
.footer-list--contact li {
  color: var(--gray-400);
  font-size: 0.88rem;
}
.footer-list--contact i {
  color: var(--gold);
  width: 18px;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.footer-social-icon:hover {
  background: var(--gold);
  color: var(--navy-darker);
}

.footer-divider {
  border-color: rgba(212, 175, 55, 0.2);
  margin: 2rem 0 1.2rem;
}
.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* =====================================================
   14. SCROLL-REVEAL (temel kurallar yukarıda .reveal/.is-visible)
   ===================================================== */

/* =====================================================
   15. RESPONSIVE OVERRIDES
   ===================================================== */
@media (max-width: 767.98px) {
  .section-pad { padding: 3.5rem 0; }
  .hero-section { padding: 7rem 0 3.5rem; }
  .card-login-content { padding: 1.6rem; }
}

@media (max-width: 575.98px) {
  .brand-text { font-size: 0.85rem; }
  .navbar-brand i { font-size: 1.3rem; }
}
