@charset "UTF-8";

/* =============================================
   FONTS
   ============================================= */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-ExtraBold.woff2") format("woff2"),
       url("../fonts/Rubik-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Medium.woff2") format("woff2"),
       url("../fonts/Rubik-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Bold.woff2") format("woff2"),
       url("../fonts/Rubik-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Regular.woff2") format("woff2"),
       url("../fonts/Rubik-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   CSS VARIABLES
   ============================================= */

:root {
  --gold:        #F5C518;
  --gold-light:  #FFD84D;
  --gold-dark:   #C9960A;
  --red:         #D4231E;
  --red-dark:    #A31815;
  --bg-dark:     #0D0B1A;
  --bg-card:     rgba(255, 255, 255, 0.06);
  --bg-card-hov: rgba(255, 255, 255, 0.12);
  --border:      rgba(245, 197, 24, 0.25);
  --text:        #FFFFFF;
  --text-muted:  #BDBDBD;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-gold: 0 0 24px rgba(245, 197, 24, 0.35);
  --transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Rubik", sans-serif;
  font-weight: normal;
  color: var(--text);
  background-color: var(--bg-dark);
  background-image: url("../img/main-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   UTILITY
   ============================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.body {
  max-width: 62.25rem;
  margin: 0 auto;
  width: 100%;
}

.container_flex {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-yellow,
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-yellow {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  color: #1A1100;
  box-shadow: 0 4px 18px rgba(245, 197, 24, 0.4);
}

.btn-yellow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(245, 197, 24, 0.6);
  filter: brightness(1.08);
}

.btn-yellow img,
.btn-red img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-red {
  background: linear-gradient(135deg, #f04040 0%, var(--red) 60%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(212, 35, 30, 0.4);
}

.btn-red:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(212, 35, 30, 0.6);
  filter: brightness(1.08);
}

/* =============================================
   HEADER
   ============================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 8, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.15);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header__logo {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition);
}

.header__logo:hover {
  opacity: 0.85;
}

.header__btns {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  height: calc(100vh - 4rem);
  max-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* overlay disabled */
.hero__bg {
  display: none;
}

/* animated star/sparkle layer */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(245,197,24,0.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px, 120px 120px;
  background-position: 0 0, 30px 30px;
  animation: sparkle 8s linear infinite;
  opacity: 0.6;
}

@keyframes sparkle {
  0%   { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}

.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
}

.hero__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* decorative girl image on left */
.hero__girl {
  flex: 1 1 auto;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-height: 100%;
}

.hero__girl img {
  max-height: min(480px, calc(100vh - 8rem));
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(245, 197, 24, 0.2));
}

/* card block — pinned to the right */
.hero__card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 460px;
  padding: 1.25rem 1.5rem;
  margin-left: auto;
  background: rgba(10, 8, 28, 0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(245,197,24,0.08),
    0 20px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero__subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #E8D99A;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* =============================================
   GAME CARDS GRID
   ============================================= */

.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.game {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.game::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,8,28,0.85) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius-md);
}

.game:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-gold), 0 12px 40px rgba(0,0,0,0.5);
  border-color: rgba(245, 197, 24, 0.65);
  background: var(--bg-card-hov);
}

.game__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.game__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game:hover .game__img img {
  transform: scale(1.08);
}

.game__text {
  position: relative;
  z-index: 2;
  padding: 0.45rem 0.65rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: linear-gradient(0deg, rgba(10,8,28,0.95) 0%, rgba(10,8,28,0.6) 100%);
}

.game__text strong {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.game__text span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

/* play overlay on hover */
.game::after {
  content: "▶  Joacă Acum";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  z-index: 3;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1A1100;
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(245,197,24,0.5);
  pointer-events: none;
}

.game:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* =============================================
   SECOND SECTION
   ============================================= */

.second__section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,8,28,0.92) 0%, rgba(10,8,28,0.98) 100%);
  padding: 4rem 1.25rem;
}

.second__section > div {
  max-width: 50rem;
  margin: 0 auto 2.5rem;
}

.second__section > div:last-child {
  margin-bottom: 0;
}

.second__section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.875rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.75rem;
}

.second__section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.second__section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #E8D99A;
  margin: 1.5rem 0 0.625rem;
  line-height: 1.4;
}

.second__section p {
  font-size: 0.9375rem;
  font-weight: normal;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =============================================
   FOOTER
   ============================================= */

footer,
.footer-menu {
  background: #1A1828;
}

.footer {
  border-top: 1px solid rgba(245,197,24,0.12);
}

.footer-providers {
  padding: 1.5rem 0;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-providers a {
  width: 5.625rem;
  height: 2.25rem;
  margin: 0.875rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.65;
  transition: opacity var(--transition), filter var(--transition);
}

.footer-providers a:hover {
  opacity: 1;
  filter: brightness(1.2);
}

.footer-providers a svg,
.footer-providers a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-providers a:hover svg,
.footer-providers a:hover img {
  filter: brightness(0) saturate(100%) invert(82%) sepia(60%) saturate(600%) hue-rotate(2deg) brightness(105%);
}

.footer-bottom {
  position: relative;
  padding: 0 1.25rem;
}

.footer-bottom-license {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #7A7A8A;
  text-align: center;
  margin: 0 auto;
  max-width: 43.75rem;
}

.footer-bottom-license a {
  color: #9A9AB0;
  text-decoration: underline;
}

.footer-bottom-row {
  padding: 1.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: row nowrap;
}

.footer-bottom-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
  max-width: 45.25rem;
  width: 100%;
  margin: 0 auto;
}

.footer-bottom-col p {
  margin: 0;
  color: #9A9AB0;
  font-size: 0.75rem;
  line-height: 1rem;
}

.footer-bottom-col_flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: row nowrap;
  gap: 0.5rem;
}

