/**
 * CeBo Artist Website - Responsive Styles
 * Mobile-first approach
 */

/* ============================================
   HAMBURGER MENU STYLES
   ============================================ */

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #ff4d8d, #7c3aed);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-content {
  width: 90%;
  max-width: 400px;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: scale(1);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
  border-color: rgba(233, 69, 96, 0.5);
}

.mobile-menu-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   MOBILE WIDTH FIX - %100 EKRANA OTUR
   ============================================ */

/* Mobilde tam ekran oturması için */
@media (max-width: 768px) {

  /* HTML ve BODY - %100 genişlik garanti */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Tüm ana wrapper'lar - scale yok, %100 genişlik */
  .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    transform: none !important;
    scale: none !important;
  }

  /* Section'lar - tam genişlik */
  section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }

  /* Disable particle background on mobile (too heavy) */
  .particles {
    display: none !important;
  }

  /* Reduce backdrop-filter blur (performance killer on mobile) */
  .glass {
    backdrop-filter: blur(10px) !important;
  }

  .glass-intense {
    backdrop-filter: blur(12px) !important;
  }

  /* Disable gradient animation on mobile */
  .gradText {
    animation: none !important;
    background: linear-gradient(135deg, #ff4d8d, #9c27b0, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Simplify music visualizer animation */
  .music-visualizer .bar {
    animation: none !important;
  }

  /* Reduce pulse animation frequency */
  .status-dot {
    animation: pulse 3s infinite !important;
  }

  /* Disable hover transforms on mobile */
  .stat-card:hover {
    transform: none !important;
  }

  .btn:hover {
    transform: none !important;
  }

  /* Add hardware acceleration for key elements */
  .glass, .glass-intense, .stat-card, .btn {
    transform: translateZ(0);
    will-change: auto;
  }
}

/* ============================================
   MOBILE STYLES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {

  /* Navigation */
  #mainNav {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 12px 16px !important;
  }
  
  #mainNav h1 {
    font-size: 22px !important;
  }
  
  .music-visualizer-nav {
    display: none !important;
  }
  
  /* Live badge */
  #mainNav .glass.rounded-full {
    padding: 6px 10px !important;
  }
  
  #mainNav .glass.rounded-full .text-sm {
    font-size: 9px !important;
  }
  
  #mainNav .glass.rounded-full .text-xs {
    display: none !important;
  }
  
  #mainNav .status-dot {
    width: 8px !important;
    height: 8px !important;
  }
  
  /* Language selector */
  .language-button {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  
  .language-dropdown {
    right: 0 !important;
    min-width: 140px !important;
  }
  
  /* Hero Section */
  section.min-h-screen {
    padding-top: 80px !important;
  }
  
  section.min-h-screen h1 {
    font-size: 48px !important;
  }
  
  section.min-h-screen p {
    font-size: 16px !important;
  }
  
  .glass-intense.p-8 {
    padding: 20px !important;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 20px !important;
    font-size: 13px !important;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .stat-card {
    padding: 16px !important;
    min-height: auto !important;
  }
  
  .stat-value {
    font-size: 24px !important;
  }
  
  /* Discography */
  #music .grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Gallery */
  #gallery .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* Biography */
  #biography .flex-col {
    flex-direction: column !important;
  }
  
  #biography .w-full {
    width: 100% !important;
  }
  
  /* Contact */
  #contact .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Footer */
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  /* Music Player */
  .music-player {
    width: calc(100vw - 24px) !important;
    bottom: 12px !important;
  }
  
  .floating-player-toggle {
    width: 50px !important;
    height: 50px !important;
    bottom: 12px !important;
    left: 12px !important;
  }
  
  .floating-chat {
    width: 50px !important;
    height: 50px !important;
    bottom: 12px !important;
    right: 12px !important;
    font-size: 20px !important;
  }
}

/* ============================================
   TABLET STYLES (768px - 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Discography */
  #music .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Gallery */
  #gallery .grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  /* Discography */
  #music .grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  /* Gallery */
  #gallery .grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
