/* Main CSS Entry Point for Laravel Landing Page */
/* Clean, organized CSS imports - Migrated from Next.js */

/* 1. Base styles */
@import './base/reset.css';
@import './base/style.css';
@import './base/main.css';
@import './base/main-extended.css';

/* 2. Component styles */
@import './components/mobile-nav.css';
@import './components/home/characters-section.css';
@import './components/home/register-gift-section.css';
@import './components/home/register-gift-button.css';
@import './components/home/register-gift-progress-bar.css';
@import './components/home/register-gift-participants-counter.css';
@import './components/home/news-section.css';
@import './components/home/news-hero.css';
@import './components/home/news-sidebar.css';
@import './components/home/tab-navigation.css';
@import './components/home/news-card.css';

/* 3. Feature styles */
@import './features/characters/character-skills.css';
@import './features/characters/character-hero-section.css';

/* 4. Vendors */
@import './vendors/swiper.css';
@import './vendors/gdpr-cookie-consent-public.min.css';
@import './vendors/gdpr-cookie-consent-public-variables.min.css';
@import './vendors/gdpr-cookie-consent-frontend.min.css';

/* 5. Landing Page Specific Styles */

/* Header Transparency Logic */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000 !important;
  padding: 1.125rem 2.75rem;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

header .header-container {
  border-radius: 5px;
  display: flex;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
  background-color: transparent;
  position: relative;
  align-items: center;
  justify-content: space-between;
}

header .header-container::before {
  transition: all 0.3s;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  content: "";
  left: 0;
  top: 0;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    rgba(35, 41, 55, 0.9) 0%,
    rgba(43, 49, 65, 0.9) 30%,
    rgba(40, 46, 64, 0.9) 57%,
    rgba(31, 37, 52, 0.9) 79%,
    rgba(21, 26, 37, 0.9) 100%
  );
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

header.header-scroll .header-container::before {
  opacity: 1;
}

header .header-container .logo {
  width: 265px;
  transition: all 0.3s;
}

header.header-scroll .header-container .logo {
  width: 210px;
}

header .header-container .logo img {
  width: 100%;
  height: auto;
}

/* Navigation Menu */
header .header-container nav {
  display: flex;
  justify-content: flex-end;
  margin-right: 2rem;
}

header .header-container nav ul.main-nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
  align-items: center;
}

header .header-container nav ul.main-nav-menu > li {
  position: relative;
}

header .header-container nav ul.main-nav-menu > li a,
header .header-container nav ul.main-nav-menu > li button {
  font-family: 'kof-main-font', Arial, sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
  letter-spacing: 0.025rem;
}

header .header-container nav ul.main-nav-menu > li:hover > a,
header .header-container nav ul.main-nav-menu > li:hover > button {
  text-shadow: 0px 0px 7px rgb(220, 38, 38);
}

header .header-container nav ul.main-nav-menu > li.current-menu-item a {
  color: #dc2626;
}

/* Dropdown Menu */
header .header-container nav ul.main-nav-menu > li.menu-item-has-children {
  position: relative;
}

header .header-container nav ul.main-nav-menu > li.menu-item-has-children .dropdown-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s;
  padding-top: 1rem;
}

header .header-container nav ul.main-nav-menu > li.menu-item-has-children.open .dropdown-wrapper,
header .header-container nav ul.main-nav-menu > li.menu-item-has-children:hover .dropdown-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

