/* Mobile Styles for Gaming Portal Theme */

@media (max-width: 767px) {
  /* General Layout */
  body {
    background-color: #f5f6fa;
  }

  .container {
    padding: 0 15px;
  }

  /* Header Styles */
  .site-header {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* Reduce spacing after header */
  .site-content {
    padding-top: 5px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .site-branding {
    display: flex;
    align-items: center;
  }

  .site-logo {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }

  .site-title {
    font-size: 12px;
    line-height: 1;
  }

  .site-title span {
    font-size: 10px;
  }

  /* Style circular category buttons */
  .home-button {
    display: none; /* Hide home button */
  }

  .btn-new-games {
    display: none; /* Hide new games button on mobile */
  }

  .btn-categories {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    background-color: #30c9c9;
  }

  .btn-categories span {
    display: none; /* Hide text, show only icon */
  }

  /* Mobile search */
  .search-form {
    flex-basis: auto;
    margin-top: 0;
    margin-left: auto;
    max-width: 200px;
  }

  .search-input {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
  }

  /* Hero Carousel - Reduced margin */
  .hero-carousel {
    height: 220px;
    margin: 5px 0 15px;
    border-radius: 15px;
  }

  .hero-slide-content {
    max-width: 100%;
    padding: 15px;
    margin: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    border-radius: 0 0 15px 15px;
  }

  .hero-slide-title {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .hero-slide-subtitle {
    display: none;
  }

  .hero-slide-button {
    display: none;
  }

  .hero-carousel-arrows {
    display: none;
  }

  .hero-carousel-dots {
    bottom: 10px;
  }

  /* Category Buttons - Reduced margin */
  .game-categories {
    margin: 10px 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .category-btn {
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 20px;
    margin-right: 8px;
    white-space: nowrap;
  }

  .category-btn.new-games-btn {
    background: #ff4d7d;
  }

  .category-btn.trending-btn {
    background: linear-gradient(to right, #8c52ff, #7b68ee);
  }

  /* Game Sections */
  .section-title-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 18px !important;
    padding-left: 15px;
    margin-bottom: 15px !important;
  }

  .section-title::before {
    height: 18px;
    width: 4px;
  }

  .view-all-link {
    display: none;
  }

  /* Game Cards */
  .games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
  }

  .game-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
  }

  .game-thumbnail-wrapper {
    aspect-ratio: 1 / 1;
  }

  .game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    border-radius: 0 0 15px 15px;
  }

  .game-title {
    font-size: 14px;
    color: white;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .game-summary {
    display: none;
  }

  /* All Games Section */
  .all-games {
    margin-top: 20px; /* Reduced from 30px */
  }

  .all-games .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Filter buttons */
  .filter-buttons {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 15px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    background: white;
    color: #333;
    border: 1px solid #e6e1f9;
    margin-right: 8px;
    white-space: nowrap;
  }

  .filter-button.active {
    background: #ff4d7d;
    color: white;
    border-color: #ff4d7d;
  }

  /* Hide pagination on mobile */
  .pagination {
    display: none;
  }

  /* Hide sections we don't need on mobile */
  .featured-games,
  .categories-section,
  .ad-space,
  .side-ad-space {
    display: none;
  }
}
