/**
 * 7game apk - Theme Stylesheet
 * Mobile-first responsive design with v905 prefix
 * Color palette: #2C2C2C | #FFC0CB | #8B4513 | #DEB887 | #D2B48C
 */

/* CSS Variables */
:root {
  --v905-primary: #8B4513;
  --v905-secondary: #FFC0CB;
  --v905-accent: #DEB887;
  --v905-bg-dark: #2C2C2C;
  --v905-bg-light: #D2B48C;
  --v905-text: #F5F5F5;
  --v905-text-muted: #B0B0B0;
  --v905-border: #8B4513;
  --v905-shadow: rgba(139, 69, 19, 0.3);
  --v905-gradient: linear-gradient(135deg, #8B4513 0%, #FFC0CB 100%);
}

/* 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.6rem;
  line-height: 1.5rem;
  color: var(--v905-text);
  background-color: var(--v905-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.v905-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v905-wrapper {
  padding-bottom: 80px;
}

/* Header */
.v905-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--v905-bg-dark);
  border-bottom: 2px solid var(--v905-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--v905-shadow);
}

.v905-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.v905-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v905-text);
  font-weight: bold;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.v905-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.v905-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.v905-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;
  min-height: 44px;
  min-width: 44px;
  text-align: center;
  line-height: 1.4;
}

.v905-btn-primary {
  background: var(--v905-gradient);
  color: var(--v905-text);
}

.v905-btn-secondary {
  background: var(--v905-accent);
  color: var(--v905-bg-dark);
}

.v905-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v905-shadow);
}

.v905-btn:active {
  transform: translateY(0);
}

.v905-menu-btn {
  background: none;
  border: none;
  color: var(--v905-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.v905-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 280px;
  height: 100vh;
  background: var(--v905-bg-dark);
  border-left: 2px solid var(--v905-primary);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
}

.v905-mobile-menu.v905-menu-active {
  right: 0;
}

.v905-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v905-menu-overlay.v905-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.v905-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--v905-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v905-menu-section {
  margin-bottom: 2rem;
}

.v905-menu-title {
  color: var(--v905-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v905-menu-list {
  list-style: none;
}

.v905-menu-list li {
  margin-bottom: 0.8rem;
}

.v905-menu-list a {
  color: var(--v905-text);
  text-decoration: none;
  font-size: 1.4rem;
  display: block;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.v905-menu-list a:hover {
  color: var(--v905-secondary);
}

/* Main Content */
.v905-main {
  margin-top: 70px;
  padding: 1.5rem 0;
}

/* Carousel */
.v905-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--v905-shadow);
}

.v905-carousel-slides {
  position: relative;
  height: 180px;
}

.v905-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v905-carousel-slide.v905-slide-active {
  opacity: 1;
}

.v905-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v905-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.v905-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v905-carousel-dot.v905-dot-active {
  background: var(--v905-secondary);
  transform: scale(1.2);
}

/* Hero Section */
.v905-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.v905-hero h1 {
  color: var(--v905-secondary);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.v905-hero p {
  color: var(--v905-text-muted);
  font-size: 1.4rem;
  max-width: 380px;
  margin: 0 auto;
}

/* Section */
.v905-section {
  margin-bottom: 2.5rem;
}

.v905-section-title {
  color: var(--v905-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v905-section-content {
  color: var(--v905-text);
  font-size: 1.5rem;
  line-height: 1.8;
}

.v905-section-content p {
  margin-bottom: 1rem;
}

/* Game Grid */
.v905-game-category {
  margin-bottom: 2.5rem;
}

.v905-category-title {
  color: var(--v905-accent);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--v905-primary);
}

.v905-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v905-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--v905-text);
  transition: transform 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(222, 184, 135, 0.1);
}

.v905-game-item:hover {
  transform: scale(1.05);
  background: rgba(222, 184, 135, 0.2);
}

.v905-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  background: var(--v905-bg-dark);
}

.v905-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--v905-text);
}

/* Card */
.v905-card {
  background: rgba(222, 184, 135, 0.1);
  border: 1px solid var(--v905-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.v905-card-title {
  color: var(--v905-secondary);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.v905-card-content {
  color: var(--v905-text);
  font-size: 1.4rem;
  line-height: 1.7;
}

/* Links */
.v905-link {
  color: var(--v905-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.v905-link:hover {
  color: var(--v905-accent);
  text-decoration: underline;
}

/* List */
.v905-list {
  list-style: none;
  margin: 1rem 0;
}

.v905-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(222, 184, 135, 0.2);
  color: var(--v905-text);
  font-size: 1.4rem;
  line-height: 1.6;
}

.v905-list li:last-child {
  border-bottom: none;
}

/* Bottom Navigation */
.v905-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v905-bg-dark);
  border-top: 2px solid var(--v905-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--v905-shadow);
}

.v905-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--v905-text-muted);
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.v905-nav-item:hover {
  color: var(--v905-secondary);
}

.v905-nav-item.v905-nav-active {
  color: var(--v905-secondary);
}

.v905-nav-icon {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v905-nav-label {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Touch Feedback */
.v905-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Footer */
.v905-footer {
  background: var(--v905-bg-dark);
  border-top: 2px solid var(--v905-primary);
  padding: 2rem 0 6rem;
  margin-top: 2rem;
}

.v905-footer-content {
  text-align: center;
  color: var(--v905-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.v905-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.v905-footer-link {
  color: var(--v905-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.v905-footer-link:hover {
  color: var(--v905-accent);
}

.v905-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v905-partner-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.v905-partner-img:hover {
  opacity: 1;
}

.v905-copyright {
  color: var(--v905-text-muted);
  font-size: 1.2rem;
  text-align: center;
}

/* Utility Classes */
.v905-text-center {
  text-align: center;
}

.v905-mb-1 {
  margin-bottom: 1rem;
}

.v905-mb-2 {
  margin-bottom: 2rem;
}

.v905-mt-1 {
  margin-top: 1rem;
}

.v905-mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (min-width: 769px) {
  .v905-bottom-nav {
    display: none;
  }

  .v905-wrapper {
    padding-bottom: 2rem;
  }

  .v905-menu-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .v905-wrapper {
    padding-bottom: 80px;
  }
}
