/* =========================
   Dotto•Man - style.css (optimized)
   Notes:
   - Removed duplicate / conflicting rules
   - Kept your overall look & classes
   - Bootstrap-friendly (your CSS overrides Bootstrap)
   ========================= */

/* ---------- Base ---------- */
:root{
  --bg: #121212;
  --text: rgba(255,255,255,0.90);
  --text-soft: rgba(255,255,255,0.78);

  --ink-red: rgba(163, 0, 0, 0.45);
  --ink-red-2: rgba(231, 0, 0, 0.28);

  --border-soft: rgba(255,255,255,0.08);
}

html, body{
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body{
  background-color: var(--bg) !important; /* override Bootstrap */
  background-image: url("images/topo.svg");
  background-repeat: repeat;
  background-size: 600px 600px;

  color: var(--text);
  margin: 0;
  font-family: "Century Gothic", CenturyGothic, Geneva, AppleGothic, sans-serif;
}

/* Links */
a{ color: white; text-decoration: none; }
a:visited{ color: white; }
a:hover{ color: rgb(239, 239, 239); }
a:active{ color: rgb(202, 202, 255); }

/* ---------- Typography ---------- */
h1, h2, h3{
  text-align: center;
  margin-left: 90px;
  margin-right: 90px;
  letter-spacing: 0.2px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

h1{ color: rgb(243, 243, 243); }
h2{ color: rgb(228, 228, 228); }
h3{ color: white; }

p{
  text-align: left;
  margin-left: 90px;
  margin-right: 90px;
  font-size: large;
  line-height: 1.65;
  color: var(--text-soft);
  font-family: 'Courier New', Courier, monospace;
}

.girisYazisi{ text-align: center; }

/* ---------- Header ---------- */
.TopHeader{
  top: 0;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
  background-image: linear-gradient(rgba(13, 13, 13, 1), rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.3));
}

header{
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.DottoLogo{
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 35px 20px 20px 20px;
  width: 200px;
}

/* ---------- Nav 1 (topnav) ---------- */
.topnav{
  position: relative;
  background-image: linear-gradient(rgba(13, 13, 13, 0.3), rgba(13, 13, 13, 0.1), rgba(0, 0, 0, 0));
  overflow: hidden;
}

.topnav a{
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  font-family: "Century Gothic", CenturyGothic, Geneva, AppleGothic, sans-serif;
}

.topnav a:hover{
  background-color: rgba(255, 255, 255, 0.7);
  color: black;
  border-radius: 100px;
}

.topnav a.active{
  background-color: rgba(163, 0, 0, 0.511);
  color: white;
  border-radius: 100px;
}

.topnav-centered a{
  float: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.topnav-left{ float: left; }
.topnav-right{ float: right; }

/* Hide/show animation for nav1 (sticky so it stays under logo area) */
.topnav{
  position: sticky;
  top: 0;
  z-index: 999;
  will-change: transform, opacity;
  transform: translateY(0);
  opacity: 1;
  transition: transform 220ms ease, opacity 220ms ease;
}
.topnav.is-hidden{ transform: translateY(-120%); opacity: 0; }
.topnav.is-shown{ transform: translateY(0); opacity: 1; }

/* ---------- Nav 2 (topnav2) - premium ink glass ---------- */
.topnav2{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;

  /* default hidden; nav.js toggles .is-shown */
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;

  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;

  /* base look */
  background: rgba(8, 8, 8, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);

  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
  overflow: visible;
}

/* Blur only when supported (saves perf on weak devices) */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .topnav2{
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
  }
}

.topnav2.is-shown{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Ink wave highlight */
.topnav2::before{
  content: "";
  position: absolute;
  left: -20%;
  top: -60%;
  width: 140%;
  height: 180%;
  background:
    radial-gradient(circle at 20% 30%, rgba(231, 0, 0, 0.22), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.45), transparent 55%);
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}

/* subtle grain */
.topnav2::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.04));
  opacity: 0.12;
  pointer-events: none;
}

