/**
 * Polymarket Bets - Theme CSS
 * All classes use v400- prefix
 */

/* CSS Variables */
:root {
  --v400-primary: #F0F0F0;
  --v400-secondary: #34495E;
  --v400-accent: #FF7F50;
  --v400-bg: #34495E;
  --v400-text: #F0F0F0;
  --v400-border: #4a6075;
  --v400-shadow: rgba(0, 0, 0, 0.3);
}

/* Base Reset */
* {
  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(--v400-text);
  background-color: var(--v400-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.v400-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.v400-wrapper {
  padding-top: 60px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Header */
.v400-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v400-secondary) 0%, var(--v400-bg) 100%);
  box-shadow: 0 2px 10px var(--v400-shadow);
  backdrop-filter: blur(10px);
}

.v400-header-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.v400-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v400-primary);
  font-weight: 700;
  font-size: 1.4rem;
  flex: 1;
}

.v400-logo-icon {
  width: 28px;
  height: 28px;
}

.v400-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.v400-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.v400-btn-primary {
  background-color: var(--v400-accent);
  color: var(--v400-primary);
}

.v400-btn-primary:hover {
  background-color: #ff6b3d;
  transform: translateY(-1px);
}

.v400-btn-secondary {
  background-color: transparent;
  color: var(--v400-primary);
  border: 2px solid var(--v400-accent);
}

.v400-btn-secondary:hover {
  background-color: var(--v400-accent);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.v400-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--v400-primary);
  cursor: pointer;
  font-size: 1.8rem;
}

/* Mobile Menu */
.v400-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, var(--v400-secondary) 0%, var(--v400-bg) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px var(--v400-shadow);
}

.v400-menu-open {
  right: 0;
}

.v400-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--v400-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v400-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v400-primary);
}

.v400-menu-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--v400-primary);
  cursor: pointer;
  font-size: 1.6rem;
}

.v400-menu-items {
  padding: 1rem 0;
}

.v400-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v400-primary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.3s ease;
  border-left: 3px solid transparent;
}

.v400-menu-item:hover {
  background-color: rgba(240, 240, 240, 0.1);
  border-left-color: var(--v400-accent);
}

.v400-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v400-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.v400-hero {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--v400-shadow);
}

.v400-hero-slider {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.v400-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v400-hero-slide:first-child {
  opacity: 1;
}

.v400-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section */
.v400-section {
  margin-bottom: 2rem;
}

.v400-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--v400-primary);
  text-align: center;
}

.v400-card {
  background: rgba(52, 73, 94, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--v400-shadow);
}

.v400-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--v400-accent);
}

/* Game Grid */
.v400-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.v400-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--v400-primary);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.v400-game-item:hover {
  transform: scale(1.05);
}

.v400-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px var(--v400-shadow);
}

.v400-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Text Content */
.v400-text {
  color: var(--v400-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.v400-text a {
  color: var(--v400-accent);
  text-decoration: none;
  font-weight: 600;
}

.v400-text a:hover {
  text-decoration: underline;
}

/* List */
.v400-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.v400-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v400-border);
  color: var(--v400-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.v400-list-item::before {
  content: '✓';
  color: var(--v400-accent);
  font-weight: bold;
  flex-shrink: 0;
}

.v400-list-item:last-child {
  border-bottom: none;
}

/* Bottom Navigation */
.v400-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v400-secondary) 0%, var(--v400-bg) 100%);
  box-shadow: 0 -2px 10px var(--v400-shadow);
  backdrop-filter: blur(10px);
}

.v400-bottom-nav-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}

.v400-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--v400-primary);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.v400-nav-item:hover {
  background-color: rgba(240, 240, 240, 0.1);
  transform: scale(1.05);
}

.v400-nav-active {
  color: var(--v400-accent);
}

.v400-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.v400-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.v400-footer {
  background: rgba(52, 73, 94, 0.5);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--v400-border);
}

.v400-footer-content {
  margin-bottom: 1.5rem;
}

.v400-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--v400-accent);
}

.v400-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.v400-footer-link {
  color: var(--v400-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  background: rgba(240, 240, 240, 0.1);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.v400-footer-link:hover {
  background: rgba(240, 240, 240, 0.2);
}

.v400-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v400-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.v400-partner-logo:hover {
  opacity: 1;
}

.v400-copyright {
  text-align: center;
  color: var(--v400-primary);
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .v400-bottom-nav {
    display: none;
  }

  .v400-wrapper {
    padding-bottom: 2rem;
  }

  .v400-menu-toggle {
    display: none;
  }
}

/* Utilities */
.v400-mb-1 { margin-bottom: 1rem; }
.v400-mb-2 { margin-bottom: 2rem; }
.v400-text-center { text-align: center; }
.v400-text-accent { color: var(--v400-accent); }
