@font-face {
  font-family: 'Telegraf';
  src: url('../Fonts/TelegrafRegular_272984568a25d8528fe2de8b20b29011.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Telegraf';
  src: url('../Fonts/Telegraf UltraBold 800.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Telegraf';
  src: url('../Fonts/Telegraf UltraLight 200.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Telegraf';
  background: linear-gradient(180deg, #22ace2 0%, #13cfb3 30%, #0edc30 100%);
  min-height: 100vh;
  position: relative;
}

/* Beyaz derinlik efektleri */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 75px;
  z-index: 1000;
  pointer-events: none;
}

body::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
}

body::after {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 70%, rgba(255, 255, 255, 0.4) 100%);
}

.yayin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: #fdf7ec;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-left .castle-icon {
  height: 58px;
}

.yayin-nav {
  display: flex;
  gap: 150px;
  font-size: 1.6rem;
  font-weight: 500;
}

.yayin-nav a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
}

.yayin-nav a.active,
.yayin-nav a:hover {
  color: #000000;
  font-weight: 700;
}

.header-search input {
  border: none;
  border-radius: 20px;
  padding: 8px 28px;
  font-size: 1.2rem;
  background: #fbf3e5;
  outline: none;
  width: 140px;
  transition: box-shadow 0.2s;
}

.header-search input:focus {
  box-shadow: 0 0 0 2px #e43e2b33;
}

.header-right .main-logo {
  height: 54px;
}

main {
  padding: 0 0 40px 0;
}

.e-dergiler-etiket {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  margin-left: 20px;
  margin-top: 32px;
  margin-bottom: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #174c6433;
}

.e-dergiler-baslik {
  color: #fff;
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 38px;
  margin-top: 10px;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 1px;
  width: 100%;
}

/* Yakında Geliyor Animasyonu */
.coming-soon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  padding: 20px 20px;
  margin-top: -30px;
}

