/* ==========================================================================
   STARTKEY ZIRVE - AUTHENTIC LIQUID GLASS SUITE v2.0
   Built with algorithms from:
   - dashersw/liquid-glass-js (Floating Refraction Pill, Specular Rim & Dynamic Sheen)
   - ruucm/shadergradient (Ambient GPU Fluid Mesh & Aurora Waves)
   - paper-design/liquid-logo (Liquid Metal Refractive Logo Optics)
   - pmndrs/react-three-fiber (Demand-based 60FPS Lifecycle)
   ========================================================================== */

:root {
  --skz-gold: #c89d56;
  --skz-gold-light: #e5c483;
  --skz-gold-dark: #9a6d2c;
  --skz-navy: #0e121d;
  --skz-navy-light: #161c2d;
  --skz-red: #e53935;
  --skz-glass-bg: rgba(14, 18, 29, 0.72);
  --skz-glass-border: rgba(255, 255, 255, 0.22);
  --skz-glass-sheen: rgba(255, 255, 255, 0.35);
  --sheen-x: 50%;
}

/* ==========================================================================
   1. FLOATING LIQUID GLASS DOCK (dashersw/liquid-glass-js)
   ========================================================================== */
.skz-liquid-dock {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 440px;
  height: 68px;
  border-radius: 36px;
  
  /* True Apple Liquid Glass Optics */
  background: 
    radial-gradient(circle at var(--sheen-x, 50%) -20%, rgba(200, 157, 86, 0.22) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.09) 100%),
    rgba(12, 16, 26, 0.78);
  
  backdrop-filter: blur(30px) saturate(210%) contrast(108%) brightness(112%);
  -webkit-backdrop-filter: blur(30px) saturate(210%) contrast(108%) brightness(112%);
  
  border: 1.2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.65),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.45),
    0 0 24px rgba(200, 157, 86, 0.2);
  
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 999998;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 992px) {
  /* Masaüstünde gizle, sadece mobil ve tablete özel PWA deneyimi */
  .skz-liquid-dock {
    display: none !important;
  }
}

.skz-dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none !important;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.skz-dock-item svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  transition: transform 0.2s ease, stroke 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.skz-dock-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: color 0.2s ease;
}

.skz-dock-item:active svg {
  transform: scale(0.88);
}

.skz-dock-item.active {
  color: var(--skz-gold-light);
}

.skz-dock-item.active svg {
  stroke: var(--skz-gold-light);
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px rgba(200, 157, 86, 0.6));
}

.skz-dock-item.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--skz-gold), var(--skz-gold-light));
  box-shadow: 0 0 8px var(--skz-gold);
}

/* ==========================================================================
   2. ELEVATED LIQUID GLASS JEWEL ORB (Startkey Zirve Logo Vitrini)
   ========================================================================== */
.skz-dock-jewel-btn {
  flex: 1.1;
  position: relative;
  z-index: 2;
}

.skz-jewel-orb {
  width: 48px;
  height: 48px;
  margin-top: -20px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.45) 0%, rgba(200, 157, 86, 0.4) 35%, rgba(12, 16, 26, 0.95) 100%);
  border: 1.8px solid rgba(229, 196, 131, 0.85);
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(200, 157, 86, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  animation: skzJewelPulse 3s ease-in-out infinite alternate;
}

@keyframes skzJewelPulse {
  0% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(200, 157, 86, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.7); }
  100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 28px rgba(200, 157, 86, 0.7), inset 0 2px 3px rgba(255, 255, 255, 0.85); transform: translateY(-2px); }
}

.skz-jewel-orb:active {
  transform: scale(0.92) !important;
}

.skz-jewel-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.skz-dock-jewel-btn span {
  font-weight: 700;
  color: var(--skz-gold-light);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   3. LUXURY LIQUID GLASS INSTALL SHEET (ruucm/shadergradient & dashersw/liquid-glass-js)
   ========================================================================== */
.skz-pwa-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.skz-pwa-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.skz-liquid-sheet {
  width: 100%;
  max-width: 480px;
  border-radius: 36px 36px 0 0;
  
  /* Multi-Layer Refractive Glass */
  background: 
    linear-gradient(180deg, rgba(28, 33, 50, 0.88) 0%, rgba(13, 16, 26, 0.96) 100%);
  backdrop-filter: blur(40px) saturate(220%) contrast(108%);
  -webkit-backdrop-filter: blur(40px) saturate(220%) contrast(108%);
  
  border-top: 1.5px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  
  box-shadow: 
    0 -24px 64px rgba(0, 0, 0, 0.85),
    inset 0 2px 2px rgba(255, 255, 255, 0.45);
  
  padding: 16px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  text-align: center;
}

.skz-pwa-sheet-overlay.active .skz-liquid-sheet {
  transform: translateY(0);
}

.skz-sheet-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.skz-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   4. KRİSTAL NETLİĞİNDE STARTKEY ZİRVE LOGO VİTRİNİ
   ========================================================================== */
.skz-liquid-brand-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.skz-liquid-logo-plate {
  position: relative;
  width: 220px;
  height: 70px;
  border-radius: 20px;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.08) 100%),
    rgba(14, 18, 29, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid rgba(229, 196, 131, 0.45);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(200, 157, 86, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  overflow: hidden;
}

.skz-brand-logo-img {
  max-width: 180px;
  max-height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  position: relative;
  z-index: 2;
}

/* Liquid Light Sweep Shimmer across the Glass Plate */
.skz-logo-glass-sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  animation: skzLightSweep 3.5s infinite ease-in-out;
  pointer-events: none;
  z-index: 3;
}

@keyframes skzLightSweep {
  0%, 40% { left: -100%; }
  60%, 100% { left: 160%; }
}

.skz-sheet-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.skz-sheet-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   5. FROSTED GLASS FEATURE TILES (dashersw/liquid-glass-js)
   ========================================================================== */
.skz-sheet-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.skz-sheet-feature-tile {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(20, 24, 38, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skz-sheet-feature-tile:hover {
  border-color: rgba(200, 157, 86, 0.5);
  transform: translateY(-1px);
}

.skz-sheet-feature-tile svg {
  width: 20px;
  height: 20px;
  stroke: var(--skz-gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(200, 157, 86, 0.4));
}

.skz-sheet-feature-tile span {
  font-size: 12px;
  font-weight: 600;
  color: #f1f3f7;
  text-align: left;
}

/* ==========================================================================
   6. ACTIONS & CTA
   ========================================================================== */
.skz-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.skz-btn-install {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: linear-gradient(135deg, #dfb76c 0%, #c89d56 50%, #9a6d2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 10px 28px rgba(200, 157, 86, 0.45),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.3);
  color: #0c0f17;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.skz-btn-install:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.skz-ios-guide {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  text-align: left;
  display: none;
}

.skz-btn-dismiss {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.skz-btn-dismiss:hover {
  color: #fff;
}

/* Mobil Altta Menü İle Sayfa İçeriğinin Çakışmasını Önleyen Dolgu */
@media (max-width: 991px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
