/* ==========================================================================
   GLOBAL DESIGN SYSTEM & STYLESHEET
   Project: BET SMART WIN BIGGER - Static HTML/CSS/JS Platform
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@100..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* CSS Variables */
:root {
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette */
  --bg-primary: #0a0b0d;
  --bg-secondary: #12141c;
  --bg-card: #181b26;
  --bg-input: #1f2333;
  --bg-nav: #0d0f14;

  --accent-orange: #FF154B;
  --accent-orange-hover: #ff3b68;
  --accent-orange-glow: rgba(255, 21, 75, 0.4);

  --accent-green: #00e676;
  --accent-green-hover: #00b359;
  --accent-green-glow: rgba(0, 230, 118, 0.4);

  --text-white: #ffffff;
  --text-light: #f5f6f8;
  --text-muted: #8d92a3;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(255, 21, 75, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Layout sizes */
  --header-height: 80px;
  --navbar-height: 50px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: black;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  margin-top: calc(-1 * var(--navbar-height));
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

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

ul {
  list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.2;
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0;
}

@media (max-width: 1440px) {
  .container {
    padding: 0 24px;
  }
}


/* Common UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #B00927);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(255, 21, 75, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-orange-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-secondary:hover {
  background: var(--text-white);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-green {
  background: white;
  color: black;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.2);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-green-glow);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* Header & Top Bar Layout */
header {
  background-color: black;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0;
}

@media (max-width: 1440px) {
  .header-top {
    padding: 0 24px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.02);
  opacity: 0.95;
}


/* Header Login Form */
.login-form-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-form input {
  background-color: #1a1c24;
  border: 1px solid #2d303f;
  color: var(--text-white);
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 0;
  width: 160px;
  transition: all var(--transition-fast);
}

.login-form input:focus {
  border-color: #FF154B;
  box-shadow: none;
}

.login-form button {
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  padding: 8px 18px !important;
  text-transform: uppercase !important;
  letter-spacing: 0px !important;
  height: 34px;
}

.login-form .btn-primary {
  background: linear-gradient(135deg, #FF154B, #B00927) !important;
  box-shadow: none !important;
}

.login-form .btn-primary:hover {
  background: linear-gradient(135deg, #ff3b68, #c90e32) !important;
  transform: none !important;
}

.login-form .btn-green {
  background: #ffffff !important;
  color: black !important;
  box-shadow: none !important;
}

.login-form .btn-green:hover {
  background: #f3f4f5 !important;
  transform: none !important;
}

/* User Logged In Profile State (JS active) */
.user-profile-widget {
  display: none;
  align-items: center;
  gap: 15px;
}

.user-profile-widget.active {
  display: flex;
}

.user-balance-info {
  text-align: right;
}

.user-balance-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.user-balance-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-green);
}

.user-profile-details {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--border-color);
  padding-left: 15px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-input);
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.9rem;
}

.btn-logout {
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
}

.btn-logout:hover {
  color: var(--accent-orange);
}

/* Sticky Header & Navbar Wrapper */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: box-shadow var(--transition-fast);
}

/* Navbar container */
.navbar {
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  position: relative;
  z-index: 999;
  height: var(--navbar-height);
}

.navbar-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 55px;
  height: 100%;
}

.nav-links li {
  height: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 4px;
  height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  /* text-transform: uppercase; */
  letter-spacing: 0.3px;
  color: #ffffff;
  border-bottom: 3px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.active {
  color: #ffffff;
  border-bottom-color: var(--accent-orange);
}


/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 24px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

/* Footer styling */
footer {
  background-color: #06070a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  font-size: 14px;
  color: #dddddd;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 970px;
  height: 100%;
  background-color: #D40E37;
  opacity: 0.25;
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

footer .container {
  position: relative;
  z-index: 2;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1fr 1.25fr;
  gap: 40px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-desc {
  line-height: 1.6;
  font-size: 0.88rem;
  color: #D6D6D6;
  margin-top: 15px;
  margin-bottom: 25px;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: none;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.footer-links-list a {
  color: #D6D6D6;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--accent-orange);
  transform: translateX(3px);
}

.footer-social-row {
  display: flex;
  gap: 14px;
}

.social-circle-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.social-circle-link svg {
  width: 16px;
  height: 16px;
}

.social-circle-link:hover {
  border-color: var(--accent-orange);
  color: var(--text-white);
  background-color: rgba(255, 21, 75, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 21, 75, 0.3);
}

.footer-divider {
  border-top: 1px solid rgb(255 255 255 / 40%);
  margin-top: 50px;
  margin-bottom: 25px;
  width: 100%;
}

.footer-copyright-text {
  font-size: 0.85rem;
  color: #D6D6D6;
  text-align: left;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Media Queries */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: static;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #06070a;
    flex-direction: column;
    padding: 30px 24px;
    gap: 18px;
    transition: all var(--transition-normal);
    z-index: 2000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    display: flex !important;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    height: auto;
  }

  .nav-links a {
    height: auto;
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: none;
  }

  .navbar {
    background: transparent !important;
    border: none !important;
    height: 0 !important;
    position: absolute !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1999;
  }

  .header-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
  }

  /* Form inside drawer styling */
  .nav-links .login-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
  }

  .nav-links .login-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .nav-links .login-form input {
    width: 100% !important;
    background-color: #1a1c24;
    border: 1px solid #2d303f;
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 6px !important;
  }

  .nav-links .login-form button {
    width: 100% !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
  }

  .nav-links .user-profile-widget {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
  }

  .nav-links .user-balance-info {
    text-align: center;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .nav-links .user-profile-details {
    width: 100%;
    justify-content: center;
  }

}

/* Page container padding adjustments for overlay navbar */
.hero {
  padding-top: 170px !important;
}