/* ME777 Live CSS - g77c Prefix */

:root {
  --g77c-primary: #FF8C00;
  --g77c-secondary: #FFB347;
  --g77c-accent: #D4AF37;
  --g77c-light: #E0E0E0;
  --g77c-dark: #0C0C0C;
  --g77c-text: #E0E0E0;
  --g77c-text-dark: #0C0C0C;
  --g77c-border: #333;
  --g77c-spacing: 1rem;
  --g77c-radius: 0.5rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g77c-dark);
  color: var(--g77c-text);
  line-height: 1.6;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--g77c-primary);
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.4rem;
  line-height: 1.3;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.5rem;
}

a {
  color: var(--g77c-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--g77c-primary);
}

/* Container */
.g77c-container {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.2rem;
}

/* Header Styles */
.g77c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.98);
  border-bottom: 2px solid var(--g77c-primary);
  z-index: 1000;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(10px);
}

.g77c-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.g77c-logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.g77c-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g77c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--g77c-dark);
  font-size: 1.8rem;
}

.g77c-site-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--g77c-primary);
  white-space: nowrap;
}

.g77c-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.g77c-btn-header {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  border: 2px solid var(--g77c-primary);
  border-radius: var(--g77c-radius);
  background: transparent;
  color: var(--g77c-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap;
}

.g77c-btn-header:hover {
  background: var(--g77c-primary);
  color: var(--g77c-dark);
  transform: scale(1.05);
}

.g77c-btn-header.g77c-register {
  background: var(--g77c-primary);
  color: var(--g77c-dark);
}

.g77c-btn-header.g77c-register:hover {
  background: var(--g77c-secondary);
  border-color: var(--g77c-secondary);
}

.g77c-hamburger {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.g77c-hamburger span {
  width: 24px;
  height: 3px;
  background: var(--g77c-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.g77c-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.g77c-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.g77c-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Navigation */
.g77c-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.g77c-nav-link {
  color: var(--g77c-text);
  font-size: 1.3rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.g77c-nav-link:hover,
.g77c-nav-link.g77c-active {
  color: var(--g77c-primary);
}

.g77c-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--g77c-primary);
  transition: width 0.3s ease;
}

.g77c-nav-link:hover::after,
.g77c-nav-link.g77c-active::after {
  width: 100%;
}

/* Mobile Menu */
.g77c-mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.98);
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.2rem;
  border-bottom: 2px solid var(--g77c-primary);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g77c-mobile-menu-open {
  display: flex !important;
}

.g77c-mobile-menu-link {
  color: var(--g77c-text);
  font-size: 1.4rem;
  padding: 1rem;
  border-radius: var(--g77c-radius);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g77c-mobile-menu-link:hover {
  background: rgba(255, 140, 0, 0.1);
  color: var(--g77c-primary);
  padding-left: 1.5rem;
}

/* Main Content */
main {
  margin-top: 70px;
  padding-bottom: 70px;
}

.g77c-main {
  padding: 1.5rem 0;
}

/* Carousel/Slider */
.g77c-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g77c-radius);
  margin: 2rem 0;
  aspect-ratio: 2;
}

.g77c-carousel-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.g77c-carousel-item:hover {
  transform: scale(1.02);
}

/* Game Grid */
.g77c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.g77c-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g77c-game-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--g77c-radius);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.g77c-game-card:hover .g77c-game-icon {
  border-color: var(--g77c-primary);
  transform: scale(1.05);
}

.g77c-game-name {
  font-size: 1.1rem;
  text-align: center;
  color: var(--g77c-light);
  font-weight: 600;
  line-height: 1.3;
}

/* Buttons */
.g77c-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--g77c-primary);
  color: var(--g77c-dark);
  border: none;
  border-radius: var(--g77c-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.g77c-btn:hover {
  background: var(--g77c-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.g77c-btn-secondary {
  background: transparent;
  border: 2px solid var(--g77c-primary);
  color: var(--g77c-primary);
}

.g77c-btn-secondary:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: var(--g77c-secondary);
  color: var(--g77c-secondary);
}

/* Cards and Sections */
.g77c-card {
  background: rgba(51, 51, 51, 0.6);
  border: 1px solid var(--g77c-border);
  border-radius: var(--g77c-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.g77c-section {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
}

.g77c-section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--g77c-primary);
  border-bottom: 2px solid var(--g77c-primary);
  padding-bottom: 1rem;
}

/* Footer */
.g77c-footer {
  background: rgba(12, 12, 12, 0.9);
  border-top: 2px solid var(--g77c-primary);
  padding: 2rem 1.2rem 6rem;
  margin-top: 3rem;
}

.g77c-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.g77c-footer-section {
  margin-bottom: 2rem;
}

.g77c-footer-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--g77c-primary);
  margin-bottom: 1rem;
}

.g77c-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.g77c-footer-link {
  color: var(--g77c-light);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.g77c-footer-link:hover {
  color: var(--g77c-primary);
}

.g77c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.g77c-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g77c-partner-logo:hover {
  opacity: 1;
}

.g77c-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g77c-text);
  opacity: 0.7;
  margin-top: 1.5rem;
  border-top: 1px solid var(--g77c-border);
  padding-top: 1.5rem;
}

/* Mobile Bottom Navigation */
.g77c-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.95);
  border-top: 2px solid var(--g77c-primary);
  height: 64px;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.g77c-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 100%;
  width: 100%;
}

.g77c-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  background: none;
  border: none;
  color: var(--g77c-light);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
  min-height: 60px;
  font-size: 1rem;
  border-radius: 0;
}

.g77c-bottom-nav-btn i {
  font-size: 22px;
  transition: all 0.3s ease;
}

.g77c-bottom-nav-btn:hover,
.g77c-bottom-nav-btn.g77c-active {
  color: var(--g77c-primary);
  background: rgba(255, 140, 0, 0.1);
  transform: scale(1.1);
}

.g77c-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .g77c-nav {
    display: none;
  }

  .g77c-hamburger {
    display: flex;
  }

  .g77c-header-buttons {
    gap: 0.4rem;
  }

  .g77c-btn-header {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
  }

  main {
    margin-top: 70px;
    padding-bottom: 80px;
  }

  .g77c-bottom-nav {
    display: flex;
  }

  .g77c-site-name {
    font-size: 1.3rem;
  }

  .g77c-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .g77c-game-icon {
    width: 70px;
    height: 70px;
  }

  .g77c-game-name {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 430px) {
  .g77c-container {
    padding: 0 1rem;
  }

  .g77c-header {
    padding: 0.8rem 1rem;
  }

  .g77c-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .g77c-game-icon {
    width: 65px;
    height: 65px;
  }

  .g77c-carousel {
    margin: 1.5rem 0;
  }

  .g77c-btn {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  .g77c-section {
    margin: 2rem 0;
    padding: 1rem 0;
  }
}

/* Print Styles */
@media print {
  .g77c-header,
  .g77c-footer,
  .g77c-bottom-nav {
    display: none;
  }

  main {
    margin: 0;
    padding: 0;
  }
}