.coming-soon-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.coming-soon-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.coming-soon-text {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.coming-soon-animation {
  margin-top: 30px;
}

.edigital-animation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.edigital {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.ed-1 {
  animation-delay: 0s;
}

.ed-2 {
  animation-delay: 0.5s;
}

.ed-3 {
  animation-delay: 1s;
}

.ed-4 {
  animation-delay: 1.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(5deg);
  }

  50% {
    transform: translateY(-5px) rotate(-3deg);
  }

  75% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Hover efektleri */
.coming-soon-content:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.edigital:hover {
  transform: scale(1.2) rotate(10deg);
  transition: transform 0.2s ease;
}

.dergiler {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.dergi-kart-bloğu {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.dergi-kart-bloğu:hover {
  transform: translateY(-4px);
}

.dergi-kart {
  background: #fff6e7;
  box-shadow: 0 4px 24px #e43e2b22;
  width: 180px;
  height: 230px;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dergi-kart:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px #e43e2b44;
}

.dergi-bilgi {
  text-align: center;
  margin-bottom: 32px;
}

.dergi-ad {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff6e7;
}

.dergi-sayi {
  font-size: 1rem;
  color: #fff6e7;
  margin-bottom: 5px;
}

.dergi-kategori {
  font-size: 0.85rem;
  color: #fff6e7;
  font-style: italic;
}

/* TELEFON (max-width: 700px) */
@media (max-width: 700px) {

  body::before,
  body::after {
    width: 25px;
  }

  /* --- GÜNCELLENMİŞ HEADER KODLARI --- */
  .yayin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    gap: 15px;
    box-sizing: border-box;
  }

  .header-left {
    order: 1;
  }

  .header-right {
    order: 2;
  }

  .yayin-nav {
    width: 100%;
    order: 3;
    justify-content: center;
  }

  .header-search {
    width: 100%;
    order: 4;
  }

  .header-left .castle-icon,
  .header-right .main-logo {
    height: 48px;
    position: static;
    margin: 0;
  }

  .yayin-nav {
    gap: 20px;
    font-size: 1.1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  .header-search input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #f0e8da;
    font-size: 1.1rem;
    padding: 10px 15px;
    min-width: unset;
    display: block;
    margin: 0;
    height: auto;
    position: static;
    z-index: 1;
  }

  /* --- SAYFA İÇERİK KODLARI --- */
  .e-dergiler-baslik {
    font-size: 2.1rem;
    margin-bottom: 16px;
    margin-top: 15px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }

  .coming-soon-container {
    min-height: 35vh;
    padding: 15px 8px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .coming-soon-content {
    padding: 24px 6px;
    max-width: 100%;
    margin: 0 auto;
  }

  .coming-soon-icon {
    font-size: 3rem;
  }

  .coming-soon-title {
    font-size: 2rem;
  }

  .coming-soon-text {
    font-size: 1rem;
  }

  .edigital-animation {
    gap: 10px;
  }

  .edigital {
    font-size: 1.5rem;
  }

  /* --- PDF MODAL MOBİL UYUM KODLARI --- */
  .pdf-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .pdf-header {
    padding: 10px 20px;
  }

  .pdf-header h2 {
    font-size: 1.2rem;
  }

  .close-btn {
    font-size: 1.5rem;
  }

  .pdf-spread {
    padding: 10px;
    flex-direction: column;
    /* Sayfaları alt alta getir */
    gap: 20px;
    width: 100%;
    height: auto;
    background: none;
    box-shadow: none;
  }

  .pdf-viewer {
    overflow-y: auto;
    /* Dikey kaydırmayı etkinleştir */
    overflow-x: hidden;
  }

  .page-spread {
    width: calc(100% - 20px);
    height: auto;
    /* Yükseklik otomatik ayarlansın */
    padding: 0;
    flex-direction: column;
    /* İçindeki sayfalar da alt alta gelsin */
  }

  .pdf-page canvas {
    transform: scale(1);
    /* Büyütme efektini kaldır */
  }

  /* Masaüstü efektlerini gizle */
  .page-spread::before,
  .page-spread::after,
  .pdf-spread::before,
  .pdf-spread::after {
    display: none;
  }
}

/* TABLET DİKEY (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) {
  html {
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
  }

  body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
  }

  .yayin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    width: 90vw;
    gap: 0;
  }

  .header-left .castle-icon {
    height: 68px;
    margin-left: -20px;
  }

  .yayin-nav {
    gap: 75px;
    font-size: 1.05rem;
    font-weight: 500;
    flex-wrap: nowrap;
    margin-bottom: 0;
  }

  .header-search {
    position: static;
    z-index: 1;
    width: auto;
    background: transparent;
  }

  .header-search input {
    font-size: 1.15rem;
    width: 100px;
    min-width: 100px;
    height: 28px;
    padding: 8px 28px;
    z-index: 1;
    position: static;
    background: #fbf3e5;
    display: inline-block;
    margin: 0;
  }

  .header-right {
    position: static;
    margin-top: 0;
  }

  .header-right .main-logo {
    position: static;
    margin-top: -10px;
    margin-right: -10px;
    height: 55px;
  }

  .e-dergiler-baslik {
    font-size: 2.2rem;
    margin-bottom: 70px;
    margin-top: 50px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }

  .dergiler {
    flex-direction: column;
    gap: 18px;
    align-items: center;
    padding: 0 2vw;
  }

  .dergi-kart-bloğu {
    width: 100%;
    align-items: center;
  }

  .dergi-kart {
    width: 100%;
    max-width: 160px;
    height: 200px;
    margin-bottom: 8px;
  }

  .dergi-bilgi {
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .dergi-ad {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .dergi-sayi {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .dergi-kategori {
    font-size: 0.7rem;
  }
}

/* TABLET YATAY (min-width: 701px) and (max-width: 1366px) and (orientation: landscape) */
@media (min-width: 701px) and (max-width: 1366px) and (orientation: landscape) {
  html {
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
  }

  body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
  }

  .yayin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: #fdf7ec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .header-left .castle-icon {
    height: 58px;
  }

  .yayin-nav {
    display: flex;
    gap: 150px;
    font-size: 1.6rem;
    font-weight: 500;
  }

  .header-search input {
    border: none;
    border-radius: 20px;
    padding: 8px 28px;
    font-size: 1.2rem;
    background: #fbf3e5;
    outline: none;
    width: 140px;
    transition: box-shadow 0.2s;
  }

  .header-right .main-logo {
    height: 54px;
  }

  .e-dergiler-baslik {
    color: #fff;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 38px;
    margin-top: 10px;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 1px;
    width: 100%;
  }

  .dergiler {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .dergi-kart-bloğu {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .dergi-kart {
    background: #fff6e7;
    box-shadow: 0 4px 24px #e43e2b22;
    width: 220px;
    height: 280px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .dergi-bilgi {
    text-align: center;
    margin-bottom: 32px;
  }

  .dergi-ad {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff6e7;
  }

  .dergi-sayi {
    font-size: 1.1rem;
    color: #fff6e7;
    margin-bottom: 5px;
  }

  .dergi-kategori {
    font-size: 0.95rem;
    color: #fff6e7;
    font-style: italic;
  }
}

/* PDF Viewer Modal Styles */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.pdf-modal-content {
  position: relative;
  background: linear-gradient(135deg, #fff6e7 0%, #fdf7ec 100%);
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, #22ace2 0%, #13cfb3 100%);
  color: white;
  border-radius: 0;
  flex-shrink: 0;
}

.pdf-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Telegraf', sans-serif;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
  transition: background-color 0.2s;
  font-family: 'Telegraf', sans-serif;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.pdf-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  background: #f8f4f0;
  border-bottom: 1px solid #e0d8d0;
}

.control-btn {
  background: linear-gradient(135deg, #22ace2 0%, #13cfb3 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Telegraf', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(34, 172, 226, 0.3);
}

.control-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 172, 226, 0.4);
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#pageInfo {
  font-family: 'Telegraf', sans-serif;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.pdf-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: linear-gradient(135deg, #f8f4f0 0%, #fff6e7 100%);
  overflow: hidden;
}

.pdf-viewer {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  perspective: 1500px;
}

.pdf-spread {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

.pdf-spread::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.2) 50%);
  cursor: pointer;
  z-index: 10;
  border-radius: 0 0 8px 0;
}

.pdf-spread::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
  cursor: pointer;
  z-index: 10;
  border-radius: 0 0 0 8px;
}

.pdf-spread:hover::before,
.pdf-spread:hover::after {
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.4) 50%);
}

