/**
 * FB777Pro Core Stylesheet
 * All classes use w3335 prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --w3335-primary: #FF4500;
  --w3335-secondary: #FF7F50;
  --w3335-dark: #0E1621;
  --w3335-darker: #3C3C3C;
  --w3335-gray: #808080;
  --w3335-medium-gray: #6C757D;
  --w3335-light: #F8F9FA;
  --w3335-white: #FFFFFF;
  --w3335-black: #000000;
  --w3335-gradient: linear-gradient(135deg, var(--w3335-primary), var(--w3335-secondary));
  --w3335-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --w3335-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--w3335-light);
  background-color: var(--w3335-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Container */
.w3335-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w3335-wrapper {
  background-color: var(--w3335-darker);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Header */
.w3335-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 22, 33, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 69, 0, 0.2);
  transition: all 0.3s ease;
}

.w3335-header.w3335-scrolled {
  background: rgba(14, 22, 33, 0.98);
  box-shadow: var(--w3335-shadow);
}

.w3335-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
}

.w3335-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w3335-primary);
}

.w3335-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--w3335-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w3335-white);
  font-size: 1.6rem;
}

.w3335-header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.w3335-btn {
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 100px;
  justify-content: center;
}

.w3335-btn-primary {
  background: var(--w3335-gradient);
  color: var(--w3335-white);
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.w3335-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.w3335-btn-secondary {
  background: transparent;
  color: var(--w3335-white);
  border: 2px solid var(--w3335-primary);
}

.w3335-btn-secondary:hover {
  background: var(--w3335-primary);
  transform: translateY(-2px);
}

.w3335-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.w3335-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--w3335-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.w3335-menu-toggle:hover span {
  background-color: var(--w3335-secondary);
}

/* Mobile Menu */
.w3335-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w3335-menu-overlay.w3335-active {
  opacity: 1;
  visibility: visible;
}

.w3335-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w3335-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.w3335-mobile-menu.w3335-active {
  right: 0;
}

.w3335-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.w3335-menu-close {
  background: none;
  border: none;
  color: var(--w3335-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.w3335-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.w3335-menu-link {
  padding: 1.2rem 1.5rem;
  color: var(--w3335-light);
  font-size: 1.6rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.w3335-menu-link:hover {
  background: rgba(255, 69, 0, 0.1);
  border-left-color: var(--w3335-primary);
  color: var(--w3335-primary);
}

.w3335-menu-link.w3335-active {
  background: rgba(255, 69, 0, 0.15);
  border-left-color: var(--w3335-primary);
  color: var(--w3335-primary);
  font-weight: 600;
}

/* Main Content */
.w3335-main {
  padding-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Carousel */
.w3335-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.w3335-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.w3335-carousel-slide {
  min-width: 100%;
  position: relative;
}

.w3335-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.w3335-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem 1.5rem 1.5rem;
}

.w3335-carousel-title {
  color: var(--w3335-white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.w3335-carousel-desc {
  color: var(--w3335-light);
  font-size: 1.4rem;
}

.w3335-carousel-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.w3335-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w3335-carousel-dot.w3335-active {
  background: var(--w3335-primary);
  transform: scale(1.2);
}

.w3335-carousel-prev,
.w3335-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--w3335-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.w3335-carousel-prev:hover,
.w3335-carousel-next:hover {
  background: var(--w3335-primary);
}

.w3335-carousel-prev {
  left: 1rem;
}

.w3335-carousel-next {
  right: 1rem;
}

/* Section Styles */
.w3335-section {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.w3335-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w3335-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w3335-section-title i {
  font-size: 2.4rem;
}

/* Game Grid */
.w3335-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w3335-game-item {
  background: var(--w3335-dark);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 69, 0, 0.1);
}

.w3335-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--w3335-primary);
  box-shadow: var(--w3335-shadow);
}

.w3335-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--w3335-darker);
}

.w3335-game-name {
  padding: 0.6rem 0.5rem;
  font-size: 1rem;
  color: var(--w3335-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Content Card */
.w3335-card {
  background: var(--w3335-dark);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 69, 0, 0.1);
  box-shadow: var(--w3335-shadow);
}

.w3335-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w3335-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w3335-card-title i {
  font-size: 2rem;
}

.w3335-card-content {
  color: var(--w3335-light);
  font-size: 1.5rem;
  line-height: 1.6;
}

.w3335-card-content p {
  margin-bottom: 1rem;
}

.w3335-card-content a {
  color: var(--w3335-primary);
  font-weight: 600;
}

.w3335-card-content a:hover {
  color: var(--w3335-secondary);
  text-decoration: underline;
}

/* Link List */
.w3335-link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.w3335-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 69, 0, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--w3335-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.w3335-link-item:hover {
  background: rgba(255, 69, 0, 0.1);
  transform: translateX(5px);
}

.w3335-link-item i {
  font-size: 2rem;
  color: var(--w3335-primary);
  min-width: 24px;
}

.w3335-link-item span {
  color: var(--w3335-light);
  font-size: 1.5rem;
  font-weight: 500;
}

/* Affiliate Link */
.w3335-affiliate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--w3335-primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w3335-affiliate-link:hover {
  color: var(--w3335-secondary);
  text-decoration: underline;
}

.w3335-affiliate-link i {
  font-size: 1.8rem;
}

/* Footer */
.w3335-footer {
  background: var(--w3335-dark);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 69, 0, 0.2);
}

.w3335-footer-content {
  margin-bottom: 2rem;
}

.w3335-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w3335-primary);
  margin-bottom: 1rem;
}

.w3335-footer-text {
  color: var(--w3335-light);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.w3335-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.w3335-footer-link {
  color: var(--w3335-primary);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255, 69, 0, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.w3335-footer-link:hover {
  background: var(--w3335-primary);
  color: var(--w3335-white);
}

.w3335-partners {
  margin-bottom: 2rem;
}

.w3335-partners-title {
  font-size: 1.4rem;
  color: var(--w3335-medium-gray);
  margin-bottom: 1rem;
  text-align: center;
}

.w3335-partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.w3335-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.w3335-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.w3335-copyright {
  text-align: center;
  color: var(--w3335-medium-gray);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation (Mobile) */
.w3335-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a2332, #0E1621);
  border-top: 2px solid var(--w3335-primary);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  box-shadow: 0 -4px 12px rgba(255, 69, 0, 0.2);
}

.w3335-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  color: var(--w3335-light);
}

.w3335-nav-item:hover {
  background: rgba(255, 69, 0, 0.15);
  transform: scale(1.05);
}

.w3335-nav-item.w3335-active {
  color: var(--w3335-primary);
}

.w3335-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w3335-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w3335-bottom-nav {
    display: none;
  }

  .w3335-wrapper {
    padding-bottom: 0;
  }
}

/* Utility Classes */
.w3335-text-center {
  text-align: center;
}

.w3335-mt-1 {
  margin-top: 1rem;
}

.w3335-mb-1 {
  margin-bottom: 1rem;
}

.w3335-mb-2 {
  margin-bottom: 2rem;
}

.w3335-mb-3 {
  margin-bottom: 3rem;
}

.w3335-highlight {
  color: var(--w3335-primary);
  font-weight: 700;
}

.w3335-spacer {
  height: 2rem;
}
