/* ============================================
   MORTAL - MOBILE REDESIGN CSS
   Desktop versiyonuna dokunmadan sadece mobil
   ============================================ */

/* ===== DESKTOP - Mobil elementlerini gizle ===== */
@media (min-width: 992px) {
  .mobile-hero-overlay,
  .mobile-hero-orbs,
  .mobile-hero-content,
  .mobile-hero-scroll,
  .mobile-hero-swipe-hint,
  .mobile-story-section {
    display: none !important;
  }
}

/* ===== MOBILE ONLY STYLES (max-width: 991px) ===== */
@media (max-width: 991px) {

  /* ===== BASE ===== */
  html, body {
    overflow-x: hidden !important;
  }

  .snap-container {
    padding: 0;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ===== HERO SECTION ===== */
  .character-slider-section {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: block !important;
    position: relative !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #0a0620 !important;
  }

  .hero-container {
    display: none !important;
  }

  .mobile-hero-overlay {
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
      linear-gradient(to bottom,
        rgba(10, 6, 32, 0.3) 0%,
        rgba(10, 6, 32, 0.1) 30%,
        rgba(10, 6, 32, 0.2) 60%,
        rgba(10, 6, 32, 0.95) 100%
      ),
      radial-gradient(ellipse at 50% 0%, rgba(95, 120, 252, 0.2) 0%, transparent 60%) !important;
    z-index: 3;
    pointer-events: none;
  }

  .mobile-hero-content {
    position: absolute !important;
    bottom: 0; left: 0;
    width: 100%;
    padding: 0 1.5rem 4rem;
    z-index: 10;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mobile-hero-logo {
    width: 60px; height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 20px rgba(95, 120, 252, 0.5));
    animation: heroLogoPulse 3s ease-in-out infinite;
  }

  @keyframes heroLogoPulse {
    0%, 100% { filter: drop-shadow(0 4px 20px rgba(95, 120, 252, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 4px 30px rgba(95, 120, 252, 0.8)); transform: scale(1.05); }
  }

  .mobile-hero-title {
    font-family: 'Tondu', 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: normal;
    color: #fff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    animation: heroTitleGlow 4s ease-in-out infinite;
  }

  @keyframes heroTitleGlow {
    0%, 100% { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(95, 120, 252, 0.3); }
    50% { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 60px rgba(95, 120, 252, 0.5); }
  }

  .mobile-hero-dots {
    display: flex; justify-content: center;
    gap: 8px; margin-top: 1.5rem;
  }

  .mobile-hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none; padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-hero-dot.active {
    width: 24px; border-radius: 4px;
    background: #5f78fc;
    box-shadow: 0 0 15px rgba(95, 120, 252, 0.6);
  }

  .mobile-hero-scroll { display: none !important; }

  .mobile-hero-orbs {
    display: none !important;
  }

  .mobile-hero-orb {
    position: absolute; border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(95, 120, 252, 0.2);
    animation: orbFloat 6s ease-in-out infinite;
  }
  .mobile-hero-orb img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-hero-orb:nth-child(1) { display: none !important; }
  .mobile-hero-orb:nth-child(2) { display: none !important; }
  .mobile-hero-orb:nth-child(3) { display: none !important; }
  .mobile-hero-orb:nth-child(4) { display: none !important; }

  @keyframes orbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
  }

  /* Swipe Hint */
  .mobile-hero-swipe-hint {
    position: absolute; top: 50%; right: 1rem;
    transform: translateY(-50%); z-index: 20;
    display: flex; align-items: center; gap: 0.3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem; letter-spacing: 0.1em;
    writing-mode: vertical-rl; text-orientation: mixed;
    animation: swipeHint 2s ease-in-out infinite;
    opacity: 0; transition: opacity 0.3s ease;
  }
  .mobile-hero-swipe-hint.visible { opacity: 1; }
  @keyframes swipeHint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
  }

  #scrollToAboutBtn { display: none !important; }

  /* ===== ABOUT SECTION ===== */
  .about-section {
    padding: 2.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
  }

  .about-sticky {
    position: relative !important;
    top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }

  .about-bg-x {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
    border-radius: 1.2rem !important;
    background: rgba(30, 56, 148, 0.92) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 48px rgba(10, 18, 65, 0.3) !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .about-section .display-1 {
    font-size: 2.5rem !important;
    text-align: left !important;
    margin-bottom: 1.2rem !important;
    background: linear-gradient(135deg, #fff 0%, #a1d3ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    font-family: 'Tondu', 'Outfit', sans-serif !important;
  }

  .about-text {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin-bottom: 0.8rem !important;
  }

  .about-text-last {
    margin-bottom: 0 !important;
  }

  .badge-about-x {
    display: inline-block !important;
    vertical-align: baseline !important;
    padding: 0.1em 0.5em !important;
    font-size: 0.9em !important;
    background: rgba(95, 120, 252, 0.25) !important;
    border: 1px solid rgba(95, 120, 252, 0.4) !important;
    margin: 0 !important;
    white-space: nowrap !important;
    border-radius: 0.5rem !important;
  }

  /* ===== GALLERY SECTION ===== */
  .gallery-snap-section {
    padding: 2rem 0 !important;
  }

  .accord-gallery-wrapper {
    padding: 0 !important;
    width: 100%;
  }

  .accord-gallery {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding: 0 1rem !important;
    height: auto !important;
    scrollbar-width: none;
  }
  .accord-gallery::-webkit-scrollbar { display: none; }

  .accord-item {
    flex: 0 0 72vw !important;
    width: 72vw !important;
    min-width: 72vw !important;
    max-width: 72vw !important;
    height: 55vh !important;
    max-height: 400px !important;
    border-radius: 16px !important;
    scroll-snap-align: center;
    transition: none !important;
  }

  .accord-item.active {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
  }

  .accord-item-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%) !important;
  }

  .accord-item-caption {
    transform: none !important;
    bottom: 16px !important;
    left: 16px !important;
    font-size: 1rem !important;
    white-space: normal !important;
  }

  .accord-item:not(.active) .accord-item-caption {
    transform: none !important;
    bottom: 16px !important;
  }

  .gallery-cta-container {
    margin-top: 1.5rem !important;
    padding: 0 1rem !important;
  }

  .gallery-cta-text {
    flex-direction: column !important;
    gap: 0.5rem !important;
    font-size: 1rem !important;
  }

  .gallery-download-btn {
    padding: 0.5rem 1.4rem !important;
    font-size: 0.95rem !important;
  }

  /* ===== MORTAL MAGE SECTION ===== */
  .mortal-mage-section {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #0a0620 !important;
    align-items: stretch !important;
  }

  /* Hide desktop layout */
  .mortal-mage-content {
    display: none !important;
  }

  /* Mobile Story */
  .mobile-story-section {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .mobile-story-hero {
    position: relative !important;
    width: 100% !important;
    height: 55vh !important;
    min-height: 380px !important;
    max-height: 500px !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-story-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 30% center !important;
    filter: brightness(0.9);
  }

  .mobile-story-hero-overlay {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(
      to bottom,
      rgba(10, 6, 32, 0) 0%,
      rgba(10, 6, 32, 0.4) 50%,
      rgba(10, 6, 32, 0.95) 85%,
      rgba(10, 6, 32, 1) 100%
    ) !important;
    pointer-events: none;
  }

  .mobile-story-hero-title {
    position: absolute !important;
    bottom: 2rem; left: 0; width: 100%;
    text-align: center;
    font-family: 'Tondu', 'Outfit', sans-serif;
    font-size: 3rem; font-weight: normal; color: #fff;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(95, 120, 252, 0.7);
    letter-spacing: 0.05em;
    z-index: 2;
  }

  .mobile-story-blocks {
    padding: 0 1.5rem 3.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    background: #0a0620 !important;
    margin-top: -1px;
    z-index: 3;
    position: relative;
  }

  .mobile-story-block {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  }

  .mobile-story-block:active {
    border-color: rgba(95, 120, 252, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
  }

  .mobile-story-block p {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem; line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
  }
  .mobile-story-block.highlight {
    background: linear-gradient(135deg, rgba(95, 120, 252, 0.1) 0%, rgba(10, 6, 32, 0.5) 100%);
    border: 1px solid rgba(95, 120, 252, 0.3);
    text-align: center; justify-content: center;
    padding: 1.5rem;
  }
  
  .mobile-story-block.highlight p { font-size: 1.15rem; color: #fff; font-style: italic; }
  .mobile-story-block.highlight em {
    font-style: normal;
    background: linear-gradient(90deg, #a1d3ff 0%, #5f78fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-weight: 700;
    letter-spacing: 0.02em;
  }

  .mobile-story-block.final {
    background: linear-gradient(135deg, rgba(161, 211, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(161, 211, 255, 0.2);
  }
  .mobile-story-block.final p { color: rgba(255, 255, 255, 0.95); }

  /* ===== SLIDERS SECTION (footer container on mobile) ===== */
  .sliders-snap-section {
    padding: 0 !important;
    gap: 0 !important;
    justify-content: flex-end !important;
  }

  .horizontal-slider-outer {
    display: none !important;
  }

  /* ===== FOOTER ===== */
  .site-footer {
    background: rgba(42, 79, 217, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
  }

  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.5rem 1.2rem !important;
    gap: 1rem !important;
  }

  .footer-logo { justify-content: center; margin-bottom: 0.3rem; }
  .footer-logo-text { font-size: 1.3rem !important; }

  .footer-links {
    flex-wrap: wrap; justify-content: center;
    gap: 0.4rem; width: 100%;
  }
  .footer-links a { font-size: 0.9rem !important; padding: 0.35rem 0.7rem !important; }

  .footer-social { justify-content: center; gap: 0.5rem; }
  .footer-x-link {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.9rem !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
  }

  /* ===== HAMBURGER & MENU ===== */
  .floating-hamburger {
    top: 1.5rem !important; right: 1.5rem !important;
    width: 54px !important; height: 54px !important;
    background: rgba(26, 18, 64, 0.95) !important;
    border: 1.5px solid rgba(95, 120, 252, 0.5) !important;
    box-shadow: 0 8px 30px rgba(26, 18, 64, 0.4) !important;
    z-index: 9999 !important;
  }
  .hamburger-icon { width: 26px !important; gap: 5px !important; }
  .hamburger-icon span { height: 3px !important; }

  .floating-menu {
    top: 5rem !important; right: 1.5rem !important; left: 1.5rem !important;
    width: auto !important; min-width: auto !important;
    padding: 1.5rem !important; border-radius: 1.2rem !important;
    background: rgba(26, 18, 64, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 60px rgba(26, 18, 64, 0.5) !important;
    max-height: calc(100vh - 7rem) !important;
    overflow-y: auto !important;
  }
  .floating-menu a {
    font-size: 1.1rem !important; padding: 0.8rem 1rem !important;
    border-radius: 0.8rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .floating-menu a:last-child { border-bottom: none !important; }
  .floating-menu a:hover,
  .floating-menu a:active { background: rgba(95, 120, 252, 0.2) !important; }

  /* ===== TOUCH FEEDBACK ===== */
  @media (hover: none) and (pointer: coarse) {
    .floating-hamburger:active { transform: scale(0.92) !important; }
    .floating-menu a:active { background: rgba(95, 120, 252, 0.3) !important; }
    .footer-links a:active, .footer-x-link:active { background: rgba(95, 120, 252, 0.3) !important; }
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  .mobile-hero-title { font-size: 2.8rem !important; }
  .mobile-hero-logo { width: 50px !important; height: 50px !important; }
  .mobile-hero-content { padding: 0 1rem 3.5rem 1rem !important; }

  .mobile-hero-orb:nth-child(1) { width: 50px !important; height: 50px !important; }
  .mobile-hero-orb:nth-child(2) { width: 35px !important; height: 35px !important; }
  .mobile-hero-orb:nth-child(3) { width: 28px !important; height: 28px !important; }
  .mobile-hero-orb:nth-child(4) { width: 40px !important; height: 40px !important; }

  .about-sticky { padding: 0 0.75rem !important; }
  .about-bg-x { padding: 1.5rem 1.2rem !important; }
  .about-section .display-1 { font-size: 2rem !important; }
  .about-text { font-size: 0.95rem !important; line-height: 1.65 !important; text-align: left !important; }

  .accord-item {
    flex: 0 0 80vw !important; width: 80vw !important;
    min-width: 80vw !important; max-width: 80vw !important;
    height: 50vh !important; max-height: 350px !important;
  }

  .mobile-story-hero-title { font-size: 2.4rem !important; bottom: 1.5rem !important; }
  .mobile-story-block p { font-size: 0.95rem !important; }
  .mobile-story-hero { height: 45vh !important; min-height: 320px !important; max-height: 400px !important; }
  .mobile-story-blocks { padding: 0 1rem 2.5rem !important; gap: 1rem !important; }
  .mobile-story-block { padding: 1.25rem !important; }

  .floating-hamburger { top: 1rem !important; right: 1rem !important; width: 48px !important; height: 48px !important; }
  .hamburger-icon { width: 22px !important; gap: 4px !important; }
  .hamburger-icon span { height: 2.5px !important; }

  .floating-menu { top: 4.5rem !important; right: 0.75rem !important; left: 0.75rem !important; padding: 1.2rem !important; }
  .floating-menu a { font-size: 1rem !important; padding: 0.7rem 0.9rem !important; }

  .footer-inner { padding: 1.2rem 0.8rem !important; }
  .footer-links a { font-size: 0.85rem !important; padding: 0.3rem 0.5rem !important; }
  .footer-x-link { font-size: 0.85rem !important; padding: 0.35rem 0.7rem !important; }
}

/* ===== VERY SMALL (max-width: 360px) ===== */
@media (max-width: 360px) {
  .mobile-hero-title { font-size: 2.3rem !important; }
  .mobile-hero-logo { width: 45px !important; height: 45px !important; }
  .mobile-hero-orb { display: none !important; }

  .about-section .display-1 { font-size: 1.8rem !important; }
  .about-sticky { padding: 0 0.5rem !important; }
  .about-bg-x { padding: 1.5rem 1rem !important; }

  .accord-item {
    flex: 0 0 85vw !important; width: 85vw !important;
    min-width: 85vw !important; max-width: 85vw !important;
    height: 45vh !important; max-height: 300px !important;
  }

  .mobile-story-hero-title { font-size: 1.7rem !important; }
  .mortal-mage-title { font-size: 1.5rem !important; }
}

/* ===== LANDSCAPE ===== */
@media (max-width: 991px) and (orientation: landscape) {
  .character-slider-section { min-height: 100vh !important; }

  .mobile-hero-content {
    padding: 0 2rem 2rem 2rem !important;
    flex-direction: row !important; flex-wrap: wrap !important;
    justify-content: center !important; gap: 1rem !important;
  }
  .mobile-hero-logo { width: 40px !important; height: 40px !important; margin-bottom: 0 !important; }
  .mobile-hero-title { font-size: 2.5rem !important; margin: 0 !important; }
  .mobile-hero-dots { margin-top: 0.5rem !important; }
  .mobile-hero-orb { opacity: 0.4 !important; }

  .accord-item {
    flex: 0 0 50vw !important; width: 50vw !important;
    min-width: 50vw !important; max-width: 50vw !important;
    height: 60vh !important; max-height: 320px !important;
  }
}

/* ===== REDUCED MOTION ===== */
@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #scrollToAboutBtn { animation: none !important; }
}
