/* =========================================
   Main CSS - Combined from React components
   ========================================= */

/* Force override parent theme styles with body class specificity */
body.bct10-body,
body.bct10-body html {
  background: var(--bgDarkColor) !important;
  color: #fff !important;
  font-family: 'Goli', sans-serif !important;
}

body.bct10-body a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Base styles already in style.css */

/* =========================================
   Navigation (matches React topnav.css)
   ========================================= */
.topnav {
  z-index: 1111;
  background-color: var(--secondaryDarkColor);
  margin-bottom: 20px;
}
.topnav .topnav-container {
  display: flex;
  align-items: center;
  padding: 10px;
}
.topnav .logo {
  margin-right: 50px;
}
.topnav .logo img {
  height: 100%;
}
.topnav .page-nav .navtab-link {
  background-color: var(--headerDarkColor);
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.topnav .page-nav .navtab-link:hover {
  background-color: var(--primaryColor);
  color: var(--secondaryDarkColor);
  font-weight: 600;
}
.topnav .navtabs {
  overflow: auto;
  white-space: nowrap;
}
.topnav .navtabs::-webkit-scrollbar {
  display: none;
}
.topnav .navtabs .navtab-link {
  color: #fff;
  padding: 14px 26px;
  border-radius: 100px;
  background-color: var(--headerDarkColor);
  display: inline-block;
  margin-right: 16px;
  text-decoration: none;
}
.topnav .navtabs .navtab-link:hover {
  background-color: var(--primaryColor);
  color: var(--secondaryDarkColor);
  font-weight: 600;
}
.topnav .navtabs .navtab-link span {
  margin-right: 5px;
}

/* Mobile Navigation */
.navbar {
  background: var(--primaryColor);
  position: sticky;
  width: 100vw;
  color: white;
  z-index: 100;
  height: 60px;
  top: 0;
}
.navbar input[type="checkbox"],
.navbar .hamburger-lines {
  display: none;
}
.navbar .navbar-container {
  display: block;
  position: fixed;
  width: 100%;
  height: 60px;
  background-color: transparent;
  z-index: 101;
  margin: 0;
}
.navbar .navbar-container .menu-items {
  position: relative;
  justify-content: center !important;
}
.navbar .navbar-container .menu-items .nav-link {
  display: block;
  padding-block: 20px;
  padding-inline: 30px;
  text-decoration: none;
  color: white;
  height: 100%;
  transition: 0.3s ease color;
  cursor: pointer;
}
.navbar .navbar-container .menu-items .quick-links {
  border-top: 2px solid #2d3a5a66;
  margin-top: 30px;
}
.navbar .navbar-container .menu-items .quick-links h4 {
  font-size: 22px;
  margin: 20px 0 15px 0;
}

.navbar .navbar-container .menu-items .quick-links ul {
  list-style: none;
}

.navbar .navbar-container .menu-items .quick-links ul li {
  font-weight: 200;
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 20px;
}
.navbar .navbar-container .menu-items .quick-links ul li a {
  border: none;
  padding: 0;
}
.navbar .navbar-container .menu-items .quick-links ul li a:hover {
  background-color: transparent !important;
}
.navbar .navbar-container .menu-items .quick-links ul li:hover a {
  color: var(--primaryColor) !important;
}
.navbar .navbar-container .menu-items .quick-links ul li:hover {
  font-weight: 400;
}

.navbar .navbar-container .menu-items a {
  padding: 12px;
  text-decoration: none;
  border: 1px solid;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: inherit;
}
.navbar .navbar-container .menu-items a:hover {
  background-color: var(--primaryColor);
}
.navbar .navbar-container .menu-items a {
    border: 1px solid;
    border-color: var(--headerDarkColor);
  }
  .navbar .navbar-container .menu-items a:hover {
    color: black;
  }
  .navbar .navbar-container .menu-items a:hover svg {
    fill: black;
  }

@media (max-width: 992px) {
  .navbar {
    background: var(--primaryColor);
    margin-bottom: 30px;
    z-index: 111111;
  }
  .navbar .navbar-container {
    display: block;
    position: absolute;
    height: 60px;
    background-color: transparent;
    align-items: center;
  }
  .navbar .navbar-container input[type="checkbox"] {
    position: absolute;
    display: block;
    height: 32px;
    width: 30px;
    top: 20px;
    left: 20px;
    z-index: 300;
    opacity: 0;
    cursor: pointer;
  }
  .navbar .navbar-container .hamburger-lines {
    display: block;
    height: 19px;
    width: 25px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
  }
  .navbar .navbar-container .hamburger-lines .line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: white;
  }
  .navbar .navbar-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.3s ease-in-out;
  }
  .navbar .navbar-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }
  .navbar .navbar-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.3s ease-in-out;
  }
  .navbar .navbar-container .logo {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    height: auto;
    top: 50%;
  }

  .navbar .navbar-container .menu-items {
    background-color: white;
    color: black;
    width: 100vw !important;
    transform: translate(-100%);
    transition: transform 0.5s ease-in-out;
    overflow-y: scroll;
    padding: 25px;
    top: 60px;
    gap: 10px;
    height: calc(100vh - 60px);
  }

  .navbar .navbar-container .menu-items {
    background-color: var(--secondaryDarkColor);
    color: white;
    border: 1px solid;
    border-color: var(--headerDarkColor);
  }
  .navbar .navbar-container .menu-items .nav-link {
    display: block;
    padding-inline: 20px;
    padding-bottom: 0;
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease color;
    cursor: pointer;
  }
  .navbar input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }
  .navbar input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }
  .navbar input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }
}
.navbar.open .menu-items {
  transform: translate(0%);
}

