/**
 * PHLBoss Login - Theme Stylesheet
 * CSS prefix: g360-
 * Color scheme: #FFDEAD, #CD853F, #2C3E50, #EEEEEE, #2E8B57
 * Mobile-first responsive design (max-width: 430px)
 */

/* ============================================
   GLOBAL RESET & VARIABLES
   ============================================ */
:root {
  --g360-primary: #FFDEAD;
  --g360-secondary: #CD853F;
  --g360-dark: #2C3E50;
  --g360-light: #EEEEEE;
  --g360-accent: #2E8B57;
  --g360-text-primary: #2C3E50;
  --g360-text-light: #6C757D;
  --g360-border: rgba(205, 133, 63, 0.2);
  --g360-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --g360-shadow-hover: 0 4px 16px rgba(46, 139, 87, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g360-text-primary);
  background: var(--g360-light);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
.g360-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, var(--g360-primary) 0%, var(--g360-secondary) 100%);
  box-shadow: var(--g360-shadow);
  z-index: 1000;
  padding: 1.2rem 1.5rem;
}

.g360-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto;
}

.g360-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g360-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.g360-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g360-dark);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.g360-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g360-btn-header {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.g360-btn-register {
  background: var(--g360-accent);
  color: white;
}

.g360-btn-register:hover {
  background: #247346;
  transform: translateY(-1px);
}

.g360-btn-login {
  background: var(--g360-dark);
  color: white;
}

.g360-btn-login:hover {
  background: #1a2633;
  transform: translateY(-1px);
}

.g360-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  cursor: pointer;
}

.g360-hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--g360-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.g360-hamburger.g360-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.g360-hamburger.g360-active span:nth-child(2) {
  opacity: 0;
}

.g360-hamburger.g360-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.g360-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g360-menu-overlay.g360-active {
  opacity: 1;
  visibility: visible;
}

.g360-mobile-menu {
  position: fixed;
  top: 65px;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: calc(100% - 65px);
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.g360-mobile-menu.g360-active {
  right: 0;
}

.g360-menu-list {
  padding: 2rem 0;
}

.g360-menu-item {
  border-bottom: 1px solid var(--g360-border);
}

.g360-menu-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--g360-text-primary);
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.g360-menu-link:hover {
  background: var(--g360-primary);
  color: var(--g360-dark);
  padding-left: 2.5rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.g360-wrapper {
  min-height: calc(100vh - 65px - 60px - 70px);
  padding-bottom: 2rem;
}

.g360-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g360-section {
  margin: 2.5rem 0;
}

.g360-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--g360-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
}

.g360-content-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--g360-shadow);
  margin-bottom: 2rem;
}

.g360-content-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g360-dark);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.g360-content-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--g360-text-light);
  margin-bottom: 1.2rem;
}

.g360-content-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.g360-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.g360-btn-primary {
  background: linear-gradient(135deg, var(--g360-accent) 0%, #1f6b47 100%);
  color: white;
}

.g360-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--g360-shadow-hover);
}

.g360-btn-secondary {
  background: linear-gradient(135deg, var(--g360-secondary) 0%, #b8733f 100%);
  color: white;
}

.g360-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--g360-shadow-hover);
}

.g360-btn-block {
  display: block;
  width: 100%;
}

.g360-mt-2 {
  margin-top: 2rem;
}

/* ============================================
   GAME GRID
   ============================================ */
.g360-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.g360-game-item {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--g360-shadow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g360-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--g360-shadow-hover);
}

.g360-game-icon {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  overflow: hidden;
}

.g360-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g360-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g360-text-primary);
  line-height: 1.3;
  word-break: break-word;
}

/* ============================================
   LISTS
   ============================================ */
.g360-list {
  margin: 1.5rem 0;
}

.g360-list-item {
  padding: 1rem 0 1rem 2.5rem;
  position: relative;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g360-text-light);
  border-bottom: 1px solid var(--g360-border);
}

.g360-list-item:last-child {
  border-bottom: none;
}

.g360-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--g360-accent);
  font-weight: 700;
  font-size: 1.6rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.g360-text-center {
  text-align: center;
}

.g360-text-primary {
  color: var(--g360-accent);
}

.g360-bg-light {
  background: var(--g360-light);
}

/* ============================================
   FOOTER
   ============================================ */
.g360-footer {
  background: var(--g360-dark);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.g360-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.g360-footer-link {
  color: var(--g360-primary);
  font-size: 1.3rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.g360-footer-link:hover {
  color: white;
}

.g360-copyright {
  font-size: 1.2rem;
  color: #ADB5BD;
  margin-top: 1rem;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.g360-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.g360-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
}

.g360-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g360-bottom-nav-item:hover {
  background: rgba(255, 222, 173, 0.2);
}

.g360-bottom-nav-icon {
  font-size: 2rem;
  color: var(--g360-secondary);
  margin-bottom: 0.3rem;
}

.g360-bottom-nav-text {
  font-size: 1.1rem;
  color: var(--g360-text-primary);
  font-weight: 500;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 360px) {
  html {
    font-size: 9px;
  }

  .g360-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .g360-header-actions {
    gap: 0.5rem;
  }

  .g360-btn-header {
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
  }
}

@media (min-width: 431px) {
  body {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
}
