/**
 * Phlaro VIP - Stylesheet
 * Prefix: w98eb-
 * Teal-Cyan Color Scheme
 * Mobile-first responsive design
 */

/* CSS Variables - Teal-Cyan Theme */
:root {
  --w98eb-primary: #20B2AA;        /* Teal */
  --w98eb-secondary: #0097A7;      /* Cyan */
  --w98eb-accent: #DAA520;         /* Gold */
  --w98eb-light: #E8F5E8;          /* Mint */
  --w98eb-bg-dark: #1E1E1E;        /* Dark */
  --w98eb-bg-light: #F5F5F5;       /* White */
  --w98eb-text-dark: #1E1E1E;
  --w98eb-text-light: #F5F5F5;
  --w98eb-border: #D0D0D0;
  --w98eb-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --w98eb-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --w98eb-header-height: 60px;
  --w98eb-footer-nav-height: 64px;

  /* Typography */
  --w98eb-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --w98eb-font-size-base: 16px;
  --w98eb-font-size-sm: 14px;
  --w98eb-font-size-lg: 18px;
  --w98eb-font-size-xl: 24px;
  --w98eb-font-weight-normal: 400;
  --w98eb-font-weight-medium: 500;
  --w98eb-font-weight-bold: 700;
  --w98eb-line-height: 1.5;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--w98eb-font-family);
  font-size: var(--w98eb-font-size-base);
  line-height: var(--w98eb-line-height);
  color: var(--w98eb-text-dark);
  background-color: var(--w98eb-bg-light);
  padding-top: var(--w98eb-header-height);
}

/* Mobile-specific body padding for bottom nav */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--w98eb-footer-nav-height) + 20px);
  }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--w98eb-font-weight-bold);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  color: var(--w98eb-secondary);
}

h2 {
  font-size: 2.2rem;
  color: var(--w98eb-primary);
}

h3 {
  font-size: 1.8rem;
  color: var(--w98eb-text-dark);
}

h4 {
  font-size: 1.4rem;
  color: var(--w98eb-text-dark);
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--w98eb-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--w98eb-primary);
  text-decoration: underline;
}

/* Buttons */
.w98eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: var(--w98eb-font-weight-bold);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.w98eb-btn-primary {
  background: linear-gradient(135deg, var(--w98eb-primary), var(--w98eb-secondary));
  color: var(--w98eb-text-light);
  box-shadow: var(--w98eb-shadow);
}

.w98eb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--w98eb-shadow-lg);
  color: var(--w98eb-text-light);
}

.w98eb-btn-primary:active {
  transform: translateY(0);
}

.w98eb-btn-secondary {
  background-color: var(--w98eb-accent);
  color: var(--w98eb-text-dark);
  box-shadow: var(--w98eb-shadow);
}

.w98eb-btn-secondary:hover {
  background-color: #C49217;
  color: var(--w98eb-text-dark);
  transform: translateY(-2px);
  box-shadow: var(--w98eb-shadow-lg);
}

.w98eb-btn-outline {
  background-color: transparent;
  color: var(--w98eb-primary);
  border: 2px solid var(--w98eb-primary);
}

.w98eb-btn-outline:hover {
  background-color: var(--w98eb-light);
  color: var(--w98eb-primary);
}

/* Header Navigation */
[data-web8eb="header"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w98eb-header-height);
  background: linear-gradient(135deg, var(--w98eb-bg-dark), #2a2a2a);
  color: var(--w98eb-text-light);
  z-index: 1000;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.w98eb-header-scrolled {
  box-shadow: var(--w98eb-shadow-lg);
}

/* Logo and branding */
.w98eb-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w98eb-text-light);
  font-weight: var(--w98eb-font-weight-bold);
  font-size: 1.6rem;
}