.footer-bottom-col_text {
  margin-bottom: 0.75rem;
}

.footer-menu {
  padding: 1.5rem 0;
}

.footer-menu.red {
  background: #440907;
}

.footer-menu__link {
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1rem;
  text-decoration: underline;
  margin: 0 0.3125rem;
  transition: color var(--transition);
}

.footer-menu__link:hover {
  color: var(--gold);
}

.footer-age {
  margin: 0 0.5rem;
}

.footer-age img {
  width: 2.25rem;
  height: 2.25rem;
}

.footer-license {
  text-align: center;
  margin: 0 0.5rem;
}

.joc-icon {
  width: 6.25rem;
  height: 2.5rem;
  display: block;
}

.joc-icon img {
  width: 100%;
  height: 100%;
}

.footer-license__icon {
  position: relative;
  width: 2.5rem;
  display: block;
  margin: 0 auto;
}

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */

@media screen and (max-width: 1024px) {
  .hero__layout {
    gap: 1.25rem;
  }

  .hero__girl {
    max-width: 220px;
  }

  .hero__girl img {
    max-height: 360px;
  }

  .hero__card {
    padding: 1.5rem;
  }

  .hero__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .second__section h2 {
    font-size: 1.25rem;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */

@media screen and (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-position: 30% top;
    background-size: auto 13%;
  }

  /* Header */
  .header .container {
    height: 3.5rem;
  }

  .header__logo {
    height: 1.75rem;
  }

  .btn-yellow,
  .btn-red {
    padding: 0.45rem 0.875rem;
    font-size: 0.8rem;
  }

  /* Hero — full screen, card pinned to bottom */
  .hero {
    height: 90svh;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
  }

  .hero__layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .hero__girl {
    display: none;
  }

  .hero__container {
    padding: 0 0 1.25rem;
    width: 100%;
  }

  /* frosted card panel at the bottom */
  .hero__card {
    max-width: 100%;
    width: 100%;
    padding: 1.1rem 0 0.75rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    background: rgba(10, 8, 28, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    margin-left: 0;
  }

  .hero__subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    padding: 0 1rem;
  }

  /* ── SWIPE SLIDER ── */
  .hero__grid {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 1rem 0.25rem;
    /* reset grid */
    grid-template-columns: unset;
  }

  .hero__grid::-webkit-scrollbar {
    display: none;
  }

  .game {
    flex: 0 0 50vw;
    max-width: 72vw;
    scroll-snap-align: center;
  }

  .game__text strong {
    font-size: 0.8rem;
  }

  .game__text span {
    font-size: 0.7rem;
  }

  /* dot indicators */
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0 0;
  }

  .slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
  }

  .slider-dot.active {
    background: var(--gold);
    transform: scale(1.35);
  }

  /* Second section */
  .second__section {
    padding: 2.5rem 1rem;
  }

  .second__section h2 {
    font-size: 1.125rem;
  }

  .second__section h3 {
    font-size: 1rem;
  }

  .second__section p {
    font-size: 0.875rem;
  }

  /* Footer */
  .footer-providers {
    padding: 1.25rem 0.75rem 1.75rem;
  }

  .footer-providers a {
    margin: 0.5rem;
    height: 1.875rem;
    width: 4.5rem;
  }

  .footer-bottom {
    padding: 0 0.75rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
  }

  .footer-bottom-row:first-child {
    padding: 1.5rem 0;
  }

  .footer-bottom-row::after {
    left: 1.5rem;
    right: 1.5rem;
    width: auto;
    max-width: none;
  }

  .footer-bottom-col p {
    text-align: center;
  }

  .footer-bottom-col_text {
    margin-bottom: 0.5rem;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max 420px)
   ============================================= */

@media screen and (max-width: 420px) {
  .header__btns {
    gap: 0.375rem;
  }

  .btn-yellow span,
  .btn-red span {
    display: none; /* icon-only on very small screens */
  }

  .btn-yellow,
  .btn-red {
    padding: 0.5rem 0.625rem;
  }

  .hero__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .hero__card {
    padding: 1rem 0.75rem;
  }

  .second__section h2 {
    font-size: 1rem;
  }
}

/* =============================================
   RESPONSIVE — LARGE SCREENS (min 1280px)
   ============================================= */

@media screen and (min-width: 1280px) {
  .hero__girl img {
    max-height: min(560px, calc(100vh - 10rem));
  }

  .hero__card {
    max-width: 500px;
    padding: 1.5rem 2rem;
  }

  .hero__grid {
    gap: 0.875rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }
}

/* =============================================
   CARD ENTRANCE ANIMATIONS
   ============================================= */

/* keyframes */
@keyframes cardFadeUp {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes subtitleSlide {
  0%   { opacity: 0; transform: translateY(-16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* hero subtitle */
.hero__subtitle {
  animation: subtitleSlide 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.15s;
}

/* game cards — hidden until JS fires */
.game {
  opacity: 0;
  transform: translateY(40px) scale(0.92);
}

/* JS adds this — transition to final state */
.game.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity  0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

/* scroll-reveal for other elements */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   LOADING SHIMMER (for slow connections)
   ============================================= */

.game__img img {
  background: linear-gradient(90deg, #1e1b30 25%, #2a263f 50%, #1e1b30 75%);
  background-size: 200% 100%;
}
