/* MS365 Theme - Main Stylesheet */
/* All classes use pg67- prefix for namespace isolation */

/* CSS Variables - Color Palette */
:root {
  --pg67-primary: #DEB887;
  --pg67-secondary: #A0522D;
  --pg67-dark: #0C0C0C;
  --pg67-accent: #8B7355;
  --pg67-light: #F5F5F5;
  --pg67-white: #FFFFFF;
  --pg67-gray: #808080;
  --pg67-gradient: linear-gradient(135deg, var(--pg67-primary) 0%, var(--pg67-secondary) 100%);
  --pg67-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Reset & 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(--pg67-light);
  background-color: var(--pg67-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.pg67-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.pg67-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--pg67-dark);
  box-shadow: var(--pg67-shadow);
  z-index: 1000;
}

.pg67-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg67-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--pg67-primary);
}

.pg67-logo img {
  width: 32px;
  height: 32px;
}

.pg67-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg67-btn {
  padding: 0.5rem 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pg67-btn-primary {
  background: var(--pg67-gradient);
  color: var(--pg67-white);
}

.pg67-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(222, 184, 135, 0.4);
}

.pg67-btn-secondary {
  background-color: transparent;
  color: var(--pg67-primary);
  border: 1px solid var(--pg67-primary);
}

.pg67-btn-secondary:hover {
  background-color: var(--pg67-primary);
  color: var(--pg67-dark);
}

.pg67-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  cursor: pointer;
}

.pg67-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--pg67-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.pg67-mobile-menu {
  position: fixed;
  top: 56px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  background-color: var(--pg67-dark);
  box-shadow: var(--pg67-shadow);
  transition: left 0.3s ease;
  z-index: 9999;
  padding: 1rem 0;
}

.pg67-mobile-menu.pg67-active {
  left: 0;
}

.pg67-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--pg67-light);
  border-bottom: 1px solid rgba(222, 184, 135, 0.1);
}

.pg67-menu-item:hover {
  background-color: rgba(222, 184, 135, 0.1);
  color: var(--pg67-primary);
}

/* Main Content */
.pg67-main {
  margin-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.pg67-section {
  padding: 2rem 0;
}

.pg67-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--pg67-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Carousel */
.pg67-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.pg67-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards */
.pg67-card {
  background-color: rgba(222, 184, 135, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--pg67-shadow);
}

.pg67-card-content {
  color: var(--pg67-light);
}

/* Game Grid */
.pg67-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg67-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pg67-game-item:hover {
  transform: scale(1.05);
}

.pg67-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.pg67-game-name {
  font-size: 1.1rem;
  color: var(--pg67-light);
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
}

/* Feature List */
.pg67-feature-list {
  list-style: none;
}

.pg67-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: rgba(222, 184, 135, 0.03);
  border-radius: 6px;
}

.pg67-feature-icon {
  font-size: 1.8rem;
  color: var(--pg67-primary);
  flex-shrink: 0;
}

/* Footer */
.pg67-footer {
  background-color: rgba(12, 12, 12, 0.95);
  padding: 2rem 0;
  margin-top: 2rem;
}

.pg67-footer-content {
  text-align: center;
}

.pg67-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pg67-footer-link {
  color: var(--pg67-primary);
  font-size: 1.4rem;
}

.pg67-footer-link:hover {
  color: var(--pg67-secondary);
}

.pg67-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pg67-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
}

.pg67-copyright {
  font-size: 1.2rem;
  color: var(--pg67-gray);
  padding: 1rem 0;
}

/* Mobile Bottom Navigation */
.pg67-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  background: linear-gradient(to right, var(--pg67-dark), rgba(12, 12, 12, 0.98));
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.pg67-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  color: var(--pg67-light);
  transition: all 0.3s ease;
}

.pg67-nav-btn:hover {
  color: var(--pg67-primary);
}

.pg67-nav-btn.pg67-active {
  color: var(--pg67-primary);
}

.pg67-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.pg67-nav-text {
  font-size: 10px;
}

/* Utility Classes */
.pg67-text-center {
  text-align: center;
}

.pg67-mt-2 {
  margin-top: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pg67-menu-toggle {
    display: flex;
  }

  .pg67-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .pg67-bottom-nav {
    display: none;
  }

  .pg67-main {
    padding-bottom: 2rem;
  }
}
