/*
 * SharkGame frontend — arcade moderno minimalista (teal).
 */

:root {
  --sg-nav: #1e293b;
  --sg-nav-deep: #0f172a;
  --sg-accent: #0d9488;
  --sg-accent-soft: #ccfbf1;
  --sg-surface: #f8fafc;
  --sg-ink: #0f172a;
  --sg-muted: #64748b;
  --sg-card: #ffffff;
  --sg-radius: 14px;
}

body.ca-wp-bridge {
  background: linear-gradient(180deg, #ffffff 0%, var(--sg-surface) 48%, #ffffff 100%);
  color: var(--sg-ink);
  font-family: Lato, system-ui, sans-serif;
}

/* —— Header —— */
#mainNav.top-nav {
  background: linear-gradient(180deg, var(--sg-nav) 0%, var(--sg-nav-deep) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

#mainNav .navbar-brand {
  font-family: Montserrat, Lato, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.1;
}

#mainNav .sg-brand-text {
  display: inline-block;
}

#mainNav .site-logo {
  max-height: 42px;
  width: auto;
}

#mainNav .search-bar .form-control {
  border: 0;
  border-radius: 10px 0 0 10px;
  min-width: 180px;
}

#mainNav .search-bar .btn-search {
  background: var(--sg-accent);
  border-color: var(--sg-accent);
  border-radius: 0 10px 10px 0;
}

#mainNav .search-bar .btn-search:hover {
  background: #0f766e;
  border-color: #0f766e;
}

#mainNav .navbar-nav .nav-link {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* —— Categories —— */
.nav-categories {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-categories .list-categories a li,
.nav-categories .greedy > button {
  border-radius: 999px;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-categories .list-categories a:hover li,
.nav-categories .greedy > button:hover {
  transform: translateY(-1px);
  background: var(--sg-accent-soft);
  color: #0f766e;
}

.nav-categories .greedy > button {
  font-weight: 700;
}

/* —— Sections —— */
.sg-home-wrap {
  padding-bottom: 2rem;
}

.sg-section-head {
  margin: 1.75rem 0 1rem;
}

.sg-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sg-section-title {
  font-family: Montserrat, Lato, sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 0;
  color: var(--sg-ink);
}

.sg-section-title .fa,
.sg-section-title .fas {
  color: var(--sg-accent);
  margin-right: 0.4rem;
}

.sg-section-sub {
  margin: 0.35rem 0 0;
  color: var(--sg-muted);
  font-size: 0.95rem;
}

.sg-link-more {
  font-weight: 700;
  color: var(--sg-accent);
  text-decoration: none;
}

.sg-link-more:hover {
  color: #0f766e;
  text-decoration: underline;
}

.sg-empty {
  color: var(--sg-muted);
  background: #fff;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: var(--sg-radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}

.sg-games-section {
  margin-bottom: 0.5rem;
}

/* —— Featured slider —— */
.sg-featured {
  margin: 0.5rem 0 1rem;
}

.sg-featured-track-wrap {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.sg-featured-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.15rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sg-featured-track::-webkit-scrollbar {
  display: none;
}

.sg-featured-slide {
  flex: 0 0 min(78%, 320px);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .sg-featured-slide {
    flex-basis: calc(33.333% - 0.7rem);
  }
}

@media (min-width: 992px) {
  .sg-featured-slide {
    flex-basis: calc(25% - 0.75rem);
  }
}

.sg-featured-card {
  display: block;
  background: var(--sg-card);
  border-radius: var(--sg-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sg-featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  color: inherit;
  text-decoration: none;
}

.sg-featured-media {
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}

.sg-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sg-featured-card:hover .sg-featured-media img {
  transform: scale(1.04);
}

.sg-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
}

.sg-featured-name {
  font-family: Montserrat, Lato, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.sg-featured-cta {
  flex-shrink: 0;
  background: var(--sg-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.sg-featured-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--sg-ink);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  cursor: pointer;
}

.sg-featured-prev { left: 0.35rem; }
.sg-featured-next { right: 0.35rem; }

.sg-featured-nav:hover {
  background: var(--sg-accent);
  color: #fff;
}

/* —— Game cards —— */
.item-title {
  letter-spacing: 0.04em;
  font-weight: 800;
}

.list-game {
  background: var(--sg-card);
  border-radius: 12px;
  padding: 0.35rem 0.35rem 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-game:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.list-thumbnail img,
.list-thumbnail .small-thumb {
  border-radius: 10px;
}

.list-title {
  font-weight: 600;
}

.btn-load-more-games {
  border-radius: 10px;
  font-weight: 700;
  background: var(--sg-accent) !important;
  border-color: var(--sg-accent) !important;
}

.btn-load-more-games:hover {
  background: #0f766e !important;
  border-color: #0f766e !important;
}

.game-iframe-container {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  background: #0f172a;
}

/* —— Blog —— */
.sg-blog {
  margin: 2rem 0 1rem;
}

.sg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .sg-blog-grid {
    grid-template-columns: 1fr;
  }
}

.sg-blog-card {
  background: var(--sg-card);
  border-radius: var(--sg-radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.sg-blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sg-blog-card__media {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}

.sg-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-blog-card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.sg-blog-card__body time {
  display: block;
  font-size: 0.8rem;
  color: var(--sg-muted);
  margin-bottom: 0.35rem;
}

.sg-blog-card__body h3 {
  font-family: Montserrat, Lato, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* —— Footer —— */
.sg-footer {
  background: var(--sg-nav-deep);
  min-height: 0;
}

.sg-footer:empty,
.sg-footer .container:empty {
  display: none;
}

.copyright {
  background: #0b1220;
}

.copyright .dsb-panel a {
  color: var(--sg-accent);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .list-game,
  .sg-featured-card,
  .sg-featured-media img,
  .sg-blog-card,
  .nav-categories .list-categories a li,
  .nav-categories .greedy > button {
    transition: none;
  }

  .sg-featured-track {
    scroll-behavior: auto;
  }
}
