/* ============================================================
   COMPONENTS.CSS — Reusable UI Components
   İpek Ellinci · Fashion Portfolio Gallery
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   1. CURSOR DOT — Single elegant dot, no ring
   ───────────────────────────────────────────────────────────── */
.cursor-dot {
  display: none !important;
}

/* Subtle, elegant heart-beat for footer */
.heart-pulse {
  display: inline-block;
  color: #d95368;
  animation: heartBeat 3s ease-in-out infinite;
  transform-origin: center;
  margin: 0 4px;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  10% { transform: scale(1.05); }
  18% { transform: scale(1); }
  26% { transform: scale(1.03); }
  40% { transform: scale(1); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .cursor-dot {
    display: none !important;
  }
}


/* ─────────────────────────────────────────────────────────────
   2. TYPOGRAPHIC LOADER — "İPEK ELLİNCİ" text reveal
   ───────────────────────────────────────────────────────────── */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--royal-blue);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: loaderTitleReveal 2.2s ease-out forwards;
}

/* Loader Animations */
@keyframes loaderTitleReveal {
  0% {
    opacity: 0;
    letter-spacing: 0.3em;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    letter-spacing: 0.15em;
  }
}

/* Curtain slide UP when loaded */
body.loaded #loader {
  transform: translateY(-100%);
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────
   3. PAGE TRANSITION — Royal blue wipe overlay
   ───────────────────────────────────────────────────────────── */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--royal-blue);
  z-index: 9998;
  transform: translateX(-100%);
  pointer-events: none;
}

.page-transition.active {
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.exit {
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}


/* ─────────────────────────────────────────────────────────────
   4. NAVIGATION HEADER
   ───────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 30px var(--section-pad-x);
  mix-blend-mode: difference;
  color: var(--bg-primary);
  transition: padding 0.4s var(--ease-out-expo);
}

body.scrolled .header {
  padding: 20px var(--section-pad-x);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo a {
  color: inherit;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 3vw;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.7);
  margin-left: 10px;
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: var(--warm-yellow);
}

.lang-btn.active {
  color: var(--warm-yellow);
  font-weight: 700;
}

.lang-divider {
  opacity: 0.5;
  font-weight: 300;
}

/* Nav List */
.nav-list {
  display: flex;
  align-items: center;
  gap: 3vw;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--warm-yellow);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--warm-yellow);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 24px;
  gap: 6px;
  cursor: pointer;
  z-index: 110;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--bg-primary);
  transition: transform 0.4s var(--ease-out-expo),
              opacity 0.3s ease;
  transform-origin: center;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 105;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 40px;
  }

  .nav-link {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--bg-primary);
  }
}


/* ─────────────────────────────────────────────────────────────
   5. CUSTOM VIDEO PLAYER
   ───────────────────────────────────────────────────────────── */
.custom-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.custom-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play Overlay */
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 19, 0.3);
  transition: opacity 0.5s ease;
  z-index: 2;
}

.play-btn-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease,
              color 0.3s ease,
              transform 0.3s var(--ease-out-expo);
}

.play-btn-large:hover {
  background: var(--warm-yellow);
  color: var(--bg-primary);
  transform: scale(1.08);
}

.custom-video-player.playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Player Controls Bar — Glassmorphic */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(
    to top,
    rgba(7, 10, 19, 0.7) 0%,
    rgba(7, 10, 19, 0) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.custom-video-player:hover .player-controls {
  opacity: 1;
}

.control-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--bg-primary);
  font-size: 1rem;
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}

.control-btn:hover {
  color: var(--warm-yellow);
  background: rgba(255, 255, 255, 0.08);
}

/* Progress Bar */
.progress-bar-container {
  flex-grow: 1;
  height: 4px;
  background: rgba(250, 247, 242, 0.15);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.progress-bar-container:hover {
  height: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--warm-yellow);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm-yellow);
  transition: transform 0.2s ease;
}

.progress-bar-container:hover .progress-bar-fill::after {
  transform: translateY(-50%) scale(1);
}

.video-time {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.7);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 65px;
  text-align: right;
}

