/**
 * 1111 vpn - Main Stylesheet
 * All classes use ve9f- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --ve9f-primary: #4B0082;
  --ve9f-secondary: #9966CC;
  --ve9f-bg: #1C2833;
  --ve9f-bg-dark: #0f1923;
  --ve9f-accent: #26A69A;
  --ve9f-highlight: #EE82EE;
  --ve9f-text: #E8E8E8;
  --ve9f-text-dim: #B0B0B0;
  --ve9f-white: #FFFFFF;
  --ve9f-radius: 8px;
  --ve9f-radius-lg: 16px;
  --ve9f-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --ve9f-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--ve9f-bg);
  color: var(--ve9f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container & Layout */
.ve9f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.ve9f-wrapper {
  width: 100%;
  padding: 1rem 0;
}

.ve9f-grid {
  display: grid;
  gap: 0.8rem;
}

.ve9f-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ve9f-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ve9f-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header - Fixed Top Navigation */
.ve9f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--ve9f-primary), #2d0054);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.ve9f-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ve9f-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ve9f-highlight);
}

.ve9f-site-name {
  color: var(--ve9f-white);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ve9f-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ve9f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--ve9f-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--ve9f-transition);
  min-height: 32px;
}

.ve9f-btn-register {
  background: linear-gradient(135deg, var(--ve9f-accent), #1d8a7e);
  color: var(--ve9f-white);
}

.ve9f-btn-register:hover {
  background: linear-gradient(135deg, #2bbf9f, var(--ve9f-accent));
  transform: translateY(-1px);
}

.ve9f-btn-login {
  background: transparent;
  border: 1.5px solid var(--ve9f-highlight);
  color: var(--ve9f-highlight);
}

.ve9f-btn-login:hover {
  background: rgba(238, 130, 238, 0.15);
}

.ve9f-btn-promo {
  background: linear-gradient(135deg, var(--ve9f-highlight), #d566d5);
  color: var(--ve9f-white);
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  border-radius: var(--ve9f-radius-lg);
  display: block;
  width: 100%;
  text-align: center;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(238, 130, 238, 0.3);
}

.ve9f-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 130, 238, 0.4);
}

/* Menu Toggle */
.ve9f-menu-toggle {
  background: none;
  border: none;
  color: var(--ve9f-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.ve9f-mobile-menu {
  display: none;
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(27, 40, 56, 0.98);
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 0;
  border-bottom: 2px solid var(--ve9f-accent);
}

.ve9f-menu-open {
  display: block !important;
}

.ve9f-mobile-menu a {
  display: block;
  padding: 0.9rem 1.6rem;
  color: var(--ve9f-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--ve9f-transition);
}

.ve9f-mobile-menu a:hover {
  background: rgba(38, 166, 154, 0.15);
  color: var(--ve9f-accent);
  padding-left: 2rem;
}

/* Main Content */
.ve9f-main {
  padding-top: 52px;
  min-height: 100vh;
}

/* Banner Carousel */
.ve9f-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--ve9f-radius-lg) var(--ve9f-radius-lg);
}

.ve9f-slides {
  position: relative;
  width: 100%;
  height: 180px;
}

.ve9f-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.ve9f-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ve9f-slide-active {
  opacity: 1;
}

.ve9f-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.ve9f-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--ve9f-transition);
}

.ve9f-dot-active {
  background: var(--ve9f-accent);
  transform: scale(1.3);
}

/* Section Headers */
.ve9f-section {
  padding: 1.5rem 1.2rem;
}

.ve9f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ve9f-white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ve9f-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ve9f-section-title i {
  color: var(--ve9f-accent);
  font-size: 2rem;
}

/* Category Header */
.ve9f-cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  padding: 0.6rem 0;
}

.ve9f-cat-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ve9f-accent);
  border-radius: 50%;
  font-size: 1.4rem;
}

.ve9f-cat-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ve9f-highlight);
}

/* Game Cards */
.ve9f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.ve9f-game-item {
  cursor: pointer;
  text-align: center;
  transition: var(--ve9f-transition);
  border-radius: var(--ve9f-radius);
  padding: 0.4rem;
  background: rgba(75, 0, 130, 0.2);
}

.ve9f-game-item:hover {
  background: rgba(38, 166, 154, 0.15);
  transform: translateY(-2px);
}

.ve9f-game-item:active {
  transform: scale(0.95);
}

.ve9f-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--ve9f-radius);
  object-fit: cover;
  margin-bottom: 0.3rem;
  border: 1px solid rgba(153, 102, 204, 0.3);
}

