/* Fortune Gems 2 Main Stylesheet - Part 1 */
/* All CSS classes use prefix "v8d8-" to avoid conflicts */

/* CSS Variables */
:root {
  --v8d8-primary: #FFCCCB;
  --v8d8-secondary: #C9C9FF;
  --v8d8-dark: #3A3A3A;
  --v8d8-gray: #CED4DA;
  --v8d8-light: #BAE1FF;
  --v8d8-bg-main: #1a1a1a;
  --v8d8-bg-card: #2a2a2a;
  --v8d8-text-primary: #ffffff;
  --v8d8-text-secondary: #cccccc;
  --v8d8-border: #404040;
  --v8d8-shadow: rgba(0,0,0,0.3);
  --v8d8-transition: all 0.3s ease;
}

/* 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.4rem;
  line-height: 1.5;
  color: var(--v8d8-text-primary);
  background-color: var(--v8d8-bg-main);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container and Layout */
.v8d8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v8d8-wrapper {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

/* Header Styles */
.v8d8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--v8d8-dark) 0%, #2a2a2a 100%);
  box-shadow: 0 2px 10px var(--v8d8-shadow);
  z-index: 1000;
  border-bottom: 2px solid var(--v8d8-primary);
}

.v8d8-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.v8d8-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.v8d8-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.v8d8-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v8d8-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v8d8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v8d8-btn-register,
.v8d8-btn-login {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: var(--v8d8-transition);
  white-space: nowrap;
  min-height: 44px;
}

.v8d8-btn-register {
  background: linear-gradient(135deg, var(--v8d8-primary) 0%, #ff9999 100%);
  color: var(--v8d8-dark);
}

.v8d8-btn-login {
  background: transparent;
  color: var(--v8d8-light);
  border: 1px solid var(--v8d8-light);
}

.v8d8-btn-register:hover,
.v8d8-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v8d8-shadow);
}

.v8d8-menu-toggle {
  background: none;
  border: none;
  color: var(--v8d8-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.v8d8-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 30rem;
  height: 100vh;
  background: var(--v8d8-dark);
  box-shadow: -2px 0 10px var(--v8d8-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.v8d8-menu-active {
  right: 0;
}

.v8d8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  display: none;
  transition: opacity 0.3s ease;
}

.v8d8-overlay-active {
  display: block;
}

.v8d8-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--v8d8-border);
}

.v8d8-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v8d8-primary);
}

.v8d8-menu-close {
  background: none;
  border: none;
  color: var(--v8d8-primary);
  font-size: 2.4rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.v8d8-menu-nav {
  padding: 1rem 0;
}

.v8d8-menu-nav a {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: var(--v8d8-text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--v8d8-transition);
  border-left: 3px solid transparent;
  min-height: 44px;
}

.v8d8-menu-nav a:hover,
.v8d8-nav-active {
  background: rgba(255, 204, 203, 0.1);
  border-left-color: var(--v8d8-primary);
  color: var(--v8d8-primary);
}

/* Carousel Styles */
.v8d8-carousel-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--v8d8-shadow);
}

.v8d8-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.v8d8-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.v8d8-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.v8d8-carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--v8d8-transition);
}

.v8d8-dot-active,
.v8d8-carousel-dot:hover {
  background: var(--v8d8-primary);
  transform: scale(1.2);
}

/* Section Styles */
.v8d8-section {
  margin: 3rem 0;
  padding: 2rem 1.5rem;
  background: var(--v8d8-bg-card);
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--v8d8-shadow);
}

.v8d8-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v8d8-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--v8d8-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v8d8-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v8d8-secondary);
  margin: 1.5rem 0 1rem;
}

/* Game Grid */
.v8d8-game-category {
  margin: 2.5rem 0;
}

.v8d8-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255,204,203,0.1) 0%, rgba(201,201,255,0.1) 100%);
  border-radius: 0.8rem;
  border-left: 4px solid var(--v8d8-primary);
}

.v8d8-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v8d8-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v8d8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.v8d8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--v8d8-transition);
  cursor: pointer;
}

.v8d8-game-item:hover {
  transform: translateY(-3px);
}

.v8d8-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 2px 8px var(--v8d8-shadow);
  border: 2px solid transparent;
  transition: var(--v8d8-transition);
}

.v8d8-game-item:hover .v8d8-game-icon {
  border-color: var(--v8d8-primary);
  box-shadow: 0 4px 15px rgba(255,204,203,0.4);
}