.w98eb-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w98eb-primary), var(--w98eb-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.w98eb-logo-text {
  display: none;
}

@media (min-width: 600px) {
  .w98eb-logo-text {
    display: block;
  }
}

/* Header actions */
.w98eb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w98eb-header-actions .w98eb-btn {
  font-size: 1.2rem;
  padding: 0.6rem 1.2rem;
  min-height: 40px;
}

.w98eb-btn-register {
  background-color: var(--w98eb-accent);
  color: var(--w98eb-text-dark);
}

.w98eb-btn-login {
  background-color: var(--w98eb-primary);
  color: var(--w98eb-text-light);
}

/* Menu toggle button */
[data-web8eb="menu-toggle"] {
  background: none;
  border: none;
  color: var(--w98eb-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

[data-web8eb="menu-toggle"]:hover {
  transform: scale(1.1);
}

@media (min-width: 769px) {
  [data-web8eb="menu-toggle"] {
    display: none;
  }
}

/* Navigation Menu - Mobile */
[data-web8eb="nav-menu"] {
  position: fixed;
  top: var(--w98eb-header-height);
  left: 0;
  right: 0;
  background: var(--w98eb-bg-dark);
  max-height: calc(100vh - var(--w98eb-header-height));
  overflow-y: auto;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: var(--w98eb-shadow-lg);
}

.w98eb-nav-menu-open {
  transform: translateX(0);
}

[data-web8eb="nav-links"] {
  list-style: none;
  padding: 1rem 0;
}

[data-web8eb="nav-item"] {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-web8eb="nav-link"] {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--w98eb-text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

[data-web8eb="nav-link"]:hover {
  background-color: rgba(32, 178, 170, 0.1);
  color: var(--w98eb-primary);
  padding-left: 2rem;
}

/* Desktop Navigation */
@media (min-width: 769px) {
  [data-web8eb="nav-menu"] {
    position: static;
    background: none;
    max-height: none;
    overflow-y: visible;
    z-index: auto;
    transform: none;
    box-shadow: none;
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
  }

  [data-web8eb="nav-links"] {
    display: flex;
    padding: 0;
    gap: 2rem;
  }

  [data-web8eb="nav-item"] {
    border-bottom: none;
  }

  [data-web8eb="nav-link"] {
    padding: 0;
    font-size: var(--w98eb-font-size-base);
    border-bottom: 2px solid transparent;
  }

  [data-web8eb="nav-link"]:hover {
    background-color: transparent;
    color: var(--w98eb-primary);
    border-bottom-color: var(--w98eb-primary);
    padding-left: 0;
  }
}

/* Container and Grid */
.w98eb-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

@media (min-width: 769px) {
  .w98eb-container {
    max-width: 1200px;
    padding: 0 2rem;
  }
}

.w98eb-wrapper {
  width: 100%;
  margin: 0 auto;
}

.w98eb-grid {
  display: grid;
  gap: 1.2rem;
}

.w98eb-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.w98eb-grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 600px) {
  .w98eb-grid-cols-2 {
    grid-template-columns: repeat(4, 1fr);
  }

  .w98eb-grid-cols-3 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Carousel */
[data-web8eb="carousel"] {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--w98eb-bg-light);
  box-shadow: var(--w98eb-shadow);
}

[data-web8eb="carousel-container"] {
  position: relative;
  width: 100%;
  overflow: hidden;
}

[data-web8eb="carousel-slide"] {
  display: none;
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
  background: linear-gradient(135deg, var(--w98eb-primary), var(--w98eb-secondary));
}

.w98eb-carousel-active {
  display: block;
}

[data-web8eb="carousel-image"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Carousel controls */
[data-web8eb="carousel-prev"],
[data-web8eb="carousel-next"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(32, 178, 170, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

[data-web8eb="carousel-prev"]:hover,
[data-web8eb="carousel-next"]:hover {
  background: var(--w98eb-primary);
  transform: translateY(-50%) scale(1.1);
}

[data-web8eb="carousel-prev"] {
  left: 0.8rem;
}

[data-web8eb="carousel-next"] {
  right: 0.8rem;
}

/* Carousel dots */
[data-web8eb="carousel-dots"] {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

[data-web8eb="carousel-dot"] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w98eb-carousel-dot-active {
  background: var(--w98eb-accent);
  transform: scale(1.2);
}

/* Game Cards */
.w98eb-game-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--w98eb-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.w98eb-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--w98eb-shadow-lg);
}

.w98eb-game-card:active {
  transform: translateY(-2px);
}

.w98eb-game-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.6rem;
  display: block;
}

.w98eb-game-name {
  font-size: 1.1rem;
  font-weight: var(--w98eb-font-weight-medium);
  color: var(--w98eb-text-dark);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Game Sections */
.w98eb-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--w98eb-border);
}

.w98eb-section-title {
  font-size: 2rem;
  font-weight: var(--w98eb-font-weight-bold);
  color: var(--w98eb-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--w98eb-primary);
}

.w98eb-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 1rem;
}

/* Cards Section */
.w98eb-cards-section {
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.05), rgba(0, 151, 167, 0.05));
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Feature blocks */
.w98eb-feature-block {
  background: white;
  border-left: 4px solid var(--w98eb-primary);
  padding: 1.2rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: var(--w98eb-shadow);
}

.w98eb-feature-title {
  font-weight: var(--w98eb-font-weight-bold);
  color: var(--w98eb-secondary);
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.w98eb-feature-text {
  font-size: 1.3rem;
  color: var(--w98eb-text-dark);
  line-height: 1.6;
}

/* Footer */
[data-web8eb="footer"] {
  background: var(--w98eb-bg-dark);
  color: var(--w98eb-text-light);
  padding: 2rem 1.2rem 8rem 1.2rem;
  margin-top: 3rem;
  border-top: 2px solid var(--w98eb-primary);
}

.w98eb-footer-content {
  margin-bottom: 2rem;
}

.w98eb-footer-section {
  margin-bottom: 1.5rem;
}

.w98eb-footer-title {
  font-size: 1.4rem;
  font-weight: var(--w98eb-font-weight-bold);
  color: var(--w98eb-primary);
  margin-bottom: 1rem;
}

.w98eb-footer-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
}

.w98eb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.w98eb-footer-link {
  color: var(--w98eb-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.w98eb-footer-link:hover {
  color: var(--w98eb-accent);
  text-decoration: underline;
}

.w98eb-partners-section {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.w98eb-partners-title {
  font-size: 1.4rem;
  font-weight: var(--w98eb-font-weight-bold);
  color: var(--w98eb-primary);
  margin-bottom: 1rem;
}

.w98eb-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.w98eb-partner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w98eb-partner-icon:hover {
  opacity: 1;
}

.w98eb-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Bottom Navigation */
[data-web8eb="bottom-nav"] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w98eb-footer-nav-height);
  background: linear-gradient(135deg, var(--w98eb-bg-dark), #2a2a2a);
  border-top: 2px solid var(--w98eb-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: var(--w98eb-shadow-lg);
}

.w98eb-nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  text-align: center;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.w98eb-nav-button:hover {
  color: var(--w98eb-primary);
  transform: scale(1.05);
}

.w98eb-nav-active {
  color: var(--w98eb-accent);
  background: rgba(32, 178, 170, 0.1);
  border-radius: 8px;
}

.w98eb-nav-icon {
  font-size: 2rem;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w98eb-nav-label {
  font-size: 0.9rem;
  font-weight: var(--w98eb-font-weight-medium);
  white-space: nowrap;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  [data-web8eb="bottom-nav"] {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Info Boxes */
.w98eb-info-box {
  background: linear-gradient(135deg, var(--w98eb-light), rgba(32, 178, 170, 0.1));
  border: 2px solid var(--w98eb-primary);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.w98eb-info-box-title {
  font-weight: var(--w98eb-font-weight-bold);
  color: var(--w98eb-secondary);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.w98eb-info-box-text {
  color: var(--w98eb-text-dark);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Main Content */
main {
  min-height: calc(100vh - var(--w98eb-header-height));
}

/* Text Utilities */
.w98eb-text-center {
  text-align: center;
}

.w98eb-text-bold {
  font-weight: var(--w98eb-font-weight-bold);
}

.w98eb-text-primary {
  color: var(--w98eb-primary);
}

.w98eb-text-secondary {
  color: var(--w98eb-secondary);
}

.w98eb-text-accent {
  color: var(--w98eb-accent);
}

/* Spacing Utilities */
.w98eb-mt-1 { margin-top: 0.5rem; }
.w98eb-mt-2 { margin-top: 1rem; }
.w98eb-mt-3 { margin-top: 1.5rem; }
.w98eb-mt-4 { margin-top: 2rem; }

.w98eb-mb-1 { margin-bottom: 0.5rem; }
.w98eb-mb-2 { margin-bottom: 1rem; }
.w98eb-mb-3 { margin-bottom: 1.5rem; }
.w98eb-mb-4 { margin-bottom: 2rem; }

.w98eb-px-2 { padding-left: 1rem; padding-right: 1rem; }
.w98eb-px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

.w98eb-py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.w98eb-py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Responsive adjustments */
@media (max-width: 430px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .w98eb-section {
    padding: 1.5rem 0;
  }

  .w98eb-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.8rem;
  }
}

/* Print styles */
@media print {
  [data-web8eb="header"],
  [data-web8eb="bottom-nav"] {
    display: none;
  }

  body {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Accessibility */
.w98eb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--w98eb-accent);
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--w98eb-bg-dark);
    color: var(--w98eb-text-light);
  }

  .w98eb-game-card {
    background: #2a2a2a;
    color: var(--w98eb-text-light);
  }

  .w98eb-game-name {
    color: var(--w98eb-text-light);
  }

  .w98eb-feature-block {
    background: #2a2a2a;
    color: var(--w98eb-text-light);
  }
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w98eb-fade-in {
  animation: fadeIn 0.5s ease-out;
}