.volume-slider {
  width: 60px;
  height: 4px;
  background: rgba(250, 247, 242, 0.15);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Video Playing — Dim other content */
body.video-playing .home-section,
body.video-playing .atelier-section,
body.video-playing .photography-section,
body.video-playing .about-section,
body.video-playing .footer {
  opacity: 0.15;
  transition: opacity 0.5s ease;
}


/* ─────────────────────────────────────────────────────────────
   6. LIGHTBOX MODAL
   ───────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 19, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.4s ease,
              visibility 0.4s ease,
              transform 0.4s var(--ease-out-expo);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.25);
  background: none;
  color: var(--bg-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease,
              color 0.3s ease,
              transform 0.3s var(--ease-out-expo);
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--warm-yellow);
  border-color: var(--warm-yellow);
  transform: rotate(90deg);
}

/* Lightbox Nav Buttons */
.lightbox-nav {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.15);
  background: rgba(250, 247, 242, 0.04);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease,
              background 0.3s ease,
              color 0.3s ease,
              transform 0.3s var(--ease-out-expo);
  flex-shrink: 0;
  cursor: pointer;
}

.lightbox-nav:hover {
  border-color: var(--warm-yellow);
  color: var(--warm-yellow);
  background: rgba(220, 164, 52, 0.15);
}

.lightbox-nav svg {
  display: block;
}

.lightbox-close svg {
  display: block;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 95vw;
  max-width: 1200px;
  padding: 0 20px;
}

.lightbox-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 40px;
}

.lightbox-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  max-width: 900px;
}

/* Lightbox Image */
.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-out-expo);
}

.lightbox-caption {
  margin-top: 28px;
  text-align: center;
  color: rgba(250, 247, 242, 0.7);
  max-width: 600px;
}

.lightbox-caption-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--bg-primary);
  margin-bottom: 4px;
}

.lightbox-caption-sub {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Lightbox responsive */
@media (max-width: 768px) {
  .lightbox-content {
    width: 100vw;
    padding: 0 10px;
  }

  .lightbox-viewer {
    gap: 15px;
  }

  .lightbox-img {
    max-height: 55vh;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}


/* ─────────────────────────────────────────────────────────────
   7. FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  padding: 80px var(--section-pad-x) 40px;
  border-top: 1px solid rgba(11, 37, 201, 0.06);
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--royal-blue);
  letter-spacing: 0.08em;
}

.footer-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-bottom {
  width: 100%;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(11, 37, 201, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-credit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  padding: 0;
}

.credit-author {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  color: var(--royal-blue);
  display: inline-block;
}



.credit-author::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-secondary);
  border: 1px solid var(--warm-yellow);
  color: var(--royal-blue);
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  padding: 6px 14px;
  white-space: nowrap;
  border-radius: 2px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo),
              visibility 0.3s;
  z-index: 100;
}

.credit-author:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.heart-icon {
  color: #d95368;
  display: inline-block;
  animation: heartBeat 3s ease-in-out infinite;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--royal-blue);
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--royal-blue);
  transition: width 0.3s var(--ease-out-expo);
}

.footer-link:hover::after {
  width: 100%;
}

/* Footer Botanical Decoration */
.footer::before {
  content: '';
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 60px;
  opacity: 0.4;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50' fill='none' stroke='%230B25C9' stroke-width='0.7' stroke-linecap='round'%3E%3Cpath d='M20 48 L20 15'/%3E%3Cpath d='M20 35 Q12 28 10 20 Q9 14 14 12 Q19 10 20 18 Q20 24 20 30'/%3E%3Cpath d='M20 28 Q28 22 30 14 Q31 8 26 6 Q22 8 22 14 Q22 20 20 24'/%3E%3Ccircle cx='10' cy='18' r='2' fill='none'/%3E%3Ccircle cx='30' cy='12' r='2' fill='none'/%3E%3C/svg%3E");
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 60px var(--section-pad-x) 30px;
  }

  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
  }
}

/* ─────────────────────────────────────────────────────────────
   8. TRANSITION FOR DYNAMIC TRANSLATIONS (TR/EN)
   ───────────────────────────────────────────────────────────── */
[data-tr] {
  transition: opacity 0.15s ease;
}
body.lang-transitioning [data-tr] {
  opacity: 0;
}
