/*
Theme Name: Your Web Game Theme
Theme URI: https://example.com/your-web-game-theme
Author: Mund Digital
Author URI: https://munddigital.com
Description: A modern WordPress theme for gaming websites
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-web-game-theme
Tags: gaming, responsive, modern
*/

/* Import other stylesheets */
@import url("assets/mobile-styles.css");
@import url("assets/game-page.css");
@import url("assets/header-custom.css");
@import url("assets/mobile-header.css");
@import url("assets/mobile-single-game.css");
@import url("assets/mobile-single-game-header.css");
@import url("assets/mobile-homepage.css");
@import url("assets/game-sections.css");
@import url("assets/archive-game.css");
@import url("assets/category-games.css");
@import url("assets/all-games-filter.css");
@import url("assets/hero-carousel.css");
@import url("assets/play-page.css");
@import url("assets/mobile-play-page.css");
@import url("assets/newsletter.css");
@import url("assets/placeholder-styles.css");
@import url("assets/game-page-effects.css");
@import url("assets/animation-effects.css");
@import url("assets/homepage-enhanced.css");
@import url("assets/homepage-layout-enhancements.css");
@import url("assets/categories-section.css");
@import url("assets/game-categories-buttons.css");
@import url("assets/featured-slider.css");
@import url("assets/responsive.css"); /* Comprehensive responsive stylesheet */
@import url("assets/responsive-components.css"); /* Component-specific responsive styles */

/* Base Styles */
:root {
  --primary-color: #ff4d7d;
  --secondary-color: #8c52ff;
  --accent-color: #26c9c3;
  --background-color: #f5f6fa;
  --card-background: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --border-radius: 16px;
  --button-radius: 24px;
  --card-radius: 12px;
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Header Styles - Updated with white background */
.site-header {
  padding: 15px 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-branding {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.site-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  filter: brightness(1.2);
}

.site-title {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  color: #ff4d7d;
  line-height: 1;
  letter-spacing: -0.5px;
}

.site-title span {
  display: block;
  color: #ff4d7d;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.home-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ff4d7d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(255, 77, 125, 0.2);
  margin-right: 10px;
}

.btn {
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: white;
}

.btn svg {
  margin-left: 5px;
}

.btn-categories {
  background-color: #30c9c9;
  margin-right: 10px;
}

.btn-new-games {
  background-color: #7b68ee;
  margin-right: 10px;
}

.search-form {
  flex-grow: 1;
  max-width: 500px;
  margin-left: auto;
}

.search-input {
  padding: 12px 18px;
  border-radius: 30px;
  border: none;
  width: 100%;
  background-color: #e6e1f9;
  color: #333;
  font-size: 0.9rem;
}

.search-input::placeholder {
  color: #666;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 104, 238, 0.3);
}

.search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  margin: 30px 0;
  overflow: hidden;
  position: relative;
  height: 200px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.hero-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  transition: var(--transition);
}

.hero-section:hover .hero-image {
  transform: scale(1.05);
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: #333;
  letter-spacing: 15px;
  text-transform: uppercase;
  z-index: 2;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.hero-section:hover .hero-title {
  letter-spacing: 18px;
}

/* Game Categories */
.game-categories {
  display: flex;
  gap: 12px;
  margin: 25px 0;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.game-categories::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.category-btn {
  padding: 10px 18px;
  border-radius: var(--button-radius);
  background-color: var(--primary-color);
  color: white;
  border: none;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-btn.girl-games {
  background-color: #ff85a2;
}

.category-btn.girl-games:hover {
  background-color: #ff6b8e;
}

.category-btn.trending {
  background-color: #f0f0f0;
  color: #333;
}

.category-btn.trending:hover {
  background-color: #e5e5e5;
}

/* Game Grid */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 25px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-left: 15px;
}

.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

.filter-dropdown {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--button-radius);
  background-color: #f0f0f0;
  color: #333;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #e5e5e5;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.filter-btn.active:hover {
  background-color: #ff3366;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.featured-games .games-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.game-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
  aspect-ratio: 1 / 1.2;
  background-color: var(--card-background);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-thumbnail {
  transform: scale(1.1);
}

.game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: white;
  padding: 20px 10px 10px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.game-card:hover .game-title {
  padding-bottom: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.page-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #eee;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.page-number:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-number.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 8px rgba(255, 77, 125, 0.3);
}

.page-number.active:hover {
  background-color: #ff3366;
}

/* Footer */
.site-footer {
  background-color: var(--card-background);
  padding: 50px 0 30px;
  margin-top: 50px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-widget h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
}

.footer-widget li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.footer-widget a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-widget a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 30px;
  height: 30px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  /* Add this to reduce spacing in mobile view */
  .site-content,
  .home .site-content {
    padding-top: 5px; /* Minimal padding for mobile */
  }

  /* Rest of the responsive styles remain unchanged */
  .header-inner {
    flex-wrap: wrap;
  }

  .search-form {
    order: 3;
    flex-basis: 100%;
    margin-top: 15px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 10px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-games,
.all-games,
.hero-section {
  animation: fadeIn 0.5s ease-out forwards;
}

.featured-games {
  animation-delay: 0.1s;
}

.all-games {
  animation-delay: 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Add this to the existing styles to ensure spacing between header and content */
.site-content {
  padding-top: 20px; /* Reduced from 30px to 20px for default spacing */
}

.home .site-content {
  padding-top: 10px; /* Reduced from 50px to 10px for homepage */
}
