/**
 * Homepage B — MicDrop Track Carousel Clone
 * Scoped under .ce-homepage-b to avoid conflicts
 */

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes playerSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   PAGE WRAPPER — Full Viewport
   ============================================= */
.ce-homepage-b {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #feb5a0;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Kill WP default spacing & hide standard header/footer on this page */
body.page-template-page-anasayfa-b .wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}
body.page-template-page-anasayfa-b .wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}
body.page-template-page-anasayfa-b .ce-header,
body.page-template-page-anasayfa-b .ce-footer,
body.page-template-page-anasayfa-b > .wp-site-blocks > header,
body.page-template-page-anasayfa-b > .wp-site-blocks > footer {
  display: none !important;
}

/* =============================================
   HEADER — Transparent Overlay
   ============================================= */
.ce-hb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.4s ease,
              box-shadow 0.4s ease;
}

/* Sticky mode: fixed + dark bg */
.ce-hb-header.is-sticky {
  position: fixed;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Hidden: slide up */
.ce-hb-header.is-hidden {
  transform: translateY(-100%);
}

/* Visible: slide down */
.ce-hb-header.is-visible {
  transform: translateY(0);
}
/* WordPress wpautop wraps elements in <p> — neutralize them */
.ce-hb-header > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ce-homepage-b > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ce-hb-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ce-hb-logo img {
  height: 55px;
  width: auto;
  display: block;
}

.ce-hb-hamburger {
  position: fixed;
  left: 50%;
  top: 35px;
  transform: translate(-50%, -50%);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  outline: none;
  transition: left 0.4s ease, top 0.4s ease;
}
.ce-hb-hamburger:focus,
.ce-hb-hamburger:focus-visible {
  outline: none;
  box-shadow: none;
}

/* When menu open: move to top-right, bigger X */
.ce-hb-hamburger.is-active {
  left: auto;
  right: 40px;
  top: 35px;
  transform: none;
}
.ce-hb-hamburger br {
  display: none;
}
.ce-hb-hamburger span {
  display: block;
  width: 56px;
  height: 2px;
  background-color: #fff;
  transition: all 0.4s ease;
  transform-origin: center;
}

/* Hamburger → X transform when menu is open — bigger, top-right */
.ce-hb-hamburger.is-active span {
  background-color: #fff;
  width: 44px;
}
.ce-hb-hamburger.is-active span:first-of-type {
  transform: translateY(3px) rotate(45deg);
}
.ce-hb-hamburger.is-active span:last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}

/* Pill nav — not used, hidden */
.ce-hb-nav { display: none; }

.ce-hb-nav__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 0 12px;
  height: 46px;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.ce-hb-nav__link:hover {
  opacity: 0.6;
}

/* Müzik dropdown */
.ce-hb-nav__dropdown {
  position: relative;
}
.ce-hb-nav__dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ce-hb-nav__dropdown-btn svg {
  transition: transform 0.3s ease;
}
.ce-hb-nav__dropdown.is-open .ce-hb-nav__dropdown-btn svg {
  transform: rotate(180deg);
}
.ce-hb-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ce-hb-nav__dropdown.is-open .ce-hb-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.ce-hb-nav__dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.ce-hb-nav__dropdown-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Dil seçimi */
.ce-hb-nav__lang {
  position: relative;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.ce-hb-nav__lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  height: 46px;
}
.ce-hb-nav__lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ce-hb-nav__lang.is-open .ce-hb-nav__lang-dropdown {
  opacity: 1;
  visibility: visible;
}
.ce-hb-nav__lang-option {
  display: block;
  padding: 8px 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ce-hb-nav__lang-option:hover,
.ce-hb-nav__lang-option.is-active {
  color: #fff;
}

/* Hide pill nav on mobile, show hamburger */
@media (max-width: 768px) {
  .ce-hb-nav {
    display: none;
  }
}

.ce-hb-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ce-hb-socials a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ce-hb-socials a:hover {
  opacity: 0.6;
}
.ce-hb-socials a svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* =============================================
   CAROUSEL — Swiper Container
   ============================================= */
.ce-hb-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ce-hb-carousel .swiper {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ce-hb-carousel .swiper-wrapper {
  align-items: center;
}

/* =============================================
   SLIDE
   ============================================= */
.ce-hb-slide {
  width: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  transform: scale(0.55) !important;
  cursor: grab;
}
.ce-hb-slide:active {
  cursor: grabbing;
}
.ce-hb-slide.swiper-slide-active {
  transform: scale(1.15) !important;
}

/* =============================================
   SLIDE INNER — Album Cover + Vinyl + Player
   ============================================= */
.ce-hb-slide-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
}

/* =============================================
   MEDIA WRAPPER — Holds cover + vinyl together
   ============================================= */
.ce-hb-media {
  position: relative;
  flex-shrink: 0;
}

/* =============================================
   ALBUM COVER — Bigger center
   ============================================= */
.ce-hb-album-cover {
  position: relative;
  z-index: 2;
  width: 360px;
  height: 360px;
  overflow: hidden;
}
.ce-hb-album-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Spotify overlay — compact 152px at bottom of cover */
.ce-hb-spotify-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 152px;
  z-index: 10;
  overflow: hidden;
  animation: spotifyFadeIn 0.4s ease;
}
.ce-hb-spotify-overlay iframe {
  width: 100%;
  height: 152px;
  border: none;
  display: block;
}
@keyframes spotifyFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =============================================
   VINYL DISC — Centered on album cover
   Only visible on active slide
   Spins continuously, emerges from behind cover
   ============================================= */
