/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 90%;
  width: 100%;
  font-family: Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

/* Header full height */
header {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding-bottom: 200px;
}

/* === DESKTOP === */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #0f171f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  z-index: 10;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-nav {
  color: white;
  font-size: 28px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 5px;
}

.nav-links li a {
  color: #ff0000;
  text-decoration: none;
  font-size: 18px;
}

.hamburger {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* === MOBILE === */
@media screen and (max-width: 768px) {
  .top-nav {
    background-color: transparent;
    height: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 150px;
    height: 100vh;
    background-color: rgba(15, 23, 31, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    padding: 80px 20px;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 20;
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
    z-index: 30;
  }

  .nav-container {
    justify-content: space-between;
  }

  .nav-links li a {
    font-size: 20px;
  }
}

/* Video background */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.vid-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.triangle-row {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  display: flex;
  z-index: 2;
}

.side-left {
  flex: 1;
  background-color: rgba(15, 23, 31, 0.65);

  display: flex; /* 🔥 trebuie adăugat */
  align-items: center;
  justify-content: center;
  height: 100%;
}
.side-right {
   flex: 1;

  background-color: rgba(15, 23, 31, 0.65);
  display: flex; /* 🔥 trebuie adăugat */
  align-items: center;
  justify-content: center;
  height: 100%;
}

.triangle-container {
  display: flex;
  align-items: flex-end;
}

.triangle-img {
  height: 200px;
  width: auto;
  display: block;
}

.logo-container {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
}

.bottom-align-group {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.site-logo {
  width: clamp(120px, 40vw, 650px);
  height: auto;
  transition: transform 0.3s ease, width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

@media screen and (max-width: 600px) {
  .site-logo {
    width: 120px;
  }
}

.logo-buttons {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 4;
}

.btn-left,
.btn-right {
  position: absolute;
  bottom: 200px;
  width: 300px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 4;
}

.btn-left {
  left: calc(50% - 325px - 400px);
}

.btn-right {
  left: calc(50% + 325px + 100px);
}

.btn-left:hover,
.btn-right:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 800px) {
  .btn-left,
  .btn-right {
    position: static;
    display: block;
    margin: 10px auto;
    width: 100px;
  }
}

.nav-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-social a img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-social a img:hover {
  transform: scale(1.15);
  filter: brightness(1.2) drop-shadow(0 0 1px rgb(255, 255, 255));
}

.from-bottom {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  color: #ff0000;
  font-family: Arial, sans-serif;
  font-weight: bold;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.link-text {
  position: relative;
  z-index: 2;
}

.bg-animate {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #ff0000;
  z-index: 1;
  transition: height 0.3s ease 0.3s;
}

.from-bottom::before,
.from-bottom::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2px;
  height: 0;
  background-color: #ff0000;
  transition: height 0.3s ease;
  z-index: 3;
}

.from-bottom::before {
  left: 0;
}

.from-bottom::after {
  right: 0;
}

.from-bottom:hover::before,
.from-bottom:hover::after {
  height: 100%;
}

.from-bottom:hover .bg-animate {
  height: 100%;
}

.from-bottom:hover {
  color: #ffffff;
}

.logo-link:hover .site-logo {
  transform: rotate(-3deg) scale(1.02);
}

header.shrink {
  height: 60vh;
  transition: height 0.6s ease;
}

header.shrink .site-logo {
  width: clamp(80px, 25vw, 300px);
}

header.shrink .btn-left,
header.shrink .btn-right {
  width: 180px;
  bottom: 150px;
  left: calc(50% - 325px - 50px);
}

header.shrink .btn-right {
  left: calc(50% + 325px - 110px);
}

.site-logo,
.btn-left,
.btn-right {
  transition: all 0.4s ease;
}

.btn-left,
.btn-right {
  transition: bottom 1s ease;
}

@keyframes popup-flip-in {
  from {
    transform: rotateX(90deg) scale(0.8);
    opacity: 0;
  }
  to {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes popup-flip-out {
  from {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
  to {
    transform: rotateX(90deg) scale(0.8);
    opacity: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
/* 🔳 Dimensiuni popup register implicite */
.modal-content {
  animation: popup-flip-in 0.5s ease forwards;
  transform-origin: top center;
  perspective: 800px;
  transform-style: preserve-3d;
  position: relative;
  width: 90%;
  max-width: 600px;
  height: auto;
  max-height: 90vh;
  margin: 80px auto;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 20px #ff0000;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ✅ Versiune mică pentru login */
.modal-content.small-modal {
   animation: popup-flip-in 0.5s ease forwards;
  transform-origin: top center;
  perspective: 800px;
  transform-style: preserve-3d;
  position: relative;
  width: 90%;
  max-width: 600px;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 80px auto;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 20px #ff0000;
  overflow-y: auto;
  overscroll-behavior: contain;
}


.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* General iframe din modal */
.modal-content iframe {
  width: 100%;
  height: 800px;
  max-height: 80vh;
  border: none;
  display: block;
  overflow: hidden;
}

/* Login specific: versiune mică fără scroll */
.modal-content.small-modal iframe {
  height: 400px;
  max-height: none;
  min-height: 0;
  display: block;
  overflow: visible;
}

#login-message {
  display: none;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.nav-user {
  color: #fff;
  font-weight: bold;
  padding: 8px 12px;
  display: inline-block;
}

/* Modal cont */
#account-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

#account-modal .modal-content {
  background: rgba(0, 0, 0, 0.9); !important;
  border-radius: 10px;
  max-width: 1300px;         /* ✔️ Mărit de la auto */
  width: 95%;                /* ✔️ Scalabil */
  padding: 0;
  overflow: hidden;
  animation: popup-flip-in 0.5s ease forwards;
}

#account-modal iframe {
  width: 100%;
  height: none;
  min-height: 400px;
  border: none;
  background: transparent;
  display: block;
}

#close-account {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.account-dropdown {
  position: relative;
  display: none;
}

.account-dropdown .account-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 6px;
}

.account-dropdown .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.account-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  align:center;
  background-color: #0f171f;
  border: 1px solid #333;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 999;
}

.account-dropdown:hover .dropdown-menu {
  display: flex;
}

.account-dropdown ul {
  list-style: none; /* 🔥 elimină cercurile */
  padding: 0;
  margin: 0;
}


.dropdown-menu li a {
  text-align: center;
  padding: 10px;
  color: white;
  text-decoration: none;
  display: block;
}

.dropdown-menu li a:hover {
  background: #ff0000;
}

.hidden {
  display: none;
}

/* ✅ Afișează meniul contului după login */
.account-dropdown {
  display: flex;
  align-items: center;
}

/* ✅ Stil vizibil pentru nume user */
#username-header {
  color: white;
  font-weight: bold;
  display: inline !important;
}
.account-dropdown.hidden {
  display: none !important;
}


.homepage-section {
  padding: 60px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-header h2 {
  font-size: 32px;
  text-transform: uppercase;
  margin: 0;
}

.section-line {
  height: 3px;
  width: 120px;
  background: red;
  margin: 10px auto 20px auto;
}

.last-news-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.news-card {
  background: #181820;
  border-radius: 10px;
  overflow: hidden;
  width: 360px;
  box-shadow: 0 0 10px #00000044;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #aaa;
}

.news-badge {
  background: #38c172;
  color: black;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 12px;
}

.news-title {
  color: white;
  font-size: 17px;
  margin: 0;
}

.news-preview {
  font-size: 14px;
  color: #ccc;
}

.read-more {
  background: #f44336;
  color: white;
  text-align: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  width: fit-content;
  align-self: center;
  transition: background 0.3s;
}

.read-more:hover {
  background: #ff6655;
}

.view-all-button {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #c60000;
  color: white;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 0 6px #c60000aa;
  transition: background 0.3s ease;
}

.view-all-button:hover {
  background: #ff0000;
}
.modal iframe {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}


.site-footer {
  background-color: #0f171f;
  color: #aaa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-content {
  text-align: center;
  flex: 1;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #ccc;
  margin: 0 5px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-esrb img {
  width: 60px;
  height: auto;
}


.music-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.0);
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.music-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.music-button i {
  font-size: 20px;
  color: white;
  transition: transform 0.3s ease;
}

///



    .triangle-img {
      max-width: 80px;
    }

    .panel {
      border-radius: 16px;
      padding: 30px;
      box-shadow: 0 0 25px black, inset 0 0 5px #858585;
      min-width: 280px;
      max-width: 350px;
      width: 100%;
      transition: transform 0.3s ease;
    }





    .stat-line {
      display: flex;
      justify-content: space-between;
      margin: 12px 0;
      font-size: 18px;
      color: #ccc;
    }

    .label {

      font-weight: bold;
      text-shadow: 0 0 3px #ff0000cc;
    }

    .value {
      color: #00ccff;
      font-weight: bold;
      text-shadow: 0 0 10px #00ccff;
    }

    .online {
      color: #00ff00 !important;
      text-shadow: 0 0 8px #00ff00;
    }

    @media (max-width: 768px) {
      .triangle-row {
        flex-direction: column;
        gap: 20px;
      }

      .side-left,
      .side-right {
        flex: unset;
        width: 100%;
        padding: 10px;
      }
    }

///


