@import url('../root.css');

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

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

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFFFFF;
  min-height: 100vh;
  overflow: auto !important;
  padding-top: 90px;
}

html {
  scroll-behavior: smooth;
}

/* ===================================
   NAVIGATION BAR
   =================================== */

nav {
  background-color: #0e0e1041;
  backdrop-filter: blur(10px);
  padding: 1.5rem 20rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 90px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.logo-section img {
  width: 40px;
  height: 40px;
  border-radius: 0px;
}

.logo-section h1 {
  font-size: 1.8rem;
  font-weight: 700 !important;
  color: #ff6600;
  margin: 0;
}

/* Navigation Container (Desktop) */
.nav-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #B0B0B0;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.7rem 0;
  position: relative;
  transition: color 0.3s ease;
}

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

a.active {
  color: #CC5200 !important;
  font-weight: 700 !important;
}

/* Navigation Right (Desktop) */
nav > .nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-container .nav-right {
  display: none;
}

/* Dashboard Button */
.dashboard-btn {
  background-color: #DF4705;
  color: #FFFFFF;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  transition: all 0.3s ease;
}

.dashboard-btn:hover {
  background-color: #CC5200;
  transform: translateY(-1px);
}

/* Flags */
.desktop-flag {
  width: 38px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.desktop-flag:hover {
  border-color: #FF6600;
  transform: scale(1.05);
}

.mobile-flag {
  width: 45px;
  height: 33px;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid #404040;
  cursor: pointer;
}

.mobile-flag:hover {
  transform: scale(1.1);
  border-color: #FF6600;
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================
   HAMBURGER MENU
   =================================== */

.hamburger {
  cursor: pointer;
  z-index: 100001;
  position: relative;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
}

.hamburger input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  opacity: 0;
  cursor: pointer;
  z-index: 20001;
}

.hamburger svg {
  width: 48px;
  height: 48px;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: #FFFFFF;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* Burger Menu Background & Overlay */
.burger-menu-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#burger-toggle:checked ~ .burger-menu-bg {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.burger-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 24, 24, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  z-index: 99999;
}

#burger-toggle:checked ~ .burger-menu-overlay {
  opacity: 1 !important;
  visibility: visible !important;
}

.burger-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  z-index: 999999;
}

.burger-menu-list li {
  margin: 2rem 0;
}

.burger-menu-list a {
  color: #FFFFFF;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.2s;
}

.burger-menu-list a:hover {
  color: #FF6600;
}

/* Blur effect when menu is open */
body:has(#burger-toggle:checked) > *:not(nav) {
  filter: blur(10px);
  transition: filter 0.3s ease;
}

body > *:not(nav) {
  filter: none;
  transition: filter 0.3s ease;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Desktop Large (1345px+) */
@media (min-width: 1345px) {
  nav > .nav-right {
    display: flex;
  }
  
  .nav-container .nav-right {
    display: none;
  }
  
  .hamburger {
    display: none !important;
  }
  
  #burger-toggle,
  .burger-menu-bg,
  .burger-menu-overlay {
    display: none !important;
  }
}

/* Tablet/Small Desktop (1025px - 1344px) */
@media (max-width: 1344px) and (min-width: 1025px) {
  nav {
    padding: 1.2rem 6rem;
    height: 80px;
  }
  
  .nav-container {
    gap: 2rem;
  }
  
  .logo-section h1 {
    font-size: 1.7rem;
  }
  
  .nav-links li a {
    font-size: 1.2rem;
    font-weight: 700;
  }
  
  .dashboard-btn {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }
  
  nav > .nav-right {
    display: none;
  }
  
  .nav-container .nav-right {
    display: flex;
  }
}

/* Tablet (768px - 1344px) - Burger Menu Active */
@media (max-width: 1344px) {
  nav {
    padding: 1.5rem 3rem;
    height: 80px;
    justify-content: space-between;
  }
  
  .logo-section {
    position: static;
  }
  
  .nav-container {
    display: none;
  }
  
  nav > .nav-right {
    display: none;
  }
  
  .hamburger {
    display: inline-flex;
  }
  
  /* Burger Menu Container */
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(20px);
    overflow-y: auto;
    gap: 2rem;
  }
  
  .nav-container.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* Burger Menu Links */
  .nav-container .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
    margin: 0;
    padding: 0;
  }
  
  .nav-container .nav-links li {
    width: 100%;
  }
  
  .nav-container .nav-links li a {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    display: block;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #404040;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  .nav-container .nav-links li a:hover {
    background: linear-gradient(135deg, #DF4705 0%, #FF6600 100%);
    border-color: #DF4705;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 71, 5, 0.4);
  }
  
  .nav-container .nav-links li a.active {
    background: linear-gradient(135deg, #DF4705 0%, #FF6600 100%);
    border-color: #DF4705;
    color: #FFFFFF;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(223, 71, 5, 0.3);
  }
  
  /* Burger Menu Right Section */
  .nav-container .nav-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
  }
  
  .nav-container .dashboard-btn {
    font-size: 1.2rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #DF4705 0%, #FF6600 100%);
    box-shadow: 0 4px 15px rgba(223, 71, 5, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    color: #FFFFFF;
  }
  
  .nav-container .dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 71, 5, 0.4);
    background: linear-gradient(135deg, #CC5200 0%, #DF4705 100%);
  }
  
  .nav-container .mobile-flag {
    width: 50px;
    height: 38px;
    border-radius: 8px;
    border: 2px solid #404040;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .nav-container .mobile-flag:hover {
    transform: scale(1.05);
    border-color: #DF4705;
    box-shadow: 0 6px 20px rgba(223, 71, 5, 0.3);
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  nav {
    padding: 1.2rem 4rem;
    height: 80px;
  }
  
  .logo-section h1 {
    font-size: 1.7rem;
  }
  
  .nav-links li a {
    font-size: 1.2rem;
    font-weight: 700;
  }
  
  .dashboard-btn {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  nav {
    padding: 1.5rem 2rem;
    height: 80px;
  }
  
  body {
    padding-top: 80px;
  }
  
  .nav-container {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .nav-container .nav-links {
    max-width: 280px;
    gap: 1.2rem;
  }
  
  .nav-container .nav-links li a {
    font-size: 1.1rem;
    padding: 0.9rem 1.2rem;
  }
  
  .nav-container .nav-right {
    max-width: 280px;
    gap: 1.2rem;
  }
  
  .nav-container .dashboard-btn {
    font-size: 1.1rem;
    padding: 0.9rem 1.5rem;
  }
  
  .nav-container .mobile-flag {
    width: 40px;
    height: 30px;
  }
}