.ve9f-game-name {
  font-size: 1rem;
  color: var(--ve9f-text-dim);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Cards */
.ve9f-card {
  background: linear-gradient(135deg, rgba(75,0,130,0.3), rgba(28,40,51,0.8));
  border: 1px solid rgba(153,102,204,0.2);
  border-radius: var(--ve9f-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.ve9f-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ve9f-white);
  margin-bottom: 0.6rem;
}

.ve9f-card-text {
  font-size: 1.3rem;
  color: var(--ve9f-text-dim);
  line-height: 1.6;
}

/* Text link style for affiliate */
.ve9f-link {
  color: var(--ve9f-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--ve9f-transition);
}

.ve9f-link:hover {
  color: var(--ve9f-highlight);
  text-decoration: underline;
}

/* Internal link style */
.ve9f-internallink {
  color: var(--ve9f-secondary);
  font-weight: 500;
  transition: var(--ve9f-transition);
}

.ve9f-internallink:hover {
  color: var(--ve9f-highlight);
  text-decoration: underline;
}

/* Features List */
.ve9f-feature-list {
  list-style: none;
  padding: 0;
}

.ve9f-feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.6rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--ve9f-text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ve9f-feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--ve9f-accent);
  font-size: 1.1rem;
}

/* FAQ Section */
.ve9f-faq-item {
  background: rgba(75,0,130,0.15);
  border-radius: var(--ve9f-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--ve9f-accent);
}

.ve9f-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ve9f-white);
  margin-bottom: 0.4rem;
}

.ve9f-faq-a {
  font-size: 1.2rem;
  color: var(--ve9f-text-dim);
  line-height: 1.5;
}

/* Winner Showcase */
.ve9f-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ve9f-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ve9f-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ve9f-highlight);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ve9f-winner-info {
  flex: 1;
}

.ve9f-winner-name {
  font-size: 1.2rem;
  color: var(--ve9f-white);
}

.ve9f-winner-amount {
  font-size: 1.1rem;
  color: var(--ve9f-accent);
  font-weight: 700;
}

/* Footer */
.ve9f-footer {
  background: var(--ve9f-bg-dark);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 2px solid var(--ve9f-primary);
}

.ve9f-footer-brand {
  font-size: 1.3rem;
  color: var(--ve9f-text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ve9f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ve9f-footer-links a {
  font-size: 1.1rem;
  color: var(--ve9f-secondary);
  padding: 0.3rem 0.6rem;
  background: rgba(75,0,130,0.2);
  border-radius: var(--ve9f-radius);
  transition: var(--ve9f-transition);
}

.ve9f-footer-links a:hover {
  background: rgba(38,166,154,0.2);
  color: var(--ve9f-accent);
}

.ve9f-footer-promo-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.ve9f-footer-promo-btns .ve9f-btn-promo {
  font-size: 1.2rem;
  padding: 0.6rem;
  margin: 0;
}

.ve9f-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Fixed Bottom Navigation */
.ve9f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(27,40,51,0.95), #0f1923);
  border-top: 1px solid rgba(153,102,204,0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0.4rem;
  backdrop-filter: blur(10px);
}

.ve9f-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--ve9f-text-dim);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--ve9f-transition);
  border-radius: var(--ve9f-radius);
  padding: 0.3rem;
}

.ve9f-bottom-btn i,
.ve9f-bottom-btn span.material-icons-outlined,
.ve9f-bottom-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
  transition: var(--ve9f-transition);
}

.ve9f-bottom-btn:hover,
.ve9f-bottom-btn:focus {
  color: var(--ve9f-accent);
  background: rgba(38,166,154,0.1);
}

.ve9f-bottom-btn:hover i,
.ve9f-bottom-btn:hover span.material-icons-outlined,
.ve9f-bottom-btn:hover ion-icon {
  transform: scale(1.15);
}

.ve9f-bottom-btn-active {
  color: var(--ve9f-highlight) !important;
}

.ve9f-bottom-btn-active i,
.ve9f-bottom-btn-active span.material-icons-outlined,
.ve9f-bottom-btn-active ion-icon {
  color: var(--ve9f-highlight);
}

.ve9f-bottom-label {
  font-size: 1rem;
  line-height: 1;
}

/* Utility Classes */
.ve9f-text-center {
  text-align: center;
}

.ve9f-mb-1 {
  margin-bottom: 0.5rem;
}

.ve9f-mb-2 {
  margin-bottom: 1rem;
}

.ve9f-mt-2 {
  margin-top: 1rem;
}

.ve9f-hidden {
  display: none;
}

/* H1 specific styling */
.ve9f-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ve9f-white);
  margin: 1rem 0;
  line-height: 1.3;
}

.ve9f-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ve9f-white);
  margin: 1.2rem 0 0.6rem;
}

.ve9f-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ve9f-secondary);
  margin: 1rem 0 0.4rem;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .ve9f-bottom-nav {
    display: none;
  }
  .ve9f-main {
    padding-bottom: 0;
  }
}

/* Mobile: add bottom padding for nav */
@media (max-width: 768px) {
  .ve9f-main {
    padding-bottom: 75px;
  }
}

/* Responsive game grid adjustments */
@media (max-width: 360px) {
  .ve9f-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
