/* =========================================================
   TEMEL DEĞİŞKENLER
   ========================================================= */

:root {
  --black-main: #ffffff;
  --black-soft: #ffc0cb;
  --accent: #ffffff;
  --text-light: #ffffff;
  --text-soft: #ffffff;
  --white: #ffffff;
  --border-soft: #ffffff;
}

/* =========================================================
   GENEL YAPI
   ========================================================= */

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 60px;
  overflow-x: hidden;
}

main {
  flex: 1;
}

.site-main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

section {
  padding: 100px 20px;
}

/* =========================================================
   FONT
   ========================================================= */

@font-face {
  font-family: "Brittany";
  src: url("../fonts/BrittanySignature.ttf") format("truetype");
}

/* =========================================================
   LOGO
   ========================================================= */

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Brittany", cursive;
  font-size: 42px;
  color: #fff;
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 56px;
  display: block;
  object-fit: contain;
}

.logo span {
  font-size: 20px;
  font-weight: 600;
}

/* =========================================================
   HERO / ANA SAYFA
   ========================================================= */

.hero {
  padding: 140px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  opacity: 0.8;
}

.hero-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 16px 40px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.intro-video,
.about-author,
.featured-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-video {
  justify-content: center;
}

.video-wrapper iframe {
  width: 500px;
  height: 280px;
  border-radius: 20px;
}

.video-text h2 {
  font-size: 32px;
}

.about-image img {
  width: 280px;
  border-radius: 20px;
}

.about-text h2 {
  font-size: 36px;
}

.featured-cover img {
  width: 280px;
  border-radius: 16px;
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.navbar {
  height: 70px;
  display: flex;
  justify-content: center;
  background: #f6b6c1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   ARAMA
   ========================================================= */

.nav-search {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 380px;
}

.nav-search input {
  width: 100%;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 22px;
  outline: none;
  background: #fff;
  color: #333;
  font-size: 14px;
}

#aramaSonuc {
  position: absolute;
  top: 46px;
  left: 0;
  z-index: 99999;
  width: 100%;
  display: none;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#aramaSonuc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f2f2f2;
  color: #000;
  font-size: 14px;
}

#aramaSonuc a:hover {
  background: #f8f8f8;
}

#aramaSonuc img {
  width: 40px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

/* =========================================================
   NAV LİNKLERİ / USER MENU
   ========================================================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  flex-shrink: 0;
}

.user-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-user {
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.login-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.register-btn {
  background: #fff;
  color: #d96b87;
  border: 1px solid #fff;
}

.register-btn:hover {
  background: #ffe7ed;
}

.logout-btn {
  background: #fff;
  color: #c4475f;
  border: 1px solid #fff;
}

.logout-btn:hover {
  background: #ffe5ea;
}

/* =========================================================
   HAMBURGER / MOBİL GİZLİ ALANLAR
   ========================================================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  width: 26px;
  height: 3px;
  border-radius: 10px;
  background: #fff;
}

.mobile-search {
  display: none;
}

.mobile-user-item,
.mobile-user-welcome {
  display: none;
}

/* =========================================================
   THEME TOGGLE
   ========================================================= */

.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 0 10px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  transform: translateZ(0);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.theme-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.theme-icon-moon {
  opacity: 1;
}

.theme-icon-sun {
  opacity: 0;
}

/* =========================================================
   KİTAPLARIM
   ========================================================= */

.page-galeri,
.page-galeri-title {
  background: transparent;
}

.page-galeri-title {
  color: #000;
}

.galeri-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;
}

.galeri-img {
  width: 100%;
  height: 100%;
  padding: 0;
}

.galeri-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeri-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.2),
      transparent);
  opacity: 0.6;
  transition: 0.3s;
}

.galeri-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
  pointer-events: none;
}

.galeri-body {
  position: absolute;
  bottom: 60px;
  z-index: 2;
  width: 100%;
  padding: 0 10px;
  text-align: center;
}

.galeri-body h5 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.galeri-btn {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 14px 0;
  background: #f6b6c1;
  color: #fff;
  text-align: center;
  font-weight: 600;
  transform: translateY(100%);
  transition: 0.3s;
}

.galeri-btn:hover {
  background: #000;
  color: #fff;
}

.galeri-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.galeri-card:hover img {
  transform: scale(1.08);
}

.galeri-card:hover::before {
  opacity: 1;
}

.galeri-card:hover::after {
  left: 140%;
}

.galeri-card:hover .galeri-btn {
  transform: translateY(0);
}

/* =========================================================
   SATIN AL
   ========================================================= */

