/*
 Theme Name: Slots Theme
 Theme URI: https://slots.com
 Description: GeneratePress child theme for slot game products
 Author: Slots Bulk Poster
 Template: generatepress
 Version: 3.0.0
 Text Domain: slots-theme
*/

/* ===== GLOBAL ===== */

body {
  background: #0f0f1a !important;
  color: #e5e7eb !important;
}

a { color: #f87171; }
a:hover { color: #ef4444; }

/* ===== HEADER ===== */

.site-header {
  background: #12121f !important;
  border-bottom: 2px solid #dc2626 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
}

.inside-header {
  padding: 0.5rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.site-header .main-title,
.site-header .site-title,
.site-header .site-title a,
.site-header .main-title a {
  color: #fff !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.site-header .site-description {
  display: none !important;
}

.site-header .site-logo img,
.site-header img.custom-logo {
  max-height: 36px;
  width: auto;
}

/* ===== NAVIGATION ===== */

.main-navigation,
.main-navigation .main-nav {
  background: transparent !important;
}

.main-navigation a,
.main-navigation .main-nav ul li a {
  color: #d1d5db !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s !important;
}

.main-navigation a:hover,
.main-navigation .main-nav ul li a:hover {
  color: #fff !important;
}

.main-navigation .main-nav ul li.current-menu-item > a {
  color: #f87171 !important;
}

.main-navigation button.dropdown-menu-toggle {
  color: #6b7280 !important;
}

/* Dropdowns */
.main-navigation .main-nav ul ul.sub-menu,
ul.menu > li.menu-item-has-children > ul.sub-menu {
  min-width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.4rem 0 !important;
  background: #1a1a2e !important;
  border: 1px solid #2d2d44 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
}

.main-navigation .main-nav ul ul.sub-menu li a,
ul.menu > li.menu-item-has-children > ul.sub-menu li a {
  padding: 0.4rem 0.9rem !important;
  font-size: 0.82rem !important;
  display: flex !important;
  justify-content: space-between !important;
  color: #d1d5db !important;
  border: none !important;
}

ul.menu > li.menu-item-has-children > ul.sub-menu li a .count {
  font-size: 0.65rem;
  color: #6b7280;
}

.main-navigation .main-nav ul ul.sub-menu li a:hover,
ul.menu > li.menu-item-has-children > ul.sub-menu li a:hover {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #f87171 !important;
}

ul.menu > li.menu-item-has-children > ul.sub-menu li.current-menu-item a {
  color: #ef4444 !important;
  font-weight: 600 !important;
}

/* "See all" link in dropdown */
.slots-see-all a {
  color: #ef4444 !important;
  font-weight: 600 !important;
  border-top: 1px solid #2d2d44 !important;
  margin-top: 0.25rem !important;
  padding-top: 0.5rem !important;
}

/* Dropdown scrollbar */
.main-navigation .main-nav ul ul.sub-menu::-webkit-scrollbar { width: 5px; }
.main-navigation .main-nav ul ul.sub-menu::-webkit-scrollbar-track { background: #1a1a2e; }
.main-navigation .main-nav ul ul.sub-menu::-webkit-scrollbar-thumb { background: #3d3d5c; border-radius: 3px; }

/* ===== NAV SEARCH BAR (inside menu as <li>) ===== */

li.slots-nav-search {
  margin-left: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.slots-search-form {
  display: flex;
  align-items: center;
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.slots-search-form:focus-within {
  border-color: #dc2626;
}

.slots-search-input {
  background: transparent !important;
  border: none !important;
  color: #e5e7eb !important;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.7rem !important;
  width: 180px;
  outline: none !important;
  box-shadow: none !important;
}

.slots-search-input::placeholder {
  color: #6b7280;
}

.slots-search-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.slots-search-btn:hover {
  color: #dc2626;
}

/* ===== CONTENT AREA ===== */

.site-content { background: transparent !important; min-height: 70vh; }
.inside-article { background: transparent !important; padding: 0 !important; }
.entry-content { color: #e5e7eb; }

/* ===== FULL WIDTH SHOP ===== */

.woocommerce .site-content,
.post-type-archive-product .site-content,
.tax-product_cat .site-content,
.tax-product_tag .site-content {
  max-width: 1400px !important;
  margin: 0 auto;
  padding: 0 1.5rem !important;
}

/* ===== SHOP HERO ===== */

.shop-hero {
  text-align: center;
  padding: 1.25rem 1rem 0.75rem;
}

.shop-hero-text {
  color: #9ca3af;
  font-size: 0.95rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== CATEGORY EXTRAS ===== */

.category-description-box {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  margin-bottom: 0.75rem;
  color: #9ca3af;
  font-size: 0.88rem;
  line-height: 1.6;
}

.category-description-box strong { color: #e5e7eb; }

.category-game-count {
  color: #6b7280;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

/* ===== PAGE TITLE ===== */

.woocommerce-products-header__title,
.page-title,
.woocommerce .page-title,
.entry-title {
  color: #fff !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

/* ===== PRODUCT GRID ===== */

ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 0.75rem !important;
  padding: 0 !important;
  list-style: none !important;
}

ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2e !important;
  border: 1px solid #2d2d44;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  border-color: #dc2626;
}

ul.products li.product a img,
ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0 !important;
}

ul.products li.product > a {
  display: block;
  text-decoration: none !important;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0.6rem !important;
  margin: 0 !important;
  line-height: 1.3;
  color: #e5e7eb !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

ul.products li.product .price,
ul.products li.product .button,
ul.products li.product .add_to_cart_button,
ul.products li.product a.added_to_cart,
ul.products li.product .star-rating {
  display: none !important;
}

.woocommerce .woocommerce-loop-category__title .count {
  background: #dc2626;
  color: #fff;
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
}

/* ===== BREADCRUMBS ===== */

.woocommerce-breadcrumb {
  font-size: 0.78rem !important;
  color: #6b7280 !important;
  margin-bottom: 0.75rem !important;
}
.woocommerce-breadcrumb a { color: #9ca3af !important; }
.woocommerce-breadcrumb a:hover { color: #f87171 !important; }

/* ===== RESULT COUNT ===== */

.woocommerce-result-count { display: none !important; }

/* ===== PAGINATION ===== */

.woocommerce nav.woocommerce-pagination { margin-top: 1.5rem; }

.woocommerce nav.woocommerce-pagination ul {
  border: none !important;
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
  overflow: visible !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: #1a1a2e !important;
  color: #9ca3af !important;
  border: 1px solid #2d2d44 !important;
  border-radius: 6px !important;
  margin: 0 !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: #2d2d44 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}

/* ===== HIDE SIDEBAR ===== */

.post-type-archive-product #right-sidebar,
.tax-product_cat #right-sidebar,
.tax-product_tag #right-sidebar,
.single-product #right-sidebar,
.page #right-sidebar {
  display: none !important;
}

.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main,
.single-product .site-main,
.page .site-main {
  width: 100% !important;
}

/* ===== DIRECTORY PAGES (Fournisseurs / Themes) ===== */

.page .site-content {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 1.5rem !important;
}

.slots-directory {
  padding: 0.5rem 0 2rem;
}

.slots-directory-search {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.slots-dir-input {
  flex: 1;
  max-width: 400px;
  background: #1a1a2e !important;
  border: 1px solid #2d2d44 !important;
  border-radius: 8px;
  color: #e5e7eb !important;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.slots-dir-input:focus {
  border-color: #dc2626 !important;
}

.slots-dir-input::placeholder { color: #6b7280; }

.slots-dir-count {
  color: #6b7280;
  font-size: 0.82rem;
  white-space: nowrap;
}

.slots-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.slots-dir-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-decoration: none !important;
  transition: all 0.2s;
}

.slots-dir-card:hover {
  border-color: #dc2626;
  background: #1e1e36;
  transform: translateY(-2px);
}

.slots-dir-name {
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
}

.slots-dir-card:hover .slots-dir-name {
  color: #fff;
}

.slots-dir-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  white-space: nowrap;
}

/* ===== FOOTER ===== */

.site-footer {
  background: #12121f !important;
  border-top: 2px solid #dc2626 !important;
  padding: 0 !important;
  margin-top: 2rem;
}

.inside-site-info {
  background: #12121f !important;
  padding: 1.5rem !important;
  text-align: center;
}

.site-footer .copyright-bar,
.site-footer .site-info,
.site-info {
  background: #12121f !important;
  color: #6b7280 !important;
  font-size: 0.82rem !important;
}

.site-footer .site-info .copyright {
  color: #9ca3af !important;
}

.site-footer a {
  color: #9ca3af !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: #f87171 !important;
}

/* Hide GeneratePress credit link completely */
.site-footer .site-info .copyright + span,
.site-footer .site-info a[href*="generatepress"],
.site-info .copyright ~ * {
  display: none !important;
}

/* Kill any extra space/padding below footer */
.site-footer .footer-bar,
.site-footer .footer-widgets-container {
  background: #12121f !important;
}

body::after,
html {
  background: #0f0f1a !important;
}

/* ===== SEARCH RESULTS ===== */

.search-results .site-content {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 1.5rem !important;
}

/* ===== MOBILE MENU ===== */

.menu-toggle,
.main-navigation .menu-toggle {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid #2d2d44 !important;
  border-radius: 6px;
  padding: 0.4rem 0.6rem !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .slots-search-input {
    width: 140px;
  }
}

@media (max-width: 768px) {
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .woocommerce .site-content,
  .post-type-archive-product .site-content,
  .tax-product_cat .site-content,
  .tax-product_tag .site-content {
    padding: 0 0.5rem !important;
  }

  .inside-header {
    padding: 0.4rem 0.75rem !important;
  }

  .woocommerce-products-header__title,
  .page-title,
  .entry-title {
    font-size: 1.2rem !important;
  }

  /* Nav search on mobile */
  .slots-nav-search {
    padding: 0.5rem 0;
    width: 100%;
  }

  .slots-search-input {
    width: 100%;
  }

  .slots-search-form {
    width: 100%;
  }

  /* Directory grid on tablet */
  .slots-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
  }

  ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product h2 {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.45rem !important;
  }

  .shop-hero-text {
    font-size: 0.85rem;
  }

  .woocommerce-products-header__title,
  .page-title,
  .entry-title {
    font-size: 1.05rem !important;
  }

  /* Directory grid on phone */
  .slots-directory-grid {
    grid-template-columns: 1fr;
  }

  .slots-directory-search {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .slots-dir-input {
    max-width: 100%;
  }

  .inside-site-info {
    padding: 1rem !important;
  }
}