.ce-hb-vinyl {
  position: absolute;
  z-index: 1;
  /* Center vertically on the cover */
  top: 50%;
  right: 0;
  /* Bigger — ~90% of cover size */
  width: 330px;
  height: 330px;
  /* Hidden behind cover by default */
  transform: translateY(-50%) translateX(0%);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s ease;
  pointer-events: none;
}

/* Active slide: vinyl emerges from behind cover, centered */
.swiper-slide-active .ce-hb-vinyl {
  transform: translateY(-50%) translateX(25%);
  opacity: 1;
}

.ce-hb-vinyl img {
  width: 100%;
  height: 100%;
  display: block;
  animation: vinylSpin 2.5s linear infinite;
  animation-play-state: running;
}

/* Pause spin when NOT active */
.ce-hb-slide:not(.swiper-slide-active) .ce-hb-vinyl img {
  animation-play-state: paused;
}

/* =============================================
   BACKGROUND TEXT — Outlined Artist Name
   ============================================= */
.ce-hb-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.ce-hb-bg-text span {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 130px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 9.1px;
  line-height: 1.55;
  color: #feb5a0;
  text-shadow:
    -1px  0px 0px rgba(255, 255, 255, 0.7),
     0px  1px 0px rgba(255, 255, 255, 0.7),
     1px  0px 0px rgba(255, 255, 255, 0.7),
     0px -1px 0px rgba(255, 255, 255, 0.7);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ce-hb-bg-text span.ce-hb-bg-prev {
  opacity: 0.4;
}

/* =============================================
   FULLSCREEN MENU — MicDrop clone
   ============================================= */
.ce-hb-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.ce-hb-menu.is-open {
  opacity: 1;
  visibility: visible;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cline x1='10' y1='10' x2='34' y2='34' stroke='%23fff' stroke-width='2.5'/%3E%3Cline x1='34' y1='10' x2='10' y2='34' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") 22 22, pointer;
}

/* NAV — all items equally spaced */
.ce-hb-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Kill wpautop injected <br> tags, make <p> transparent */
.ce-hb-menu-nav > br,
.ce-hb-menu-nav br,
.ce-hb-menu > br {
  display: none !important;
}
.ce-hb-menu-nav > p,
.ce-hb-menu-nav p,
.ce-hb-menu > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Every direct child (links + accordion div) gets same spacing */
.ce-hb-menu-nav > a,
.ce-hb-menu-nav > .ce-hb-menu-accordion {
  margin: 0;
  padding: 0;
}

.ce-hb-menu-link {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  line-height: 2.2;
  margin: 0;
  padding: 0;
  display: block;
  transition: color 0.3s ease;
  cursor: pointer;
}
.ce-hb-menu-link:hover {
  color: #d48063;
}

/* Accordion wrapper — completely transparent in layout */
.ce-hb-menu-accordion {
  display: contents;
}
.ce-hb-menu-accordion-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}
.ce-hb-menu-accordion-btn:focus,
.ce-hb-menu-accordion-btn:focus-visible {
  outline: none;
  box-shadow: none;
}
.ce-hb-chevron {
  display: inline;
  transition: transform 0.3s ease;
  font-size: 0.7em;
}
.ce-hb-menu-accordion.is-open .ce-hb-chevron {
  display: inline-block;
  transform: rotate(180deg);
}

/* Accordion sub-links panel */
.ce-hb-menu-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 4px;
}
.ce-hb-menu-accordion.is-open .ce-hb-menu-accordion-panel {
  max-height: 300px;
}

.ce-hb-menu-sublink {
  font-family: 'Syne', sans-serif;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  line-height: 1;
  margin: 5px 0;
  padding-left: 20px;
  display: block;
  transition: color 0.3s ease;
}
/* Kill br inside accordion panel, make p transparent */
.ce-hb-menu-accordion-panel > br,
.ce-hb-menu-accordion-panel br {
  display: none !important;
}
.ce-hb-menu-accordion-panel > p,
.ce-hb-menu-accordion-panel p {
  display: contents !important;
  margin: 0 !important;
}
.ce-hb-menu-sublink:hover {
  color: #d48063;
}