.satin-al-page {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.satin-al-title {
  margin-bottom: 45px;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #000;
}

.satin-al-box {
  display: flex;
  align-items: center;
  gap: 35px;
  width: 100%;
  margin-bottom: 28px;
  padding: 28px 34px;
  border-radius: 20px;
  background-color: #ffc0cb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.satin-al-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

.satin-al-image {
  flex: 0 0 170px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.satin-al-box:hover .satin-al-image {
  transform: scale(1.03);
}

.satin-al-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.satin-al-content {
  flex: 1;
}

.satin-al-name {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 600;
  color: #000;
}

.satin-al-desc {
  font-size: 14.5px;
  line-height: 1.7;
  opacity: 0.85;
  color: #000;
}

.satin-al-action {
  flex: 0 0 auto;
}

.satin-al-link {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.satin-al-link:hover {
  transform: translateY(-2px);
  background: #000;
  color: #fff;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .nav-search {
    max-width: 240px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .btn-user {
    padding: 8px 12px;
    font-size: 13px;
  }

  .user-name {
    display: none;
  }
}

/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 768px) {
  section {
    padding: 70px 20px;
  }

  .hero {
    padding: 100px 15px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-btn {
    padding: 14px 32px;
    font-size: 14px;
  }

  .intro-video,
  .about-author,
  .featured-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .video-wrapper iframe {
    width: 100%;
    height: 220px;
  }

  .video-text h2 {
    font-size: 26px;
  }

  .about-image img {
    width: 200px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .featured-cover img {
    width: 220px;
  }

  .latest-news h2 {
    font-size: 26px;
    text-align: center;
  }

  .news-card {
    padding: 20px;
  }

  .nav-inner {
    gap: 12px;
  }

  .logo {
    order: 1;
  }

  .logo a {
    font-size: 32px;
  }

  .logo img {
    width: 38px;
    height: 42px;
  }

  .logo span {
    font-size: 16px;
  }

  .nav-search {
    display: none;
  }

  .user-menu {
    display: none;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    flex: 0 0 42px;
    margin-left: auto;
    margin-right: 0;
    order: 3;
  }

  .hamburger {
    display: flex;
    order: 4;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    z-index: 9998;
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 30px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-search-li {
    width: 85%;
    background: none;
    border: none;
    list-style: none;
  }

  .mobile-search {
    display: block;
    width: 100%;
  }

  .mobile-search input {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 2px solid #f6b6c1;
    border-radius: 16px;
    outline: none;
    background: #fff;
    font-size: 16px;
  }

  #mobileAramaSonuc {
    width: 100%;
    max-height: 200px;
    margin-top: 8px;
    display: none;
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  #mobileAramaSonuc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #000;
    font-size: 14px;
  }

  #mobileAramaSonuc a:hover {
    background: #f5f5f5;
  }

  #mobileAramaSonuc img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
  }

  .nav-links li:not(.mobile-search-li):not(.mobile-user-welcome) {
    width: 85%;
    border: 1px solid #f6b6c1;
    border-radius: 16px;
    background: rgba(246, 182, 193, 0.75);
    text-align: center;
    transition: all 0.25s ease;
  }

  .nav-links li:not(.mobile-search-li):not(.mobile-user-welcome) a {
    display: block;
    padding: 18px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
  }

  .nav-links li:not(.mobile-search-li):not(.mobile-user-welcome):hover {
    background: #1a1a1a;
    border-color: #fff;
    box-shadow: 0 0 0 1px #fff;
  }

  .mobile-user-item {
    display: block;
    width: 85%;
    list-style: none;
  }

  .mobile-user-link {
    display: block;
    width: 100%;
    padding: 18px 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    transition: 0.25s ease;
  }

  .mobile-user-link:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .mobile-user-link-register {
    background: #fff;
    color: #d96b87 !important;
    border: 1px solid #fff;
  }

  .mobile-user-link-register:hover {
    background: #ffe7ed;
  }

  .mobile-user-link-logout {
    background: #fff;
    color: #c4475f !important;
    border: 1px solid #fff;
  }

  .mobile-user-link-logout:hover {
    background: #ffe5ea;
  }

  .mobile-user-welcome {
    display: block;
    width: 85%;
    margin-top: 10px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    list-style: none;
  }

  .page-galeri-title,
  .satin-al-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .satin-al-box {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    text-align: center;
  }

  .satin-al-image {
    width: 150px;
    height: 200px;
    flex: none;
  }

  .satin-al-name {
    font-size: 19px;
  }

  .satin-al-desc {
    font-size: 14px;
  }

  .satin-al-link {
    margin-top: 8px;
  }
}