@media (min-width: 992px) {
  .navbar {
    display: none;
  }
}

@media (max-width: 992px) {
  .topnav {
    display: none;
  }
}

/* =========================================
   Scroll To Top
   ========================================= */
.scroll-to-top {
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 1000;
}

.scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  height: 50px;
  width: 50px;
  padding: 10px !important;
}

/* =========================================
   Game Thumbnail (matches React gameThumbnail.css)
   ========================================= */
.game-thumbnail {
  border-radius: 20%;
  overflow: hidden;
  position: relative;
}

.game-thumbnail a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-thumbnail .game-image {
  border-radius: 18%;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
}

.game-thumbnail .game-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all 0.3s ease 0s;
  transform: scale(1);
}

.game-thumbnail:hover .game-title {
  opacity: 1;
}

.game-thumbnail:hover .game-image img {
  transition: all 0.3s ease 0s;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .game-thumbnail:hover .game-title {
    opacity: 0;
  }

  .game-thumbnail:hover .game-image img {
    transform: scale(1);
  }
}

.game-thumbnail .game-title {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: end;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), black);
  border-radius: 0 0 18% 18%;
  opacity: 0;
  color: #fff;
}

/* =========================================
   Home Grid
   ========================================= */
.home-grid {
    padding: 20px 0;
}

.games-area {
    margin-bottom: 20px;
}

/* =========================================
   Game Area
   ========================================= */
.game-area {
    margin-bottom: 30px;
}

.game-area .card {
    background: var(--secondaryDarkColor);
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.game-area .ratio {
    background: #000;
}

.play-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.back-button {
    transition: opacity 0.3s;
}

.back-button:hover {
    opacity: 0.8;
}

.game-area .card-footer {
    background: var(--secondaryDarkColor);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
}

.game-footer-left img {
    object-fit: cover;
}

.game-footer-left h4 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

.game-footer-left h6 {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 14px;
}

.footer-icons {
    color: #fff;
}

.like-icon,
.dislike-icon {
    cursor: pointer;
    transition: opacity 0.3s;
}

.like-icon:hover,
.dislike-icon:hover {
    opacity: 0.7;
}

.like-icon.filled,
.dislike-icon.filled {
    fill: var(--primaryColor);
}

.fullscreen-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

.fullscreen-btn:hover {
    opacity: 0.7;
}

/* =========================================
   Footer (matches React footer.css)
   ========================================= */
.footer {
  background-color: var(--secondaryDarkColor);
  color: white;
}

.footer .social-icons {
  border: 1px solid var(--primaryColor);
  padding: 5px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  background-color: transparent;
  color: var(--primaryColor);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.footer .social-icons:hover {
  color: var(--secondaryDarkColor);
  background-color: var(--primaryColor);
}

.footer hr {
  opacity: 0.1;
}

.footer .footer-top {
  margin-bottom: 20px;
}

.footer .footer-top h5 {
  margin-bottom: 15px;
  color: var(--primaryColor);
}

.footer .footer-top .footer-cat {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.footer .footer-top .footer-cat .cat-list {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: column;
}

.footer .footer-top .footer-cat .cat-list a:hover {
  color: var(--primaryColor);
}

.footer .feedback {
  margin-top: 0;
}

.footer .feedback h5 {
  color: var(--primaryColor);
  margin-bottom: 10px;
}

.footer .feedback p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
}

.footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer .footer-bottom p {
  margin-bottom: 0;
}

.footer .footer-bottom .bottom-nav {
  display: flex;
  justify-content: end;
  gap: 20px;
}

.footer .footer-bottom .bottom-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer .footer-bottom .bottom-nav a:hover {
  color: var(--primaryColor);
}

@media (min-width: 768px) {
  .footer .footer-top .footer-cat .cat-list a {
    flex: 50%;
  }

  .footer .footer-top .footer-cat .cat-list a img {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer .footer-top .footer-cat {
    margin-top: 40px;
  }

  .footer .footer-top .footer-cat .cat-list a.cat-item {
    border: 1px solid;
    border-radius: 10px;
    border-color: rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
    width: 100%;
    display: flex !important;
    justify-content: left;
    align-items: center;
    gap: 5px;
    padding-left: 15px !important;
  }

  .footer .footer-top .footer-cat .cat-list a.cat-item img {
    display: block;
  }

  .footer .feedback {
    margin-top: 25px;
  }
}

@media (max-width: 768px) {
  .footer .footer-top .footer-cat .cat-list a.cat-item {
    border-color: var(--headerDarkColor);
  }
}

@media (max-width: 768px) {
  .footer .footer-bottom {
    flex-direction: column-reverse;
  }

  .footer .footer-bottom .bottom-nav {
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid var(--headerDarkColor);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 992px) {
  .footer .footer-bottom .bottom-nav {
    gap: 10px !important;
  }

  .footer .footer-top .footer-cat .cat-list {
    display: block;
  }

  .footer .footer-top .footer-cat .cat-list a {
    display: block;
  }
}

/* =========================================
   Grid With Title
   ========================================= */
.grid-with-title h3 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-with-title h3 img {
    object-fit: contain;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .bottom-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   Game Detail Page
   ========================================= */
/* media query for Viewport dimensions are at least 1200x650 pixels */
@media screen and (min-width: 1200px) and (min-height: 650px) {
    .game-detail-page {
        width: calc(100% - 400px);
        margin: 0 auto;
    }
}

.gamedetails__desc {
    background: #f5f5fa;
    border: none;
    border-radius: 8px;
}

.gamedetails__desc .card-title h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.gamedetails__desc .card-body {
    color: var(--text-dark);
    line-height: 1.6;
}
