/* Responsive Design for Game284 Template */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .nav-container {
    padding: 0 2rem;
  }
  
  .main-content {
    max-width: 1200px;
    margin: 70px auto 0;
    padding: 0 2rem 80px;
  }
  
  .featured-banner {
    height: 400px;
    border-radius: 20px;
    margin: 0 0 3rem 0;
  }
  
  .banner-title {
    font-size: 3rem;
  }
  
  .banner-desc {
    font-size: 1.2rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .games-horizontal {
    gap: 1.5rem;
  }
  
  .game-item {
    min-width: 250px;
  }
  
  .cta-section {
    margin: 4rem 0;
    padding: 3rem;
  }
  
  .cta-title {
    font-size: 2.5rem;
  }
  
  .cta-desc {
    font-size: 1.3rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .main-content {
    padding: 0 1.5rem 80px;
  }
  
  .featured-banner {
    height: 350px;
    border-radius: 15px;
  }
  
  .banner-title {
    font-size: 2.5rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-center {
    display: block;
    max-width: 300px;
  }
  
  .main-content {
    padding: 0 1rem 80px;
  }
  
  .featured-banner {
    height: 300px;
    border-radius: 15px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-desc {
    font-size: 1rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .games-horizontal {
    gap: 1rem;
  }
  
  .game-item {
    min-width: 220px;
  }
  
  .cta-section {
    margin: 3rem 1rem;
    padding: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: row;
    gap: 1rem;
  }
  
  .cta-btn {
    width: auto;
    max-width: none;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
  
  .footer-desc {
    grid-column: 1 / -1;
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .bottom-nav{
    display: flex;
  }
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-center {
    display: none;
  }
  
  .main-content {
    padding: 0 1rem 80px;
  }
  
  .featured-banner {
    height: 250px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
  }
  
  .banner-overlay {
    padding: 1.5rem;
  }
  
  .banner-title {
    font-size: 1.8rem;
  }
  
  .banner-desc {
    font-size: 0.9rem;
  }
  
  .banner-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .quick-categories {
    margin-bottom: 1.5rem;
  }
  
  .category-scroll {
    gap: 0.75rem;
  }
  
  .category-item {
    min-width: 70px;
    padding: 0.75rem;
  }
  
  .category-icon {
    font-size: 1.5rem;
  }
  
  .category-name {
    font-size: 0.7rem;
  }
  
  .section-header {
    padding: 0 1rem;
    margin-bottom: 0.75rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    padding: 0 1rem;
  }
  
  .games-horizontal {
    gap: 0.75rem;
    padding: 0 1rem;
  }
  
  .game-item {
    min-width: 180px;
  }
  
  .game-thumb {
    height: 100px;
  }
  
  .game-details {
    padding: 0.75rem;
  }
  
  .game-name {
    font-size: 0.9rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
  }
  
  .category-card {
    height: 100px;
  }
  
  .category-content {
    padding: 0.75rem;
  }
  
  .category-icon {
    font-size: 1.5rem;
  }
  
  .category-title {
    font-size: 0.9rem;
  }
  
  .category-count {
    font-size: 0.7rem;
  }
  
  .cta-section {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-desc {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 250px;
  }
  
  .footer-content {
    display: block;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ad-section {
    margin: 1.5rem 1rem;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .bottom-nav{
    display: flex;
  }
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .nav-center {
    display: none;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-img {
    width: 28px;
    height: 28px;
  }
  
  .main-content {
    padding: 0 0.75rem 80px;
  }
  
  .featured-banner {
    height: 200px;
    border-radius: 10px;
    margin-bottom: 1rem;
  }
  
  .banner-overlay {
    padding: 1rem;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .banner-desc {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .banner-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
  }
  
  .banner-dots {
    bottom: 0.75rem;
  }
  
  .banner-dot {
    width: 6px;
    height: 6px;
  }
  
  .quick-categories {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
  }
  
  .category-scroll {
    gap: 0.5rem;
  }
  
  .category-item {
    min-width: 60px;
    padding: 0.5rem;
  }
  
  .category-icon {
    font-size: 1.25rem;
  }
  
  .category-name {
    font-size: 0.65rem;
  }
  
  .section-header {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .view-more {
    font-size: 0.8rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  
  .game-card {
    border-radius: 10px;
  }
  
  .game-image {
    height: 160px;
  }
  
  .game-info {
    padding: 0.75rem;
  }
  
  .game-title {
    font-size: 1rem;
  }
  
  .game-desc {
    font-size: 0.8rem;
  }
  
  .games-horizontal {
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  
  .game-item {
    min-width: 160px;
    border-radius: 10px;
  }
  
  .game-thumb {
    height: 90px;
  }
  
  .game-details {
    padding: 0.75rem;
  }
  
  .game-name {
    font-size: 0.85rem;
  }
  
  .game-rating {
    gap: 0.25rem;
  }
  
  .stars {
    font-size: 0.7rem;
  }
  
  .rating-text {
    font-size: 0.7rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  
  .category-card {
    height: 80px;
    border-radius: 10px;
  }
  
  .category-content {
    padding: 0.5rem;
  }
  
  .category-icon {
    font-size: 1.25rem;
  }
  
  .category-title {
    font-size: 0.8rem;
  }
  
  .category-count {
    font-size: 0.65rem;
  }
  
  .cta-section {
    margin: 1.5rem 0.75rem;
    padding: 1.25rem;
    border-radius: 15px;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-desc {
    font-size: 0.9rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 200px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .ad-section {
    margin: 1rem 0.75rem;
    border-radius: 10px;
  }
  
  .ad-label {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }
  
  .ad-content {
    padding: 0.75rem;
    min-height: 80px;
  }
  
  .footer-content {
    display: block;
  }
  
  .footer-brand {
    margin-bottom: 0.75rem;
  }
  
  .footer-logo {
    width: 32px;
    height: 32px;
  }
  
  .footer-title {
    font-size: 1.1rem;
  }
  
  .footer-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section a {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }
  
  .footer-bottom {
    padding-top: 0.75rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
  
  /* Side Menu Adjustments */
  .side-menu {
    width: 280px;
    left: -280px;
  }
  
  .menu-header {
    padding: 1rem;
  }
  
  .menu-logo-img {
    width: 32px;
    height: 32px;
  }
  
  .menu-logo-text {
    font-size: 1.1rem;
  }
  
  .menu-item {
    padding: 0.6rem 1rem;
  }
  
  .menu-icon {
    font-size: 1rem;
    width: 20px;
  }
  
  .menu-text {
    font-size: 0.9rem;
  }
  
  /* Bottom Navigation Adjustments */
  .bottom-nav {
    padding: 0.4rem 0;
  }
  
  .nav-item {
    padding: 0.4rem;
  }
  
  .nav-icon {
    font-size: 1rem;
  }
  
  .nav-text {
    font-size: 0.65rem;
  }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .featured-banner {
    height: 180px;
  }
  
  .banner-title {
    font-size: 1.3rem;
  }
  
  .banner-desc {
    font-size: 0.8rem;
  }
  
  .main-content {
    margin-top: 60px;
  }
  
  .top-nav {
    padding: 0.3rem 0;
  }
  
  .bottom-nav {
    padding: 0.3rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .menu-logo-img,
  .footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .banner-slider {
    transition: none;
  }
  
  .side-menu {
    transition: none;
  }
  
  .modal-overlay,
  .modal-content {
    transition: none;
  }
  
  .toast {
    transition: none;
  }
  
  .dropdown-menu {
    transition: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .top-nav,
  .bottom-nav {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .search-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .search-input {
    color: white;
  }
  
  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .nav-item {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .nav-item:hover,
  .nav-item.active {
    color: #667eea;
  }
}

/* Print Styles */
@media print {
  .top-nav,
  .side-menu,
  .bottom-nav,
  .ad-section,
  .cta-section {
    display: none !important;
  }
  
  .main-content {
    margin: 0;
    padding: 0;
  }
  
  .featured-banner {
    height: auto;
    margin-bottom: 1rem;
  }
  
  .banner-overlay {
    position: static;
    background: none;
    color: black;
  }
  
  .banner-title {
    color: black;
    text-shadow: none;
  }
  
  .banner-desc {
    color: #333;
  }
  
  .section-title {
    color: black;
  }
  
  .game-card,
  .game-item,
  .category-card {
    break-inside: avoid;
    background: white;
    border: 1px solid #ddd;
  }
  
  .game-title,
  .game-name,
  .category-title {
    color: black;
  }
  
  .game-desc {
    color: #333;
  }
  
  .footer-content {
    background: white;
    color: black;
  }
  
  .footer-title,
  .footer-section h4 {
    color: black;
  }
  
  .footer-desc,
  .footer-section a {
    color: #333;
  }
} 