/**
 * 365bet - Main Stylesheet
 * Mobile-first responsive design
 * All classes use v724 prefix
 */

/* Root Variables */
:root {
  --v724-primary: #CD853F;
  --v724-secondary: #AD1457;
  --v724-accent: #FFFFBA;
  --v724-highlight: #FFDFBA;
  --v724-bg: #2D2D2D;
  --v724-bg-light: #3D3D3D;
  --v724-text: #C0C0C0;
  --v724-text-light: #FFFFFF;
  --v724-border: #4D4D4D;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v724-text);
  background-color: var(--v724-bg);
  min-height: 100vh;
}

/* Container */
.v724-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.v724-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v724-bg) 0%, var(--v724-bg-light) 100%);
  border-bottom: 2px solid var(--v724-primary);
  box-shadow: 0 2px 10px rgba(205, 133, 63, 0.3);
}

.v724-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.v724-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v724-text);
}

.v724-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
}

.v724-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v724-primary);
}

.v724-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.v724-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  min-width: 88px;
}

.v724-btn-primary {
  background: linear-gradient(135deg, var(--v724-primary) 0%, var(--v724-secondary) 100%);
  color: var(--v724-text-light);
  box-shadow: 0 2px 8px rgba(205, 133, 63, 0.4);
}

.v724-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 133, 63, 0.6);
}

.v724-btn-secondary {
  background: transparent;
  color: var(--v724-primary);
  border: 2px solid var(--v724-primary);
}

.v724-btn-secondary:hover {
  background: var(--v724-primary);
  color: var(--v724-text-light);
}

/* Menu Toggle */
.v724-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
}

.v724-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--v724-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.v724-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--v724-bg-light);
  border-bottom: 2px solid var(--v724-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}

.v724-mobile-menu.v724-menu-open {
  max-height: 500px;
}

.v724-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.v724-menu-item {
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--v724-border);
}

.v724-menu-link {
  color: var(--v724-text);
  text-decoration: none;
  font-size: 1.4rem;
  display: block;
  transition: color 0.3s ease;
}

.v724-menu-link:hover {
  color: var(--v724-primary);
}

/* Main Content */
main {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Hero Carousel */
.v724-hero {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
}

.v724-hero-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.v724-hero-slide {
  min-width: 100%;
  position: relative;
}

.v724-hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Section Styles */
.v724-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--v724-bg-light);
  border-radius: 12px;
  border: 1px solid var(--v724-border);
}

.v724-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v724-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.v724-section-title h2 {
  font-size: 2rem;
  color: var(--v724-primary);
}

/* Game Grid */
.v724-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.v724-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v724-game-item:hover {
  transform: scale(1.05);
}

.v724-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 2px solid var(--v724-border);
  transition: border-color 0.3s ease;
}

.v724-game-item:hover .v724-game-icon {
  border-color: var(--v724-primary);
}

.v724-game-name {
  font-size: 1rem;
  color: var(--v724-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Styles */
.v724-card {
  background: var(--v724-bg);
  border: 1px solid var(--v724-border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.v724-card:hover {
  border-color: var(--v724-primary);
  box-shadow: 0 4px 12px rgba(205, 133, 63, 0.2);
}

.v724-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v724-primary);
  margin-bottom: 1rem;
}

.v724-card-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v724-text);
  margin-bottom: 1rem;
}

.v724-card-text strong {
  color: var(--v724-highlight);
  font-weight: 600;
}

/* Link Styles */
.v724-link {
  color: var(--v724-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.v724-link:hover {
  color: var(--v724-secondary);
  text-decoration: underline;
}

/* Bottom Navigation */
.v724-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v724-bg-light) 0%, var(--v724-bg) 100%);
  border-top: 2px solid var(--v724-primary);
  box-shadow: 0 -2px 10px rgba(205, 133, 63, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.v724-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--v724-text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.v724-nav-item:hover,
.v724-nav-item.active {
  color: var(--v724-primary);
  transform: scale(1.1);
}

.v724-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.v724-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.v724-footer {
  background: var(--v724-bg-light);
  border-top: 2px solid var(--v724-primary);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.v724-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.v724-footer-link {
  color: var(--v724-text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.v724-footer-link:hover {
  color: var(--v724-primary);
}

.v724-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v724-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.v724-copyright {
  text-align: center;
  color: var(--v724-text);
  font-size: 1.2rem;
}

/* Utility Classes */
.v724-text-center {
  text-align: center;
}

.v724-mb-1 {
  margin-bottom: 1rem;
}

.v724-mb-2 {
  margin-bottom: 2rem;
}

.v724-mt-1 {
  margin-top: 1rem;
}

.v724-mt-2 {
  margin-top: 2rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .v724-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .v724-mobile-menu {
    position: static;
    max-height: none;
    background: transparent;
    border-bottom: none;
  }

  .v724-menu-toggle {
    display: none;
  }

  .v724-menu-list {
    display: flex;
    padding: 0;
  }

  .v724-menu-item {
    border-bottom: none;
    padding: 0 1rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .v724-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 380px) {
  .v724-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
