/* ============================================
   AngelicMU Mobile CSS - Clean & Modern
   Optimized for iPhone 14 Pro Max & iPhone X
   ============================================ */

/* ===== Base Mobile & Tablet Styles ===== */
@media screen and (max-width: 1024px) {
  
  /* Reset & Base */
  * {
    box-sizing: border-box;
  }
  
  html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* ===== Top Navbar ===== */
  .top-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 204, 0, 0.3) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  }
  
  .top-navbar::before {
    display: none !important;
  }
  
  .navbar-left {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  .navbar-left a {
    display: none !important;
  }
  
  .navbar-right {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  .navbar-right a,
  .navbar-right .btn-login,
  .navbar-right .btn-register,
  .navbar-right .discord-button {
    display: none !important;
  }
  
  .nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 10px 8px !important;
    z-index: 10001 !important;
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-right: 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .nav-toggle span {
    width: 28px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
  }
  
  /* Hamburger animation when menu is open */
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Menu Block - Slide from left to right */
  .menuBlock {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: linear-gradient(180deg, rgba(20, 14, 30, 0.98), rgba(10, 5, 20, 0.98));
    backdrop-filter: blur(12px);
    z-index: 10002;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.8);
    display: block !important;
    visibility: hidden;
  }
  
  body.nav-open .menuBlock {
    visibility: visible;
  }
  
  body.nav-open .menuBlock {
    transform: translateX(0);
  }
  
  /* Overlay when menu is open */
  body.nav-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  body.nav-open {
    overflow: hidden;
  }
  
  /* Menu Content Styling */
  .menuBlock .menuContent {
    padding: 20px 0;
  }
  
  .menuBlock .menuContent ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .menuBlock .menuContent ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 204, 0, 0.1);
  }
  
  .menuBlock .menuContent ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
  }
  
  .menuBlock .menuContent ul li a:hover,
  .menuBlock .menuContent ul li a.active {
    background: rgba(255, 204, 0, 0.1);
    border-left-color: #ffcc00;
    color: #ffcc00;
  }
  
  .menuBlock .menuContent ul li a i {
    width: 20px;
    text-align: center;
    font-size: 18px;
  }
  
  .menuBlock .menuContent ul li.menu-divider {
    height: 1px;
    background: rgba(255, 204, 0, 0.2);
    margin: 10px 0;
    border: none;
  }
  
  /* Menu Actions (Buttons at bottom) */
  .menuBlock .menu-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
  }
  
  .menuBlock .menu-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
  }
  
  .menuBlock .menu-action-btn.register-btn {
    background: linear-gradient(135deg, #ff6600, #ffcc00);
    color: #000;
  }
  
  .menuBlock .menu-action-btn.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.3);
  }
  
  .menuBlock .menu-action-btn.marketplace-btn {
    background: linear-gradient(135deg, #5865F2, #3b3f93);
    color: #fff;
  }
  
  .menuBlock .menu-action-btn.account-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.3);
  }
  
  .menuBlock .menu-action-btn.discord-btn {
    background: linear-gradient(135deg, #5865F2, #3b3f93);
    color: #fff;
  }
  
  .menuBlock .menu-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* Logo in menu */
  .menuBlock .logo-box {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
  }
  
  .menuBlock .logo-box img {
    max-width: 180px;
    height: auto;
  }
  
  /* Download button in menu */
  .menuBlock .download-btn {
    margin: 15px 20px;
    width: calc(100% - 40px);
    text-align: center;
  }
  
  .btn-login,
  .btn-register {
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: nowrap;
  }
  
  .discord-button {
    font-size: 11px !important;
    padding: 8px 10px !important;
    margin-bottom: 0 !important;
  }
  
  /* ===== Hero Logo Section ===== */
  .hero-brand-wrap {
    width: 100%;
    padding: 80px 20px 10px;
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-logo-text {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }
  
  .hero-logo-tag {
    font-size: 11px !important;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 8px;
  }
  
  .hero-logo-title {
    font-size: clamp(24px, 8vw, 32px) !important;
    line-height: 1.2 !important;
    margin: 10px 0 !important;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .hero-logo-subline {
    font-size: 12px !important;
    margin-top: 10px;
    line-height: 1.4;
  }
  
  /* ===== Bonus Banner ===== */
  .bonus-banner {
    width: calc(100% - 30px);
    max-width: 100%;
    margin: 8px auto 15px;
    padding: 12px 15px !important;
    font-size: 13px !important;
    line-height: 1.4;
    text-align: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  .bonus-banner .bonus-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
  }
  
  .bonus-banner b {
    font-size: 12px;
    display: inline;
    vertical-align: middle;
    flex: 1;
  }
  
  /* ===== Hype Text ===== */
  .hype-text {
    width: calc(100% - 30px);
    max-width: 100%;
    margin: 15px auto;
    padding: 0 15px;
    font-size: 12px !important;
    line-height: 1.5;
    text-align: center;
  }
  
  /* ===== Download & Register Buttons ===== */
  .homeButton {
    width: calc(100% - 30px);
    max-width: 100%;
    margin: 25px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .homeButton .download,
  .homeButton .register {
    width: 100% !important;
    max-width: 100%;
    padding: 18px 24px !important;
    font-size: 16px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-image: none !important;
    background: linear-gradient(135deg, #ff4b4b, #ff6b6b) !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  .homeButton .register {
    background: linear-gradient(135deg, #4b8aff, #6bb6ff) !important;
  }
  
  .homeButton .download i,
  .homeButton .register i {
    font-size: 16px !important;
    line-height: 1.4;
    display: block;
    width: 100%;
  }
  
  .homeButton .download i b,
  .homeButton .register i b {
    font-size: 18px !important;
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
  }
  
  .homeButton .download i span,
  .homeButton .register i span {
    font-size: 12px !important;
    display: block;
    margin-top: 4px;
    opacity: 0.9;
  }
  
  /* ===== Side Navbar (Hide on Mobile) ===== */
  .side-navbar {
    display: none !important;
  }
  
  /* ===== Feature Sidebar ===== */
  .hero-feature-wrapper {
    width: 100%;
    padding: 20px 15px;
    margin: 0 auto;
  }
  
  .feature-sidebar {
    width: 100% !important;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
  .feature-box {
    width: 100% !important;
    margin-bottom: 15px;
    padding: 15px !important;
  }
  
  .feature-title {
    font-size: 16px !important;
    margin-bottom: 10px;
  }
  
  .feature-title .icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }
  
  .feature-text {
    font-size: 13px !important;
    line-height: 1.5;
  }
  
  /* ===== Home Block ===== */
  .homeBlock {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
  }
  
  /* ===== Container Adjustments ===== */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* ===== Fullpage Sections ===== */
  .section {
    padding: 20px 15px !important;
  }
  
  .fp-tableCell {
    padding: 20px 15px !important;
  }
  
  /* ===== Menu Block (Side Navigation) ===== */
  /* Menu Block styles are defined above in the Top Navbar section */
  
  /* ===== Right Info Block ===== */
  .rightInfo {
    display: none !important;
  }
  
  /* ===== Scroll Indicators ===== */
  .scroll {
    display: none !important;
  }
  
}

/* ===== iPhone X & Smaller (375px and below) ===== */
@media screen and (max-width: 375px) {
  
  .hero-logo-title {
    font-size: 22px !important;
  }
  
  .hero-logo-subline {
    font-size: 11px !important;
  }
  
  .bonus-banner {
    font-size: 11px !important;
    padding: 10px 12px !important;
  }
  
  .hype-text {
    font-size: 11px !important;
  }
  
  .homeButton .download,
  .homeButton .register {
    padding: 16px 20px !important;
    font-size: 15px !important;
    min-height: 75px;
    background-image: none !important;
    background: linear-gradient(135deg, #ff4b4b, #ff6b6b) !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  .homeButton .register {
    background: linear-gradient(135deg, #4b8aff, #6bb6ff) !important;
  }
  
  .homeButton .download i b,
  .homeButton .register i b {
    font-size: 17px !important;
  }
  
  .homeButton .download i span,
  .homeButton .register i span {
    font-size: 11px !important;
  }
  
  .feature-box {
    padding: 12px !important;
  }
  
  .feature-title {
    font-size: 15px !important;
  }
  
  .feature-text {
    font-size: 12px !important;
  }
  
}

/* ===== iPhone 14 Pro Max & Larger (428px and above) ===== */
@media screen and (min-width: 376px) and (max-width: 428px) {
  
  .hero-logo-title {
    font-size: clamp(26px, 7vw, 30px) !important;
  }
  
  .bonus-banner {
    font-size: 12px !important;
  }
  
  .homeButton .download,
  .homeButton .register {
    padding: 17px 22px !important;
    font-size: 16px !important;
    min-height: 78px;
  }
  
}

/* ===== Tablets (769px to 1024px) ===== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  
  .hero-brand-wrap {
    padding: 80px 20px 15px;
  }
  
  .bonus-banner {
    margin: 10px auto 20px;
    font-size: 14px !important;
  }
  
  .homeButton {
    flex-direction: row;
    gap: 20px;
    max-width: 600px;
  }
  
  .homeButton .download,
  .homeButton .register {
    flex: 1;
    padding: 20px 28px !important;
    font-size: 17px !important;
    min-height: 90px;
    background-image: none !important;
    background: linear-gradient(135deg, #ff4b4b, #ff6b6b) !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  .homeButton .register {
    background: linear-gradient(135deg, #4b8aff, #6bb6ff) !important;
  }
  
  .homeButton .download i b,
  .homeButton .register i b {
    font-size: 20px !important;
  }
  
  .homeButton .download i span,
  .homeButton .register i span {
    font-size: 13px !important;
  }
  
}

/* ===== Landscape Orientation ===== */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  
  .top-navbar {
    height: 50px;
  }
  
  .hero-brand-wrap {
    padding-top: 60px;
    padding-bottom: 20px;
  }
  
  .hero-logo-title {
    font-size: clamp(20px, 5vw, 26px) !important;
  }
  
  .homeButton {
    flex-direction: row;
    gap: 12px;
  }
  
  .homeButton .download,
  .homeButton .register {
    flex: 1;
    min-height: 60px;
    background-image: none !important;
    background: linear-gradient(135deg, #ff4b4b, #ff6b6b) !important;
    border: none !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  .homeButton .register {
    background: linear-gradient(135deg, #4b8aff, #6bb6ff) !important;
  }
  
}

/* ===== Touch Optimizations ===== */
@media screen and (max-width: 1024px) {
  
  /* Larger touch targets */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Smooth scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent text size adjustment on orientation change */
  html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
}
