/* ============================================
   YOGA MAKİNA — Components
   Dock Navbar, Header, Footer, Buttons, Cards
   ============================================ */

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3xl);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              backdrop-filter 0.4s ease,
              box-shadow 0.4s ease;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateY(-100%);
}

.site-header.visible {
  transform: translateY(0);
}

.site-header.at-footer {
  transform: translateY(-100%);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  z-index: 2;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.header-logo:hover {
  opacity: 1;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header-logo .logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.header-logo .logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 3px;
}

/* === Header Navigation Links === */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.header-nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.header-nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 2;
  flex-shrink: 0;
}

.lang-switch-header {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: transparent;
  color: var(--white);
}

.lang-switch-header:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* === Mobile Hamburger Menu === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: calc(var(--z-header) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: var(--space-md) var(--space-xl);
  transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active {
  color: var(--white);
  opacity: 1;
}

/* === Dock Navbar === */
.dock-navbar {
  position: fixed;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-dock);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: var(--radius-2xl);
  transition: right 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
  opacity: 0;
}

.dock-navbar.visible {
  right: 20px;
  opacity: 1;
}

/* Dock hover zone — invisible area on the right to trigger dock */
.dock-hover-zone {
  position: fixed;
  right: 0;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: var(--z-dock) - 1;
}

.dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-spring);
  color: var(--white);
  cursor: pointer;
}

.dock-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-spring);
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.15);
}

.dock-item:hover svg {
  transform: scale(1.05);
}

.dock-item.active {
  background: rgba(255, 255, 255, 0.2);
}

.dock-item.active::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--white);
  border-radius: var(--radius-full);
}

/* Dock tooltip */
.dock-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-out-quart);
  backdrop-filter: blur(10px);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dock-divider {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 4px 0;
}

/* Dock language switch */
.dock-lang {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--white);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.btn-primary-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-primary-light:hover {
  background: var(--white-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-200);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  padding: 14px 16px;
}

.btn-ghost:hover {
  background: var(--gray-100);
  opacity: 1;
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn .btn-arrow {
  transition: transform 0.3s var(--ease-out-quart);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-200);
}

.card-dark {
  background: var(--black-muted);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
}

.card-dark:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-dark p {
  color: var(--text-on-dark-secondary);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  margin-bottom: var(--space-lg);
}

.card-dark .card-icon {
  background: rgba(255, 255, 255, 0.08);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.card h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* === Footer === */
.site-footer {
  background: white;
  color: var(--black);
  padding: var(--space-4xl) 0 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--space-5xl);
  position: relative;
  z-index: 2;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 600px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-separator {
  width: 1px;
  height: 24px;
  background: var(--gray-300);
}

.footer-tagline {
  font-size: var(--text-md);
  color: var(--gray-600);
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--black);
  transition: all var(--transition-normal);
}

.footer-social-icon:hover {
  background: var(--black);
  color: var(--white);
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-xl);
}

.footer-copyright a {
  color: var(--gray-800);
  font-weight: 600;
  text-decoration: none;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.footer-right h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-sm);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition-short);
}

.footer-nav a:hover {
  color: var(--black);
}

.footer-watermark {
  position: absolute;
  bottom: -2.5vw;
  left: 0;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 14vw;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 0.8;
  text-align: center;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-separator { display: none; }
  .footer-watermark { font-size: 16vw; bottom: -1.5vw; }
}

/* === Page Transition Overlay === */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: var(--z-max);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.active {
  animation: pageTransition 0.8s var(--ease-out-expo) forwards;
}

@keyframes pageTransition {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  51% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* === Loading Screen === */
.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: calc(var(--z-max) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-lg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--white);
  opacity: 0;
  animation: loaderFadeIn 1s ease forwards;
}

.loader-line {
  width: 60px;
  height: 2px;
  background: var(--gray-800);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--white);
  animation: loaderProgress 1.5s var(--ease-out-expo) 0.3s forwards;
}

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

@keyframes loaderProgress {
  to { width: 100%; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 var(--space-lg);
  }
  
  .header-nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .mobile-nav-overlay {
    display: flex;
  }
  
  /* Dock converts to bottom bar on mobile */
  .dock-navbar {
    right: auto !important;
    left: 50%;
    top: auto !important;
    bottom: -80px;
    transform: translateX(-50%) translateY(0) !important;
    flex-direction: row;
    border-radius: var(--radius-2xl);
    padding: 10px 16px;
  }
  
  .dock-navbar.visible {
    bottom: 20px;
    opacity: 1;
  }
  
  .dock-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
  }
  
  .dock-item.active::after {
    left: 50%;
    top: auto;
    bottom: -4px;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
  }
  
  .dock-tooltip {
    display: none;
  }
  
  .dock-hover-zone {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}

/* === Marquee Banner === */
.marquee-section {
  background-color: #d32f2f; /* Referans görseldeki gibi dikkat çekici kırmızı bant */
  padding: var(--space-xl) 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  white-space: nowrap;
  animation: scrollMarquee 35s linear infinite;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  gap: 2rem;
  padding-left: 2rem;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
}

.marquee-content span.outlined {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
}

.marquee-content span.solid {
  color: var(--white);
  -webkit-text-stroke: 0;
}

.marquee-section--dark {
  background-color: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content--reverse {
  animation-direction: reverse;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Floating WhatsApp Button === */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--ease-out-expo);
  animation: pulse-wa 2s infinite;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}

.whatsapp-float.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1) translateY(0);
  color: #FFF;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg { width: 30px; height: 30px; }
}
