/* TTJL Gaming Platform Styles */
/* CSS class prefix: g5e9- */
/* Color scheme: #262626 | #FF6347 | #BBBBBB */

/* CSS Variables */
:root {
  --g5e9-primary: #262626;
  --g5e9-secondary: #FF6347;
  --g5e9-accent: #BBBBBB;
  --g5e9-text: #333333;
  --g5e9-text-light: #666666;
  --g5e9-text-muted: #999999;
  --g5e9-bg: #ffffff;
  --g5e9-bg-light: #f8f9fa;
  --g5e9-bg-dark: #1a1a1a;
  --g5e9-border: #e0e0e0;
  --g5e9-border-radius: 0.8rem;
  --g5e9-shadow: rgba(38, 38, 38, 0.1);
  --g5e9-shadow-lg: rgba(38, 38, 38, 0.15);
  --g5e9-success: #28a745;
  --g5e9-warning: #ffc107;
  --g5e9-danger: #dc3545;
  --g5e9-info: #17a2b8;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--g5e9-text);
  background-color: var(--g5e9-bg);
  overflow-x: hidden;
}

/* Wrapper */
.g5e9-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.g5e9-header {
  background: var(--g5e9-bg);
  border-bottom: 1px solid var(--g5e9-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.g5e9-header-content {
  max-width: 120rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g5e9-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g5e9-primary);
  font-weight: 700;
  font-size: 2.4rem;
}

.g5e9-logo-icon {
  width: 4rem;
  height: 4rem;
  margin-right: 1rem;
  border-radius: 0.8rem;
}

.g5e9-header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g5e9-btn-header {
  padding: 0.8rem 1.6rem;
  border-radius: var(--g5e9-border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.g5e9-btn-register {
  background: var(--g5e9-secondary);
  color: white;
}

.g5e9-btn-register:hover {
  background: #e55039;
  transform: translateY(-2px);
}

.g5e9-btn-login {
  background: transparent;
  color: var(--g5e9-primary);
  border-color: var(--g5e9-primary);
}

.g5e9-btn-login:hover {
  background: var(--g5e9-primary);
  color: white;
  transform: translateY(-2px);
}

/* Mobile Menu */
.g5e9-burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.g5e9-burger-line {
  width: 2.5rem;
  height: 0.3rem;
  background: var(--g5e9-primary);
  margin: 0.3rem 0;
  transition: 0.3s;
  border-radius: 0.2rem;
}

.g5e9-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--g5e9-bg);
  border-bottom: 1px solid var(--g5e9-border);
  box-shadow: 0 4px 6px var(--g5e9-shadow);
}

.g5e9-nav-list {
  list-style: none;
  padding: 2rem;
}

.g5e9-nav-item {
  margin-bottom: 1rem;
}

.g5e9-nav-link {
  color: var(--g5e9-text);
  text-decoration: none;
  font-weight: 500;
  padding: 1rem 0;
  display: block;
  transition: color 0.3s ease;
}

.g5e9-nav-link:hover {
  color: var(--g5e9-secondary);
}

.g5e9-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Container */
.g5e9-container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main Content */
.g5e9-main {
  flex: 1;
  padding: 4rem 0;
}

/* Sections */
.g5e9-section {
  margin-bottom: 6rem;
}

.g5e9-section:last-child {
  margin-bottom: 0;
}

/* Text Alignment */
.g5e9-text-center {
  text-align: center;
}

.g5e9-text-left {
  text-align: left;
}

.g5e9-text-right {
  text-align: right;
}

/* Typography */
.g5e9-h1 {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--g5e9-primary);
  margin-bottom: 2rem;
}

.g5e9-h2 {
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--g5e9-primary);
  margin-bottom: 1.5rem;
}

.g5e9-h3 {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--g5e9-primary);
  margin-bottom: 1rem;
}