.ce-hb-menu-link.ce-hb-menu-active {
  color: #d48063;
}

/* Bottom close button removed — hamburger X + cursor X handle closing */
.ce-hb-menu-close {
  display: none;
}

.ce-hb-menu-socials {
  position: absolute;
  bottom: 40px;
  right: 80px;
  display: flex;
  gap: 20px;
}
.ce-hb-menu-socials a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}
.ce-hb-menu-socials a:hover {
  color: #d48063;
}

/* =============================================
   PLAYER BAR — Animated entrance
   ============================================= */
/* =============================================
   ALBUM TITLE — Above player bar
   ============================================= */
.ce-hb-album-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin: 14px 0 0;
  text-align: center;
  max-width: 460px;
  /* Hidden on inactive slides */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease 0.2s,
    transform 0.5s ease 0.2s,
    visibility 0s ease 0.7s;
}
.swiper-slide-active .ce-hb-album-title {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.5s ease 0.2s,
    transform 0.5s ease 0.2s,
    visibility 0s ease 0s;
}

/* =============================================
   PLAYER BAR — MicDrop style dark bar
   Copper/salmon icons, progress bar
   ============================================= */
.ce-hb-player {
  position: relative;
  z-index: 3;
  width: auto;
  margin-top: 16px;
  background: #000;
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  gap: 24px;
  box-sizing: border-box;
  /* Hidden on inactive slides */
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease 0.3s,
    transform 0.5s ease 0.3s,
    visibility 0s ease 0.8s;
}
.swiper-slide-active .ce-hb-player {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.5s ease 0.3s,
    transform 0.5s ease 0.3s,
    visibility 0s ease 0s;
}

/* Left: prev / play / next */
.ce-hb-player-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ce-hb-pb-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8876e;
  transition: color 0.3s ease;
}
.ce-hb-pb-btn:hover {
  color: #feb5a0;
}
.ce-hb-pb-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.ce-hb-pb-play svg {
  width: 26px;
  height: 26px;
}

/* Center: spacer (empty) */
.ce-hb-player-center {
  display: none;
}
.ce-hb-pb-track {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ce-hb-pb-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* Right: volume icon + progress bar */
.ce-hb-player-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 160px;
}
.ce-hb-pb-vol {
  width: 20px;
  height: 20px;
  fill: #c8876e;
  flex-shrink: 0;
}
.ce-hb-pb-progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.ce-hb-pb-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 65%;
  background: #c8876e;
  border-radius: 1px;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .ce-hb-slide {
    width: 600px;
  }
  .ce-hb-album-cover {
    width: 420px;
    height: 420px;
  }
  .ce-hb-vinyl {
    width: 320px;
    height: 320px;
  }
  .ce-hb-player {
    width: 520px;
  }
  .ce-hb-bg-text span {
    font-size: 100px;
  }
}

@media (max-width: 768px) {
  .ce-hb-header {
    padding: 0 20px;
    height: 60px;
  }
  .ce-hb-hamburger span {
    width: 40px;
  }
  .ce-hb-socials {
    gap: 14px;
  }
  .ce-hb-socials a svg {
    width: 14px;
    height: 14px;
  }
  .ce-hb-slide {
    width: 90vw;
    transform: scale(0.65);
  }
  .ce-hb-slide.swiper-slide-active {
    transform: scale(0.95);
  }
  .ce-hb-album-cover {
    width: 320px;
    height: 320px;
  }
  .ce-hb-vinyl {
    width: 260px;
    height: 260px;
  }
  .ce-hb-player {
    width: calc(100% - 20px);
    max-width: 400px;
    padding: 12px 20px;
  }
  .ce-hb-player-title,
  .ce-hb-player-album,
  .ce-hb-player-time {
    font-size: 14px;
  }
  .ce-hb-bg-text span {
    font-size: 60px;
    letter-spacing: 4px;
  }
}

@media (max-width: 480px) {
  .ce-hb-album-cover {
    width: 260px;
    height: 260px;
  }
  .ce-hb-vinyl {
    width: 210px;
    height: 210px;
  }
  .ce-hb-player {
    width: 100%;
    max-width: 340px;
    padding: 10px 16px;
  }
  .ce-hb-player-title,
  .ce-hb-player-album,
  .ce-hb-player-time {
    font-size: 13px;
  }
  .ce-hb-bg-text span {
    font-size: 42px;
    letter-spacing: 3px;
  }
}