.v8d8-game-name {
  font-size: 1.1rem;
  color: var(--v8d8-text-secondary);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
  font-weight: 500;
}

.v8d8-game-item:hover .v8d8-game-name {
  color: var(--v8d8-primary);
}

/* Button Styles */
.v8d8-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 3rem;
  border: none;
  cursor: pointer;
  transition: var(--v8d8-transition);
  min-height: 44px;
  line-height: 1.5;
}

.v8d8-btn-primary {
  background: linear-gradient(135deg, var(--v8d8-primary) 0%, #ff9999 100%);
  color: var(--v8d8-dark);
  box-shadow: 0 4px 12px rgba(255,204,203,0.3);
}

.v8d8-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,204,203,0.5);
}

.v8d8-btn-secondary {
  background: linear-gradient(135deg, var(--v8d8-secondary) 0%, #9999ff 100%);
  color: var(--v8d8-dark);
}

.v8d8-btn-outline {
  background: transparent;
  border: 2px solid var(--v8d8-primary);
  color: var(--v8d8-primary);
}

.v8d8-btn-block {
  display: block;
  width: 100%;
}

/* Card Styles */
.v8d8-card {
  background: var(--v8d8-bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px var(--v8d8-shadow);
  border: 1px solid var(--v8d8-border);
}

.v8d8-card-header {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v8d8-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v8d8-card-body {
  color: var(--v8d8-text-secondary);
  line-height: 1.6;
}

/* List Styles */
.v8d8-list {
  list-style: none;
  margin: 1.5rem 0;
}

.v8d8-list-item {
  padding: 1rem 0 1rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--v8d8-border);
  color: var(--v8d8-text-secondary);
  line-height: 1.5;
}

.v8d8-list-item:last-child {
  border-bottom: none;
}

.v8d8-list-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--v8d8-primary);
  font-size: 1.6rem;
}

/* Link Styles */
.v8d8-link {
  color: var(--v8d8-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--v8d8-transition);
  font-weight: 500;
}

.v8d8-link:hover {
  color: var(--v8d8-primary);
  border-bottom-color: var(--v8d8-primary);
}

.v8d8-promo-link {
  color: var(--v8d8-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--v8d8-primary);
  transition: var(--v8d8-transition);
  cursor: pointer;
}

.v8d8-promo-link:hover {
  color: #ff9999;
  border-bottom-color: #ff9999;
}

/* Accordion Styles */
.v8d8-accordion-item {
  margin: 1rem 0;
  border: 1px solid var(--v8d8-border);
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--v8d8-bg-card);
}

.v8d8-accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--v8d8-text-primary);
  transition: var(--v8d8-transition);
  min-height: 44px;
}

.v8d8-accordion-header:hover {
  background: rgba(255,204,203,0.05);
  color: var(--v8d8-primary);
}

.v8d8-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v8d8-accordion-active .v8d8-accordion-content {
  max-height: 500rem;
  padding: 1.5rem;
  border-top: 1px solid var(--v8d8-border);
}

.v8d8-accordion-icon {
  transition: transform 0.3s ease;
}

.v8d8-accordion-active .v8d8-accordion-icon {
  transform: rotate(180deg);
}

/* Bottom Navigation */
.v8d8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6.4rem;
  background: linear-gradient(135deg, #2a2a2a 0%, var(--v8d8-dark) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px var(--v8d8-shadow);
  z-index: 1000;
  border-top: 2px solid var(--v8d8-primary);
  padding: 0.5rem 0;
}

.v8d8-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 6rem;
  min-height: 6rem;
  color: var(--v8d8-text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--v8d8-transition);
  border-radius: 1rem;
  padding: 0.5rem;
}

.v8d8-bottom-nav-btn:hover,
.v8d8-bottom-nav-btn.v8d8-nav-active {
  color: var(--v8d8-primary);
  background: rgba(255,204,203,0.1);
  transform: scale(1.05);
}

.v8d8-bottom-nav-icon {
  font-size: 2.4rem;
}

.v8d8-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Footer Styles */
.v8d8-footer {
  background: var(--v8d8-dark);
  padding: 3rem 1.5rem 10rem;
  margin-top: 4rem;
  border-top: 2px solid var(--v8d8-border);
}

.v8d8-footer-section {
  margin: 2rem 0;
}

.v8d8-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v8d8-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.v8d8-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.v8d8-footer-link {
  color: var(--v8d8-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--v8d8-transition);
  padding: 0.5rem 0;
}

.v8d8-footer-link:hover {
  color: var(--v8d8-primary);
  padding-left: 0.5rem;
}