/* Cards */
.g5e9-card {
  background: var(--g5e9-bg);
  border-radius: var(--g5e9-border-radius);
  box-shadow: 0 4px 6px var(--g5e9-shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.g5e9-card:hover {
  box-shadow: 0 8px 15px var(--g5e9-shadow-lg);
}

.g5e9-card-header {
  padding: 2rem;
  border-bottom: 1px solid var(--g5e9-border);
  background: var(--g5e9-bg-light);
}

.g5e9-card-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--g5e9-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g5e9-card-body {
  padding: 2rem;
}

/* Buttons */
.g5e9-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: var(--g5e9-border-radius);
  background: var(--g5e9-secondary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.g5e9-btn:hover {
  background: #e55039;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
}

.g5e9-btn--large {
  padding: 1.6rem 3.2rem;
  font-size: 1.8rem;
}

.g5e9-btn--small {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

.g5e9-btn--outline {
  background: transparent;
  color: var(--g5e9-secondary);
  border: 2px solid var(--g5e9-secondary);
}

.g5e9-btn--outline:hover {
  background: var(--g5e9-secondary);
  color: white;
}

/* Grid System */
.g5e9-grid {
  display: grid;
  gap: 2rem;
}

.g5e9-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.g5e9-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.g5e9-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Game Grid */
.g5e9-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.g5e9-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--g5e9-border-radius);
  background: var(--g5e9-bg-light);
  text-decoration: none;
  color: var(--g5e9-text);
  transition: all 0.3s ease;
  border: 1px solid var(--g5e9-border);
}

.g5e9-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--g5e9-shadow-lg);
  background: white;
}

.g5e9-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

.g5e9-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* Stats Grid */
.g5e9-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.g5e9-stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--g5e9-bg-light);
  border-radius: var(--g5e9-border-radius);
  border: 1px solid var(--g5e9-border);
}

.g5e9-stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--g5e9-secondary);
  margin-bottom: 0.5rem;
}

.g5e9-stat-label {
  font-size: 1.4rem;
  color: var(--g5e9-text-muted);
  font-weight: 500;
}

/* Feature List */
.g5e9-feature-list {
  list-style: none;
  margin: 2rem 0;
}

.g5e9-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--g5e9-bg-light);
  border-radius: var(--g5e9-border-radius);
  border-left: 4px solid var(--g5e9-secondary);
}

.g5e9-feature-icon {
  color: var(--g5e9-secondary);
  font-size: 2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.g5e9-feature-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--g5e9-text);
}

/* Footer */
.g5e9-footer {
  background: var(--g5e9-primary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.g5e9-footer-content {
  text-align: center;
}

.g5e9-footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.g5e9-footer-link {
  color: var(--g5e9-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.g5e9-footer-link:hover {
  color: var(--g5e9-secondary);
}

.g5e9-copyright {
  border-top: 1px solid #404040;
  padding-top: 2rem;
  color: var(--g5e9-accent);
  font-size: 1.4rem;
}

/* Bottom Navigation */
.g5e9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--g5e9-bg);
  border-top: 1px solid var(--g5e9-border);
  display: none;
  justify-content: space-around;
  padding: 1rem 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.g5e9-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--g5e9-text-muted);
  font-size: 1.2rem;
  transition: color 0.3s ease;
  min-width: 6rem;
}

.g5e9-bottom-nav-item:hover {
  color: var(--g5e9-secondary);
}

.g5e9-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

/* Animations */
.g5e9-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.g5e9-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .g5e9-header-buttons .g5e9-btn-header {
    display: none;
  }
  
  .g5e9-burger {
    display: flex;
  }
  
  .g5e9-mobile-menu.g5e9-active,
  .g5e9-menu-overlay.g5e9-active {
    display: block;
  }
  
  .g5e9-h1 {
    font-size: 3.6rem;
  }
  
  .g5e9-h2 {
    font-size: 2.8rem;
  }
  
  .g5e9-grid-2,
  .g5e9-grid-3,
  .g5e9-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .g5e9-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 1rem;
  }
  
  .g5e9-footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .g5e9-bottom-nav {
    display: flex;
  }
  
  .g5e9-main {
    padding-bottom: 10rem;
  }
}

@media (max-width: 430px) {
  .g5e9-container {
    padding: 0 1.5rem;
  }
  
  .g5e9-header-content {
    padding: 1rem 1.5rem;
  }
  
  .g5e9-h1 {
    font-size: 3rem;
  }
  
  .g5e9-btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
  }
  
  .g5e9-btn--large {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
  }
  
  .g5e9-card-header,
  .g5e9-card-body {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .g5e9-header,
  .g5e9-footer,
  .g5e9-bottom-nav,
  .g5e9-btn {
    display: none !important;
  }
}