header .header-container nav ul.main-nav-menu > li.menu-item-has-children .dropdown {
  background: rgba(18, 22, 31, 0.95);
  border-radius: 8px;
  padding: 1rem;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

header .header-container nav ul.main-nav-menu > li.menu-item-has-children .dropdown li {
  margin-bottom: 0.5rem;
}

header .header-container nav ul.main-nav-menu > li.menu-item-has-children .dropdown li:last-child {
  margin-bottom: 0;
}

header .header-container nav ul.main-nav-menu > li.menu-item-has-children .dropdown li a {
  font-size: 1rem;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
}

header .header-container nav ul.main-nav-menu > li.menu-item-has-children .dropdown li a:hover {
  background: rgba(220, 38, 38, 0.2);
  text-shadow: none;
}

/* Hamburger Menu */
header .header-container .hamburger {
  display: none;
  flex-direction: column;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
  order: 3;
}

header .header-container .hamburger > div {
  width: 20px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
}

header .header-container .hamburger > div:not(:last-child) {
  margin-bottom: 5px;
}

/* Topup Button */
header .header-container .main-btn button,
header .header-container .main-btn a {
  padding: 0.5rem 1.5rem;
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  border: 2px solid #dc2626;
  border-radius: 0;
  font-family: 'kof-main-font', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1rem;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

header .header-container .main-btn button span {
  letter-spacing: .025rem;
  font-size: 1.25rem;
  line-height: 1.25rem;
}

.main-btn button span {
  color: #000;
  letter-spacing: .091rem;
  text-transform: uppercase;
  z-index: 1;
  font-family: kof-main-font, Arial, sans-serif;
  font-size: 1.813rem;
  line-height: 2.188rem;
  position: relative;
}

header .header-container .main-btn button:hover,
header .header-container .main-btn a:hover {
  background: #b51f1f;
  border-color: #b51f1f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-section .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section .video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-section .logo-banner {
  max-width: 700px;
  width: 90%;
  height: auto;
}

.hero-section .download-text {
  font-family: 'HomePlanetBB-Bold', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.1em;
}

.hero-section .download-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.hero-section .download-buttons a {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-section .download-buttons a:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.hero-section .download-buttons img {
  height: 60px;
  width: auto;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-section .logo-banner {
    max-width: 400px;
  }
  
  .hero-section .download-text {
    font-size: 1.8rem;
  }
  
  .hero-section .download-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-section .download-buttons img {
    height: 50px;
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  visibility: hidden;
  transition: all 0.8s;
  z-index: 999;
  display: flex;
  pointer-events: none;
  justify-content: flex-end;
  height: 100vh;
  align-items: flex-end;
  overflow: hidden;
  width: 100%;
  right: 0;
  top: 0;
}

.mobile-nav::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  right: 0;
  z-index: -1;
  transition-delay: 0.3s;
  transition: transform cubic-bezier(0.77, 0, 0.175, 1) 0.8s;
  background: linear-gradient(
    125deg,
    rgba(48, 56, 75, 0.65) 0%,
    rgba(21, 26, 37, 0.65) 100%
  );
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transform: translateX(100%) translateY(0);
}

body.nav-active .mobile-nav {
  visibility: visible;
  pointer-events: all;
}

body.nav-active .mobile-nav::before {
  transform: translateX(0%) translateY(0);
}

body.nav-active {
  overflow: hidden;
}

.mobile-nav .nav__content {
  width: 94.9%;
  text-align: left;
  height: 85%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-nav .nav__content ul.menu {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.mobile-nav .nav__content ul.menu > li {
  margin-bottom: 1.5rem;
}

.mobile-nav .nav__content ul.menu > li a,
.mobile-nav .nav__content ul.menu > li button {
  font-family: 'kof-main-font', Arial, sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  display: block;
  transition: all 0.3s;
}

.mobile-nav .nav__content ul.menu > li a:hover,
.mobile-nav .nav__content ul.menu > li button:hover {
  color: #dc2626;
}

.mobile-nav .nav__content ul.menu > li.current-menu-item a {
  color: #dc2626;
}

/* Mobile Sub-menu */
.mobile-nav .nav__content ul.menu > li.menu-item-has-children button {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 25px 8px 0;
  transition: all 0.3s ease;
  max-width: 100%;
  font-family: 'kof-main-font', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 2rem;
  letter-spacing: 0.063rem;
  cursor: pointer;
}

/* Dropdown icon for mobile submenu */
.mobile-nav .nav__content ul.menu > li.menu-item-has-children button::before {
  content: "";
  position: absolute;
  right: 0;
  width: 15px;
  height: 13px;
  background-image: url('/images/arrow-down.svg');
  background-repeat: no-repeat;
  background-size: cover;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.mobile-nav .nav__content ul.menu > li.menu-item-has-children button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #dc2626;
  transition: width 0.3s ease;
  max-width: calc(100% - 25px);
}

.mobile-nav .nav__content ul.menu > li.menu-item-has-children button:hover {
  color: #dc2626;
}

.mobile-nav .nav__content ul.menu > li.menu-item-has-children button:hover::after {
  width: 100%;
}

/* Rotate arrow when submenu is open */
.mobile-nav .nav__content ul.menu > li.menu-item-has-children.open button::before {
  transform: translateY(-50%) rotate(180deg);
}

.mobile-nav .nav__content ul.menu > li.menu-item-has-children .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  list-style: none;
  padding: 0;
}

.mobile-nav .nav__content ul.menu > li.menu-item-has-children.open .sub-menu {
  max-height: 1000px;
}

.mobile-nav .nav__content ul.menu > li.menu-item-has-children .sub-menu li {
  margin-bottom: 0.75rem;
}

.mobile-nav .nav__content ul.menu > li.menu-item-has-children .sub-menu li a {
  font-size: 1.2rem;
  padding: 0.5rem;
}

.mobile-nav .nav__content .main-btn {
  width: fit-content !important;
  opacity: 0;
  margin-top: 2rem;
}
.mobile-nav .nav__content .main-btn button,
.mobile-nav .nav__content .main-btn a {
  padding: 0.5rem 1.625rem;
}
.mobile-nav .nav__content .main-btn button span,
.mobile-nav .nav__content .main-btn a span {
  font-size: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  header .header-container nav {
    display: none;
  }
  
  header .header-container .hamburger {
    display: flex;
  }
  
  header {
    padding: 1rem 1.5rem;
  }
  
  header .header-container {
    padding: 0.5rem;
  }
  
  header .header-container .logo {
    width: 180px;
  }
  
  header.header-scroll .header-container .logo {
    width: 150px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }
  
  header .header-container .logo {
    width: 150px;
  }
  
  header.header-scroll .header-container .logo {
    width: 120px;
  }
  
  header .header-container .main-btn button span,
  header .header-container .main-btn a span {
    font-size: 1rem;
    line-height: 1rem;
    letter-spacing: .025rem;
  }
  
  header .header-container .main-btn button,
  header .header-container .main-btn a {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .main-btn button span {
    font-size: 1.2rem;
    line-height: 1.4rem;
    letter-spacing: .05rem;
  }
  
  /* Mobile nav button responsive */
  .mobile-nav .nav__content .main-btn button,
  .mobile-nav .nav__content .main-btn a {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }
}

/* Global Landing Page Styles */
body.landing-page {
  background-color: #12161f;
  color: #fff;
  overflow-x: hidden;
}

.landing-page section {
  position: relative;
  width: 100%;
}

