/* Main Layout & Global Styles - Exact from Vite Original */
@import './variables.css';

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
  }
}

.header__container {
  height: 100%;
  width: 100%;
  max-width: 1440px;
  position: relative;
  display: flex;
  align-items: center;
}

.header__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  z-index: 1001;
  margin-right: auto;
  padding-left: 40px;
}

@media (max-width: 768px) {
  .header__logo {
    padding-left: 0;
  }
}

/* Desktop Navigation */
.header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 40px;
}

@media (max-width: 900px) {
  .header__nav {
    display: none;
  }
}

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  padding: 10px 0;
}

.nav__link:hover,
.nav__link--active {
  color: #9B3DFF;
}

/* Catalog Dropdown */
.nav__item-wrapper {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav__item-wrapper:hover>.nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: unset;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1100;
  pointer-events: none;
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav__dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav__dropdown-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.nav__dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__dropdown-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.nav__dropdown-desc {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav__dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.nav__dropdown-all {
  justify-content: center;
  color: #9B3DFF;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* Burger Button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 6px;
}

@media (max-width: 900px) {
  .burger {
    z-index: 2000;
    display: flex;
    position: fixed;
    top: 15px;
    right: 20px;
  }
}

.burger__line {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  position: relative;
  transform-origin: center;
}

.burger--active .burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.burger--active .burger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  z-index: 1500;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mobile-menu__link {
  font-size: 28px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
}

.mobile-menu__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #9B3DFF;
  transition: width 0.3s ease;
}

.mobile-menu__link:hover::after,
.mobile-menu__link--active::after {
  width: 100%;
}

/* ==========================================================================
   Shared Components
   ========================================================================== */
.icon-box {
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 2px solid rgba(159, 48, 248, 0.3);
  background: rgba(159, 48, 248, 0.12);
  color: #9f30f8;
  font-size: 28px;
  transition: all 0.25s ease;
}

@media (max-width: 1024px) {
  .icon-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 24px;
    border-radius: 14px;
  }
}

.icon-box--sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 18px;
  border-radius: 16px;
}

@media (max-width: 1024px) {
  .icon-box--sm {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 14px;
    border-radius: 14px;
  }
}

.icon-box--lg {
  width: 56px;
  height: 56px;
  min-width: 56px;
  font-size: 24px;
  border-radius: 16px;
}

.accent-divider {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 440px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.accent-divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #9f30f8 0%, rgba(159, 48, 248, 0.15) 100%);
}

.accent-divider::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid #9f30f8;
  box-shadow: 0 0 10px #9f30f8;
  flex-shrink: 0;
}

.contact-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding: 16px 28px;
  border: 1px solid rgba(159, 48, 248, 0.3);
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
}

.contact-bar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s;
}

.contact-bar a:hover {
  color: #9f30f8;
}

.contact-bar a svg {
  color: #9f30f8;
  font-size: 18px;
}

@media (max-width: 768px) {
  .contact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
}

/* Buttons */
.btn-primary {
  background: #9B3DFF;
  color: #FFF;
  border: none;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(155, 61, 255, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(155, 61, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  border-color: #FFF;
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
  background: #000;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer__wrapper {
  width: 100%;
  max-width: 1440px;
  padding: 80px 20px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

@media (max-width: 1024px) {
  .footer__wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer__wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 20px;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  display: inline-block;
}

.footer__col h4 {
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1.2px;
  font-weight: 700;
  opacity: 0.9;
}

.footer__col p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer__col a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.footer__col a:hover {
  color: #9B3DFF;
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .footer__col {
    align-items: center;
  }

  .footer__col a:hover {
    transform: none;
  }
}

.footer__copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer__copyright {
    flex-direction: column;
    gap: 15px;
  }
}