.page-spread {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 15px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  transform-style: preserve-3d;
  position: relative;
  backface-visibility: hidden;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}

.page-spread.fade-out {
  opacity: 0;
  transform: rotateY(-15deg) scale(0.95);
}

.page-spread.fade-in {
  opacity: 0;
  transform: rotateY(15deg) scale(0.95);
  animation: fadeInPage 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    transform: rotateY(15deg) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

.page-spread::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #ddd, #999, #ddd);
  transform: translateX(-50%);
  z-index: 1;
}

/* Sayfa köşesi çevirme efekti */
.page-spread::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 50px 50px;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  z-index: 5;
}

.pdf-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  height: 100%;
  position: relative;
  backface-visibility: hidden;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.pdf-page:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pdf-page canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: center center;
}

/* Hover efektleri */
.pdf-spread:hover .pdf-page:first-child {
  transform: translateX(-5px);
}

.pdf-spread:hover .pdf-page:last-child {
  transform: translateX(5px);
}

/* Sayfa köşesi çevirme alanı */
.page-spread .flip-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.2) 50%);
  cursor: grab;
  z-index: 10;
  border-radius: 0 8px 0 100px;
}

.page-spread .flip-corner:hover {
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.4) 50%);
}

.page-spread .flip-corner:active {
  cursor: grabbing;
}

#pdfCanvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

#pdfCanvas:hover {
  transform: scale(1.02);
}

/* Responsive PDF Modal */
@media (max-width: 700px) {
  .pdf-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .pdf-header {
    padding: 10px 20px;
  }

  .pdf-header h2 {
    font-size: 1.2rem;
  }

  .close-btn {
    font-size: 1.5rem;
  }

  .pdf-spread {
    padding: 10px;
  }

  .page-spread {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    padding: 10px;
  }
}

@media (min-width: 701px) and (max-width: 1366px) and (orientation: portrait) {
  .pdf-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .pdf-header h2 {
    font-size: 1.4rem;
  }

  .pdf-spread {
    padding: 15px;
  }

  .page-spread {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
  }
}

@media (min-width: 701px) and (max-width: 1366px) and (orientation: landscape) {
  .pdf-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .pdf-spread {
    padding: 20px;
  }

  .page-spread {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
  }
}