.v8d8-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v8d8-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--v8d8-transition);
  border-radius: 0.5rem;
}

.v8d8-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.v8d8-copyright {
  text-align: center;
  color: var(--v8d8-gray);
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--v8d8-border);
}

/* Utility Classes */
.v8d8-text-center {
  text-align: center;
}

.v8d8-text-primary {
  color: var(--v8d8-primary) !important;
}

.v8d8-text-secondary {
  color: var(--v8d8-secondary) !important;
}

.v8d8-mb-1 { margin-bottom: 1rem; }
.v8d8-mb-2 { margin-bottom: 2rem; }
.v8d8-mb-3 { margin-bottom: 3rem; }

.v8d8-mt-1 { margin-top: 1rem; }
.v8d8-mt-2 { margin-top: 2rem; }
.v8d8-mt-3 { margin-top: 3rem; }

.v8d8-p-1 { padding: 1rem; }
.v8d8-p-2 { padding: 2rem; }
.v8d8-p-3 { padding: 3rem; }

/* Responsive Design */
@media (min-width: 769px) {
  .v8d8-bottom-nav {
    display: none;
  }

  .v8d8-wrapper {
    padding-bottom: 2rem;
  }

  .v8d8-footer {
    padding-bottom: 3rem;
  }
}

/* Animations */
@keyframes v8d8-fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v8d8-fade-in {
  animation: v8d8-fadeIn 0.5s ease-out;
}

/* Notification Styles */
.v8d8-notification {
  position: fixed;
  top: 8rem;
  right: 1.5rem;
  background: var(--v8d8-bg-card);
  color: var(--v8d8-text-primary);
  padding: 1.5rem 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 4px 15px var(--v8d8-shadow);
  z-index: 10000;
  opacity: 0;
  transform: translateX(40rem);
  transition: var(--v8d8-transition);
  border-left: 4px solid var(--v8d8-primary);
}

.v8d8-notification-show {
  opacity: 1;
  transform: translateX(0);
}

.v8d8-notification-success {
  border-left-color: #4caf50;
}

.v8d8-notification-error {
  border-left-color: #f44336;
}

.v8d8-notification-info {
  border-left-color: var(--v8d8-light);
}

/* Table Styles */
.v8d8-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--v8d8-bg-card);
  border-radius: 0.8rem;
  overflow: hidden;
}

.v8d8-table th,
.v8d8-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--v8d8-border);
}

.v8d8-table th {
  background: rgba(255,204,203,0.1);
  color: var(--v8d8-primary);
  font-weight: 700;
  font-size: 1.3rem;
}

.v8d8-table td {
  color: var(--v8d8-text-secondary);
  font-size: 1.3rem;
}

.v8d8-table tr:hover {
  background: rgba(255,204,203,0.05);
}

/* Badge Styles */
.v8d8-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 1rem;
  background: var(--v8d8-primary);
  color: var(--v8d8-dark);
}

.v8d8-badge-secondary {
  background: var(--v8d8-secondary);
}

.v8d8-badge-outline {
  background: transparent;
  border: 1px solid var(--v8d8-primary);
  color: var(--v8d8-primary);
}

/* Scroll to Top Button */
.v8d8-scroll-top {
  position: fixed;
  bottom: 8rem;
  right: 1.5rem;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--v8d8-primary);
  color: var(--v8d8-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(255,204,203,0.4);
  transition: var(--v8d8-transition);
  z-index: 999;
}

.v8d8-scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,204,203,0.6);
}

/* Loading Spinner */
.v8d8-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid var(--v8d8-border);
  border-top-color: var(--v8d8-primary);
  border-radius: 50%;
  animation: v8d8-spin 1s linear infinite;
}

@keyframes v8d8-spin {
  to { transform: rotate(360deg); }
}

/* Feature Grid */
.v8d8-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.v8d8-feature-item {
  background: var(--v8d8-bg-card);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--v8d8-border);
  transition: var(--v8d8-transition);
}

.v8d8-feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--v8d8-primary);
  box-shadow: 0 4px 15px rgba(255,204,203,0.3);
}

.v8d8-feature-icon {
  font-size: 3.2rem;
  color: var(--v8d8-primary);
  margin-bottom: 1rem;
}

.v8d8-feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v8d8-text-primary);
  margin-bottom: 0.5rem;
}

.v8d8-feature-desc {
  font-size: 1.2rem;
  color: var(--v8d8-text-secondary);
  line-height: 1.4;
}
