/* Mobile Responsive Styles for Vista Aero Simulator */

/* Tablets and smaller screens (768px and below) */
@media screen and (max-width: 768px) {
  /* Hide widget panel on tablets and smaller */
  #widget-panel {
    display: none !important;
  }

  /* Adjust desktop area to use full width */
  .desktop {
    right: 0;
  }

  /* Adjust window sizes for smaller screens */
  .window {
    max-width: 90vw !important;
    max-height: 80vh !important;
  }

  /* Adjust taskbar for touch */
  .taskbar {
    height: 40px;
  }

  .taskbar-item {
    min-width: 80px;
    height: 32px;
    font-size: 10px;
  }

  .taskbar-item img {
    width: 14px;
    height: 14px;
  }

  /* Adjust icon sizes for better touch targets */
  .icon {
    width: 70px;
  }

  .icon-img {
    width: 28px;
    height: 28px;
  }
}

/* Mobile phones (480px and below) */
@media screen and (max-width: 480px) {
  /* Hide widget panel on mobile */
  #widget-panel {
    display: none !important;
  }

  /* Adjust desktop padding */
  .desktop {
    padding: 5px;
    right: 0;
  }

  /* Stack windows smaller on mobile */
  .window {
    min-width: 95vw !important;
    width: 95vw !important;
    max-height: 70vh !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Adjust window positioning for mobile */
  .window {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Smaller taskbar on mobile */
  .taskbar {
    height: 45px;
    padding: 0 5px;
  }

  .start-button {
    height: 40px;
    margin-right: 5px;
  }

  .taskbar-buttons {
    gap: 2px;
    padding-left: 2px;
  }

  .taskbar-item {
    min-width: 70px;
    max-width: 120px;
    height: 35px;
    font-size: 9px;
    padding: 0 4px;
  }

  .taskbar-item img {
    width: 12px;
    height: 12px;
  }

  .taskbar .taskbar-clock {
    font-size: 10px;
    padding: 0 5px;
  }

  /* Larger touch targets for icons */
  .icon {
    width: 60px;
  }

  .icon-img {
    width: 24px;
    height: 24px;
  }

  /* Adjust window controls for touch */
  .window-control {
    width: 18px;
    height: 18px;
    padding: 6px;
  }

  .window-control i {
    font-size: 10px;
  }

  /* Adjust start menu for mobile */
  #start-menu {
    width: 90vw;
    max-height: auto;
    overflow-y: visible;
    padding: 5px;
  }

  #start-menu .top-section {
    margin-bottom: -10px;
  }

  #start-menu .user-image {
    width: 30px;
    height: 30px;
    top: -22px;
  }

  #start-menu .user-frame {
    width: 35px;
    height: 35px;
    top: -25px;
  }

  #start-menu .content {
    gap: 5px;
  }

  #start-menu .programs {
    padding: 3px;
  }

  #start-menu .categories {
    padding: 3px 0;
  }

  .start-menu-item {
    padding: 4px 6px;
    font-size: 10px;
  }

  .start-menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }

  #start-menu .bottom-section {
    margin-top: 5px;
    gap: 5px;
  }

  #start-menu .search-bar {
    width: 40%;
    padding: 3px;
    margin-bottom: 2px;
    font-size: 10px;
  }

  #start-menu .bottom-buttons {
    gap: 2px;
  }

  #start-menu .bottom-buttons .start-menu-item {
    padding: 3px;
    font-size: 9px;
  }

  /* Adjust explorer toolbar */
  .explorer-toolbar {
    flex-wrap: wrap;
    gap: 3px;
  }

  .explorer-toolbar button img {
    width: 20px;
    height: 20px;
  }

  .explorer-toolbar .search-bar {
    flex: 1 1 100%;
    min-width: 100%;
  }

  #personalize-window .personalize-preview-grid {
    grid-template-columns: 1fr;
  }

  #personalize-window .personalize-preview img {
    height: 96px;
  }

  #personalize-window .personalize-actions {
    flex-wrap: wrap;
  }

  /* Adjust media player controls */
  #mediaplayer-window .control-button {
    width: 40px;
    height: 40px;
  }

  #mediaplayer-window .control-button.play {
    width: 50px;
    height: 50px;
  }

  #mediaplayer-window .volume-control {
    width: 100%;
    gap: 6px;
    padding-top: 6px;
  }

  #mediaplayer-window .volume-control label {
    font-size: 10px;
  }

  /* Adjust content padding */
  .window-content {
    padding: 5px;
  }

  /* Explorer grid adjustment */
  .explorer-content {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 5px;
    padding: 5px;
  }

  .explorer-item-icon {
    width: 40px;
    height: 40px;
  }
}

/* Extra small devices (320px and below) */
@media screen and (max-width: 320px) {
  .window {
    min-width: 100vw !important;
    width: 100vw !important;
  }

  .icon {
    width: 50px;
  }

  .icon-img {
    width: 20px;
    height: 20px;
  }

  .taskbar-item {
    min-width: 60px;
    font-size: 8px;
    padding: 0 2px;
  }

  .explorer-content {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 3px;
  }
}
