/* Responsive styles for Ascend 2 Website */

/* Base Mobile Styles */
@media (max-width: 991px) {
  body {
    overflow-x: hidden;
  }
  
  /* Header adjustments */
  .pixarts-header {
    min-width: initial;
    height: auto;
    padding-bottom: 30px;
    background-position: top center;
  }
  
  .pixarts-header video {
    display: none;
  }
  
  /* Navigation */
  .pixarts-container {
    width: 100%;
    padding: 0 15px;
  }
  
  .pixarts-header .pixarts-nav {
    flex-direction: column;
    height: auto;
    margin-top: 60px;
  }
  
  .pixarts-header .pixarts-nav > .logo-head {
    display: none;
    margin: 10px auto;
    position: relative;
    order: -1;
  }
  
  .pixarts-header .pixarts-nav ul {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
  
  /* Mobile burger menu */
  .mobile-menu-toggle {
    display: block !important;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    background: rgba(120, 30, 30, 0.9);
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle:hover {
    background: rgba(150, 40, 40, 1);
  }
  
  .burger-icon {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: background 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  .burger-icon::before,
  .burger-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
  }
  
  .burger-icon::before {
    top: -8px;
  }
  
  .burger-icon::after {
    top: 8px;
  }
  
  .mobile-menu-toggle.active .burger-icon {
    background: transparent;
  }
  
  .mobile-menu-toggle.active .burger-icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .mobile-menu-toggle.active .burger-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }
  
  /* Mobile menu panel */
  .mobile-menu-panel {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(33, 5, 5, 0.95);
    z-index: 9998;
    padding: 70px 20px 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    visibility: hidden;
  }
  
  .mobile-menu-panel.active {
    right: 0;
    visibility: visible;
  }
  
  .mobile-menu-panel ul {
    margin-bottom: 20px;
  }
  
  .mobile-menu-panel li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-menu-panel li a {
    color: #fff;
    display: block;
    padding: 12px 10px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-panel li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    padding-left: 15px;
  }
  
  /* Statistics tab in mobile menu */
  .mobile-stats-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
  }
  
  .mobile-stats-container h3 {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .mobile-stats-container table {
    width: 100%;
  }
  
  .mobile-stats-container th, 
  .mobile-stats-container td {
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .mobile-stats-container td {
    text-align: right;
    font-weight: bold;
  }
  
  /* Language selector */
  .flags-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    max-width: 100px;
    overflow-x: auto;
  }
  
  /* Mobile menu-specific styles */
  .mobile-stats-container table {
    background: transparent !important;
  }
  
  .mobile-stats-container table th {
    font-size: 12px;
    background-image: none !important;
    background-color: transparent !important;
  }
  
  .mobile-stats-container table td {
    font-size: 13px;
    font-weight: bold;
    background-image: none !important;
    background-color: transparent !important;
  }
  
  /* Mobile Header */
  .pixarts-header .fake-logo,
  .pixarts-header .fake-pixarts {
    display: none;
  }
  
  /* Column layout */
  .pixarts-body .pixarts-container.main {
    flex-direction: column;
  }
  
  .pixarts-body .pixarts-container .left-col,
  .pixarts-body .pixarts-container .center-col,
  .pixarts-body .pixarts-container .right-col {
    width: 100%;
    margin: 0 0 20px 0;
  }

  .pixarts-body .pixarts-container .center-col {
    max-width: 90vw;
    min-width: initial;
  }
  
  /* Banner adjustments */
  .center-col .banner-main {
    display: none;
    height: auto;
  }
  
  .slider {
    height: auto;
  }
  
  .slider-wrapper {
    height: auto;
  }
  
  .slide {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  /* Make all images responsive */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Improve form elements on mobile */
  input, select, textarea {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Footer adjustments */
  .pixarts-footer {
    height: auto;
  }
  
  .pixarts-footer .foot-menu ul {
    flex-direction: column;
    align-items: center;
  }
  
  .pixarts-footer .foot-menu ul li {
    margin: 5px 0;
  }
  
  .pixarts-footer .foot-menu .logo-head {
    display: none;
  }
  
  /* Forms and boxes */
  .pixarts-body .pixarts-container .box-sm-v1 .inner.login-box form,
  .center-col .formbox .register,
  .center-col .formbox .default {
    width: 100%;
  }
  
  /* Tables and lists */
  .pixarts-body .pixarts-container .box-sm-v1 .inner.rank .p-tbody .lane,
  .center-col .ranking-big .lane {
    flex-wrap: wrap;
  }
  
  /* Make tables responsive */
  table {
    width: 100%;
  }
  
  /* Mobile login form adjustments */
  .pixarts-body .pixarts-container .box-sm-v1 .inner.login-box {
    padding: 15px;
  }
  
  .pixarts-body .pixarts-container .box-sm-v1 .inner.login-box form label {
    width: 100%;
  }
  
  .pixarts-body .pixarts-container .box-sm-v1 .inner.login-box form input {
    width: 100%;
  }
  
  .g-recaptcha {
    transform-origin: 0 0;
    transform: scale(0.85);
  }
  
  /* Button styles for mobile */
  button, .button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Fix for bootstrap elements */
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  /* News feed adjustments */
  .center-col .newsfeed .news-single .innertext img {
    height: auto !important;
    max-width: 100% !important;
  }
}

/* Small phone adjustments */
@media (max-width: 576px) {
  .pixarts-header .pixarts-nav > .logo-head {
    width: 120px;
  }
  
  .center-col .newsfeed .news-single .titlebar {
    flex-direction: column;
  }
  
  .center-col .newsfeed .news-single .titlebar > span {
    margin: 5px 0;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .pixarts-header {
    height: 400px;
  }
}

/* Desktop menu shown above this breakpoint */
@media (min-width: 992px) {
  .mobile-menu-toggle, 
  .mobile-menu-panel,
  .mobile-stats-container {
    display: none !important;
  }
}

/* Overlay for mobile menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9997;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-overlay.active {
  display: block;
} 