/* topnav2 links */
.topnav2 a{
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 14px;
  text-decoration: none;
  font-size: 17px;
  font-family: "Century Gothic", CenturyGothic, Geneva, AppleGothic, sans-serif;
  border-radius: 999px;
  letter-spacing: 0.2px;

  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.topnav2 a:hover{
  background-color: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.topnav2 a.active{
  background: var(--ink-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10);
}

.topnav2-left{ float:left; }
.topnav2-right{ float:right; }

/* Center the active link perfectly */
.topnav2-centered{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  overflow: visible;
}
.topnav2-centered a{
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

/* Active pulse */
.topnav2-centered a.active::before{
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 50% 50%, rgba(231, 0, 0, 0.28), transparent 55%);
  opacity: 0.9;
  animation: inkPulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.topnav2-centered a.active::after{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(231, 0, 0, 0.35);
  animation: haloPulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes inkPulse{
  0%, 100%{ transform: scale(0.96); opacity: 0.55; }
  50%{ transform: scale(1.05); opacity: 0.95; }
}
@keyframes haloPulse{
  0%{ box-shadow: 0 0 0 0 rgba(231,0,0,0.25); }
  70%{ box-shadow: 0 0 0 12px rgba(231,0,0,0.00); }
  100%{ box-shadow: 0 0 0 0 rgba(231,0,0,0.00); }
}

/* ---------- Sections / layout ---------- */
.pre-blog{
  margin-left: auto;
  margin-right: auto;
  margin-top: 150px;
  margin-bottom: 190px;
  padding: 40px 20px 20px 20px;
  font-size: x-large;
}

.blog{
  width: 80%;
  background-color: rgba(9, 9, 9, 0.653);
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  padding: 40px 28px 32px 28px;
  border-radius: 25px;

  /* light ink card */
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45));
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* reading flow (blog area only) */
.blog main, .blog section, .blog article{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* override the 90px margins inside blog so it reads well */
.blog h1, .blog h2, .blog h3, .blog p{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.blog p{
  font-size: 17px;
  line-height: 1.75;
  margin: 14px 0;
}

.blog .girisYazisi{
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.85;
}

.blog hr{
  border: none;
  height: 1px;
  margin: 34px auto;
  max-width: 900px;
  background: linear-gradient(to right,
    rgba(255,255,255,0.00),
    rgba(255,255,255,0.20),
    rgba(255,255,255,0.00)
  );
  opacity: 0.9;
}

.moreInfoButton{
  border: none;
  background-color: var(--ink-red);
  border-radius: 100px;
  font-size: small;
  margin-left: auto;
  margin-right: auto;
  margin-top: -10px;
  padding: 10px 20px;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 26px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.moreInfoButton:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.55), 0 0 0 10px rgba(231,0,0,0.06);
  background: rgba(231,0,0,0.35);
}

/* Images */
.parent{
  display: flex;
  margin-bottom: 280px;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.image1{ width: 500px; height: auto; opacity: 0.95; }
.image2{ position: absolute; width: 300px; padding-top: 300px; }

.AePhoto{
  border: none;
  border-radius: 100px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 180px;
}

.personTitles{
  font-size: small;
  text-align: center;
  margin-top: -10px;
}
.personInfoName{
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

/* Redline wrappers */
.redlineTop, .redlineBottom{
  display: block;
  margin-top: 4em;
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
}
.redlineTop{ rotate: -2deg; }
.redlineBottom{ rotate: 2deg; }

/* Iframes */
.Gform, .episode{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 87%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.35);
}
.episode{ aspect-ratio: 16/9; }

/* Gallery carousel */
.dotto-carousel{
  position: relative;
  margin: 30px auto 70px auto;
  border-radius: 18px;
  overflow: hidden;
  width: min(900px, 92%);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
}
.dotto-carousel img{
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Carousel controls visibility on dark theme */
#dottoGallery .carousel-control-prev,
#dottoGallery .carousel-control-next{
  opacity: 1;
  width: 10%;
}
#dottoGallery .carousel-control-prev-icon,
#dottoGallery .carousel-control-next-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  filter: invert(1);
}

/* ---------- Footer ---------- */
.whiteline{
  display: block;
  margin: 0.5em auto;
}

footer{
  width: 80%;
  background-color: rgba(9, 9, 9, 0.45);
  border-radius: 35px;
  margin-left: auto;
  margin-right: auto;
  padding: 70px 20px 20px 20px;
  text-align: center;
}
.rightstext{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.copyRights{ text-align: center; }

.fa{
  padding: 20px;
  font-size: 30px;
  width: 50px;
  text-align: center;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.topButton{
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background: rgba(231,0,0,0.55);
  color: white;
  cursor: pointer;
  padding: 1px;
  border-radius: 100px;
  font-size: 30px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 30px rgba(0,0,0,0.55);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.topButton:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(0,0,0,0.65), 0 0 0 10px rgba(231,0,0,0.08);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px){
  .pre-blog{ margin-top: 60px; margin-bottom: 60px; }

  .blog{
    width: 92%;
    padding: 18px 12px 18px 12px;
  }

  h1, h2, h3{
    font-size: 20px;
    margin: 4px;
    padding: 3px;
  }

  p{
    padding: 3px;
    font-size: 14px;
    margin: 4px;
  }

  .topnav a{
    font-size: 14px;
    padding: 3px 4px;
  }

  .topnav a, .topnav-right{
    float: none;
    display: block;
  }

  .topnav-centered a{
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }

  .parent{ margin-bottom: 250px; }
  .image1{ width: 300px; }
  .image2{ width: 170px; padding-top: 170px; }
  .DottoLogo{ width: 150px; }

  /* topnav2 mobile layout: stack + center */
  .topnav2{
    min-height: 56px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .topnav2 a, .topnav2-right{
    float: none !important;
    display: block !important;
  }
  .topnav2-centered{
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: auto !important;
    text-align: center;
    margin: 6px 0 6px 0;
  }
  .topnav2-centered a{
    display: inline-block;
  }
  .topnav2-left, .topnav2-right{
    float: none !important;
    text-align: center;
  }

  .dotto-carousel{
    width: 92%;
    margin: 24px auto 40px auto;
  }
  .dotto-carousel img{ max-height: 320px; }
}
/* YouTube: tıklayınca yükle (performance) */
.yt-lite.episode{
  position: relative;
  display: block;
  width: 87%;
  aspect-ratio: 16/9;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.35);
  cursor: pointer;
}

.yt-lite .yt-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(1.05);
}

.yt-lite .yt-play{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
}

.yt-lite .yt-play::before{
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 16px solid rgba(255,255,255,0.9);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.yt-lite:hover .yt-play{
  transform: translate(-50%, -50%) scale(1.03);
  background: rgba(0,0,0,0.62);
}

/* === Dotto Gallery: sabit yükseklik (Bootstrap uyumlu) === */
#dottoGallery .carousel-inner{
  height: 520px;                /* SABİT FRAME */
  background: rgba(0,0,0,0.35);
}

/* Carousel item bootstrap pozisyonunu korusun */
#dottoGallery .carousel-item{
  height: 100%;
}

/* Görseller frame’e sığsın */
#dottoGallery .carousel-item img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;          /* küçükse boşluklu */
}
#dottoGallery .carousel-item{
  background:
    radial-gradient(circle at center,
      rgba(255, 255, 255, 0.04),
      rgba(0,0,0,0.55)
    );
}

@media (max-width: 768px){
  #dottoGallery .carousel-item{
    height: 300px;
  }
}
/* Footer icons görünür olsun */
footer .fa{
  color: rgba(255,255,255,0.92) !important;
  font-size: 30px;
  display: inline-block;
  line-height: 1;
  opacity: 1 !important;
}

footer .fa:hover{
  color: #fff !important;
}
/* =========================
   TOPNAV2 MOBILE COMPACT BAR
   ========================= */
@media (max-width: 768px){

  /* bar yüksekliği sabit + tek satır */
  .topnav2{
    min-height: 64px !important;
    padding: 6px 10px !important;
  }

  /* sol/sağ/orta blokları yatay akıtalım */
  .topnav2-left,
  .topnav2-right,
  .topnav2-centered{
    float: none !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* bütün linkler tek satırda aksın */
  .topnav2{
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;              /* yatay kaydır */
    -webkit-overflow-scrolling: touch;
  }

  .topnav2 a{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 12px !important;
    font-size: 13px !important;
    flex: 0 0 auto;
  }

  /* ortadaki link de satıra dahil olsun */
  .topnav2-centered a.active{
    margin: 0 4px;
  }

  /* mobilde caption/extra taşma olmasın */
  .topnav2::-webkit-scrollbar{
    display: none;
  }
}
.sprite img{
  width: 400x;        /* istediğin boyut */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pixel-gif0{
  width: 400px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  filter:
    drop-shadow(0 0 4px rgba(255, 96, 96, 0.55))
    drop-shadow(0 0 10px rgba(255, 35, 35, 0.35))
    drop-shadow(0 0 18px rgba(255, 0, 0, 0.18));
}
.pixel-gif1{
  width: 400px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  filter:
    drop-shadow(0 0 4px rgba(96, 215, 255, 0.55))
    drop-shadow(0 0 10px rgba(35, 178, 255, 0.35))
    drop-shadow(0 0 18px rgba(0, 153, 255, 0.18));
}
.pixel-gif2{
  width: 400px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;

  filter:
    drop-shadow(0 0 4px rgba(255, 147, 53, 0.55))
    drop-shadow(0 0 10px rgba(255, 102, 0, 0.35))
    drop-shadow(0 0 18px rgba(255, 117, 4, 0.18));
}
