/**************************************************
 * GAMES PAGE - SPECIFIC STYLES
 * File: games.css
 * Description: Styles for the Games listing page
 **************************************************/

/* Games Section Base */
.games-section {
  position: relative;
}

/* Games Grid Wrapper */
.games-grid-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Game Cards */
.games-grid-wrapper .collection-block-one {
  margin-bottom: 30px;
  height: 100%;
  padding: 0 15px;
  width: 100%;
}

@media (min-width: 768px) {
  .games-grid-wrapper .collection-block-one {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .games-grid-wrapper .collection-block-one {
    width: 25%;
  }
}

.games-grid-wrapper .collection-block-one .inner-box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.games-grid-wrapper .collection-block-one .inner-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.games-grid-wrapper .collection-block-one .image-box {
  height: 200px;
  overflow: hidden;
}

.games-grid-wrapper .collection-block-one .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/**************************************************
 * GAME CARD IMAGE HOVER EFFECTS
 **************************************************/
.game-card {
  position: relative;
}

.game-card .inner-box .image-box {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.game-card .inner-box .image-box img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card:hover .inner-box .image-box img {
  transform: scale(1.05);
}

.games-grid-wrapper .collection-block-one .lower-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.games-grid-wrapper .collection-block-one .lower-content .text {
  color: #F76188;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.games-grid-wrapper .collection-block-one .lower-content h4 {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 10px;
}

.games-grid-wrapper .collection-block-one .lower-content h4 a {
  color: var(--title-color, #111111);
  text-decoration: none;
  transition: color 0.3s ease;
}

.games-grid-wrapper .collection-block-one .lower-content h4 a:hover {
  color: #F76188;
}

.games-grid-wrapper .collection-block-one .lower-content h5 {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin: 0;
}

.games-grid-wrapper .collection-block-one .game-description {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

/* Sidebar Widgets */
.games-section .sidebar-widget {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.games-section .sidebar-widget:last-child {
  margin-bottom: 0;
}

/**************************************************
 * SEARCH WIDGET
 **************************************************/
.games-search-wrapper {
  width: 100%;
}

.games-search-wrapper .games-form-group {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  position: relative;
  margin: 0;
}

.games-search-wrapper .games-form-group input[type='search'] {
  position: relative;
  display: block;
  width: 100%;
  height: 50px;
  border: 1px dashed #A8DF8E;
  border-radius: 50px;
  padding: 10px 70px 10px 20px;
  font-size: 15px;
  background: #F0FDDF;
  color: var(--title-color);
  transition: all 500ms ease;
  outline: none;
}

.games-search-wrapper .games-form-group input[type='search']:focus {
  border-color: #F76188;
  background: #fff;
}

.games-search-wrapper .games-form-group button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 44px;
  border-radius: 50%;
  text-align: center;
  font-size: 17px;
  color: #fff;
  background: #A8DF8E;
  border: none;
  cursor: pointer;
  transition: all 500ms ease;
  z-index: 2;
}

.games-search-wrapper .games-form-group button:hover {
  background: #F76188;
}

.games-search-wrapper .games-form-group input:focus + button {
  background: #F76188;
}

/* RTL Support for Games Search */
.rtl .games-search-wrapper .games-form-group {
  flex-direction: row;
}

.rtl .games-search-wrapper .games-form-group input[type='search'] {
  padding: 10px 20px 10px 70px;
}

.rtl .games-search-wrapper .games-form-group button {
  right: auto;
  left: 5px;
}

/* Category Checkbox */
.games-section .check-box-two {
  position: relative;
}

.games-section .check-box-two input {
  display: none;
}

.games-section .check-box-two label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  display: inline-block;
  line-height: 22px;
}

.games-section .check-box-two label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  transition: all 0.3s ease;
}

.games-section .check-box-two input:checked + label:before {
  background: #F76188;
  border-color: #F76188;
}

.games-section .check-box-two label:after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Pro';
  position: absolute;
  left: 3px;
  top: 2px;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: all 0.3s ease;
}

.games-section .check-box-two input:checked + label:after {
  opacity: 1;
}

/* Pagination */
.games-section .pagination {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 5px;
}

.games-section .pagination li a,
.games-section .pagination li span {
  display: block;
  min-width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0 5px;
}

.games-section .pagination li a.current,
.games-section .pagination li a:hover {
  background: #F76188;
  color: #fff;
}

.games-section .pagination li a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.games-section .pagination li span {
  background: transparent;
  cursor: default;
}

/* RTL Support for Games */
.rtl .games-section .search-widget button {
  right: auto;
  left: 5px;
}

.rtl .games-section .check-box-two label {
  padding-left: 0;
  padding-right: 28px;
}

.rtl .games-section .check-box-two label:before {
  left: auto;
  right: 0;
}

.rtl .games-section .check-box-two label:after {
  left: auto;
  right: 3px;
}
