/* ====== Reset & Base Layout ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url("../../images/background.png") no-repeat center center fixed;
  background-size: cover;
  background-color: #000; /* Fallback */
  color: #fff;
}


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.page-wrapper {
  flex: 1 0 auto;
}

/* ====== Header ====== */
#custom-header {
  background-image: url('../../images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 10px 0;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 20px;
}

/* ====== Left: Coin + Logo + Title ====== */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.coin-wrapper {
  height: 60px;
  display: flex;
  align-items: center;
}

.coin-animate {
  width: 40px;
  height: 40px;
  animation: coinJumpFlip3 2.2s infinite cubic-bezier(0.445, 0.05, 0.55, 0.95);
  transform-origin: center;
}

@keyframes coinJumpFlip3 {
  0% { transform: translateY(0) rotateX(0deg); }
  20% { transform: translateY(-40px) rotateX(360deg); }
  50% { transform: translateY(0) rotateX(720deg); }
  70% { transform: translateY(-20px) rotateX(1080deg); }
  100% { transform: translateY(0) rotateX(1440deg); }
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.logo-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffeb3b;
  text-shadow: 1px 1px 2px black;
  white-space: nowrap;
}

/* ====== Center: Navigation ====== */
.main-nav {
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.main-nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus,
.main-nav ul li a:active {
  color: #00ffc8;
}


/* ====== Right Side: Login Section ====== */

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
}

.login-buttons-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* ⬅ Center align everything inside */
}

.register-btn {
  background: gold;
  color: #000;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}


.register-btn:hover {
  background: darkorange;
  color: white;
}


.login-buttons {
  display: flex;
  gap: 8px;
}

.login-buttons .btn {
  background: #00b386;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.login-buttons .btn:hover {
  background: #009e74;
}

/* ====== Footer ====== */
#footer {
  background-image: url('../../images/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ddd;
  padding: 50px 20px 20px;
  font-size: 15px;
  position: relative;
  margin-top: auto;
}

#footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

#footer * {
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;        /* ✅ desktop: side-by-side */
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
}


.footer-column {
  flex: 1 1 250px;     /* ✅ desktop layout */
  padding: 10px 15px;
  box-sizing: border-box;
}

.footer-column h3 {
  color: #ffeb3b;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column ul {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #00ffc8;
}

.social-icons a {
  margin-right: 10px;
  font-size: 18px;
  color: #ccc;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00ffc8;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}

/* ====== Language Switcher ====== */

.language-switcher {
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

.language-switcher select {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 4px;
  background: white;
  color: #333;
  border: 1px solid #ccc;
}
/* ====== Language Switcher End ====== */

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 15px;
    justify-items: center;
  }

  .header-left,
  .main-nav,
  .login-section {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .header-left {
  justify-content: flex-start;
  padding-left: 90px;
}

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .header-right {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

  .login-section {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
  }

  .login-buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .register-btn {
    font-size: 14px;
    padding: 8px 16px;
    width: 160px;
  }

  .login-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
  }

  .login-buttons .btn {
    width: 160px;
    font-size: 14px;
    padding: 8px;
    text-align: center; /* ✅ Center-align text inside buttons */
  }

  .language-switcher {
    width: 100%;
    margin-top: 5px;
    text-align: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .footer-column {
    width: 100%;
    max-width: 500px;
    padding: 10px 20px;
    text-align: center;
    display: block;
  }

  .footer-column h3 {
    color: #ffeb3b;
    margin-bottom: 10px;
    font-size: 18px;
  }

  .footer-column p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: block;
  }

  .footer-column ul {
    padding-left: 0;
    list-style: none;
  }

  .footer-column ul li {
    margin-bottom: 6px;
  }

  .footer-column ul li a {
    color: #ccc;
    text-decoration: none;
  }

  .footer-column ul li a:hover {
    color: #00ffc8;
  }
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .footer-column {
    flex: none;
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 10px 15px;
    box-sizing: border-box;
  }
}

