/* 365 login - Main Stylesheet */
/* All classes use g277- prefix for namespace isolation */

:root {
  --g277-primary: #00695C;
  --g277-bg-dark: #2C3E50;
  --g277-accent: #FF6347;
  --g277-pink: #FFC0CB;
  --g277-teal: #4DB6AC;
  --g277-text-light: #f0f0f0;
  --g277-text-muted: #b0b0b0;
  --g277-card-bg: #34495E;
  --g277-border: #3d566e;
  --g277-radius: 8px;
  --g277-max-w: 430px;
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--g277-bg-dark);
  color: var(--g277-text-light);
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: var(--g277-max-w);
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g277-teal); text-decoration: none; }
a:hover { color: var(--g277-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.g277-container { width: 100%; padding: 0 1.2rem; max-width: var(--g277-max-w); margin: 0 auto; }

/* Header */
.g277-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--g277-max-w);
  background: linear-gradient(135deg, var(--g277-primary), var(--g277-bg-dark));
  z-index: 1000; padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--g277-teal);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.g277-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.g277-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.g277-logo-area span { font-size: 1.5rem; font-weight: 700; color: #fff; white-space: nowrap; }
.g277-header-btns { display: flex; gap: 0.6rem; align-items: center; }
.g277-header-btns .g277-btn {
  padding: 0.5rem 1.2rem; border-radius: 6px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  min-height: 36px;
}
.g277-btn-register { background: var(--g277-accent); color: #fff; }
.g277-btn-register:hover { background: #e5553a; transform: scale(1.05); }
.g277-btn-login { background: transparent; color: var(--g277-teal); border: 1.5px solid var(--g277-teal) !important; }
.g277-btn-login:hover { background: var(--g277-teal); color: #fff; }
.g277-menu-btn {
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; padding: 0.4rem; display: flex; align-items: center;
}

/* Mobile menu */
.g277-menu-hidden { display: none; }
.g277-menu-active {
  display: block; position: fixed; top: 0; right: 0;
  width: 75%; max-width: 300px; height: 100vh;
  background: var(--g277-bg-dark); z-index: 9999;
  padding: 2rem 1.5rem; animation: g277-slideIn 0.3s ease;
  border-left: 2px solid var(--g277-teal);
  overflow-y: auto;
}
@keyframes g277-slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.g277-menu-active ul { list-style: none; }
.g277-menu-active li { margin-bottom: 1.4rem; }
.g277-menu-active a {
  color: var(--g277-text-light); font-size: 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; transition: color 0.2s;
}
.g277-menu-active a:hover { color: var(--g277-teal); }
.g277-menu-close {
  background: none; border: none; color: var(--g277-accent);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem;
}
#pro77a-menu-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.g277-overlay-visible { display: block !important; }

/* Main content */
.g277-main { padding-top: 5.6rem; }

/* Carousel */
.g277-carousel { position: relative; width: 100%; overflow: hidden; border-radius: 0 0 var(--g277-radius) var(--g277-radius); }
.g277-carousel-slide { display: none; cursor: pointer; }
.g277-carousel-slide img { width: 100%; height: auto; min-height: 160px; object-fit: cover; }
.g277-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.g277-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.3s; border: none;
}
.g277-dot-active { background: var(--g277-accent); width: 20px; border-radius: 4px; }

/* Section */
.g277-section { padding: 2rem 1.2rem; }
.g277-section-title {
  font-size: 1.8rem; font-weight: 700; color: #fff;
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g277-teal);
}
.g277-section-title i { margin-right: 0.5rem; color: var(--g277-accent); }

/* Game grid */
.g277-game-category { margin-bottom: 2rem; }
.g277-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--g277-teal);
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}
.g277-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.g277-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  background: var(--g277-card-bg); border-radius: var(--g277-radius);
  padding: 0.5rem; overflow: hidden;
}
.g277-game-item:hover { transform: scale(1.05); }
.g277-game-item img { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; margin-bottom: 0.3rem; }
.g277-game-item span {
  font-size: 1rem; color: var(--g277-text-light); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Content cards */
.g277-card {
  background: var(--g277-card-bg); border-radius: var(--g277-radius);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 1px solid var(--g277-border);
}
.g277-card h3 { font-size: 1.5rem; color: var(--g277-teal); margin-bottom: 0.8rem; }
.g277-card p { font-size: 1.3rem; line-height: 1.6; color: var(--g277-text-muted); margin-bottom: 0.8rem; }

/* Promo button inline */
.g277-promo-text {
  color: var(--g277-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; display: inline;
}

/* CTA sections */
.g277-cta {
  background: linear-gradient(135deg, var(--g277-primary), #004D40);
  border-radius: var(--g277-radius); padding: 2rem;
  text-align: center; margin: 1.5rem 1.2rem;
}
.g277-cta h2 { font-size: 1.8rem; color: #fff; margin-bottom: 1rem; }
.g277-cta p { font-size: 1.3rem; color: var(--g277-pink); margin-bottom: 1.2rem; }
.g277-cta-btn {
  display: inline-block; background: var(--g277-accent);
  color: #fff; padding: 1rem 2.4rem; border-radius: 6px;
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.3s;
}
.g277-cta-btn:hover { background: #e5553a; transform: scale(1.05); }

/* Footer */
.g277-footer {
  background: #1a252f; padding: 2rem 1.2rem;
  border-top: 2px solid var(--g277-primary);
}
.g277-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.g277-footer-brand p { font-size: 1.2rem; color: var(--g277-text-muted); line-height: 1.6; }
.g277-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem; margin-bottom: 1.5rem;
}
.g277-footer-links a {
  background: var(--g277-card-bg); color: var(--g277-teal);
  padding: 0.5rem 1rem; border-radius: 4px; font-size: 1.1rem;
  border: 1px solid var(--g277-border); transition: all 0.2s;
}
.g277-footer-links a:hover { background: var(--g277-teal); color: #fff; }
.g277-footer-copy {
  text-align: center; font-size: 1.1rem;
  color: var(--g277-text-muted); border-top: 1px solid var(--g277-border);
  padding-top: 1rem;
}

/* Bottom navigation */
.g277-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--g277-max-w);
  background: linear-gradient(180deg, #1a252f, #0d1520);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; z-index: 1000;
  border-top: 1.5px solid var(--g277-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.g277-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; color: var(--g277-text-muted);
  cursor: pointer; transition: all 0.25s; padding: 0.4rem;
  border-radius: 8px;
}
.g277-bottom-btn i, .g277-bottom-btn .material-icons {
  font-size: 22px; margin-bottom: 2px; transition: all 0.25s;
}
.g277-bottom-btn span { font-size: 1rem; white-space: nowrap; }
.g277-bottom-btn:hover, .g277-bottom-btn:focus {
  color: var(--g277-accent); transform: scale(1.1);
}
.g277-bottom-btn.g277-active { color: var(--g277-teal); }
.g277-bottom-btn.g277-active i { text-shadow: 0 0 8px var(--g277-teal); }

/* Scroll to top */
#pro77a-scroll-top {
  display: none; position: fixed; bottom: 70px; right: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--g277-primary); color: #fff;
  border: none; cursor: pointer; font-size: 1.6rem;
  align-items: center; justify-content: center;
  z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.2s;
}
#pro77a-scroll-top:hover { background: var(--g277-teal); transform: scale(1.1); }

/* Content helpers */
.g277-text-accent { color: var(--g277-accent); }
.g277-text-teal { color: var(--g277-teal); }
.g277-text-pink { color: var(--g277-pink); }
.g277-mt-1 { margin-top: 0.8rem; }
.g277-mb-1 { margin-bottom: 0.8rem; }
.g277-text-center { text-align: center; }
.g277-bold { font-weight: 700; }
.g277-inline-link { color: var(--g277-teal); text-decoration: underline; cursor: pointer; }

/* Responsive - desktop hide bottom nav */
@media (min-width: 769px) {
  .g277-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  .g277-main { padding-bottom: 80px; }
}

/* Winner ticker */
.g277-winner-ticker {
  background: var(--g277-card-bg); border-radius: var(--g277-radius);
  padding: 0.8rem 1rem; margin: 1rem 1.2rem; overflow: hidden;
}
.g277-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--g277-border);
}
.g277-winner-row:last-child { border-bottom: none; }
.g277-winner-name { color: var(--g277-teal); font-weight: 600; }
.g277-winner-amount { color: var(--g277-accent); font-weight: 700; }
.g277-winner-game { color: var(--g277-text-muted); font-size: 1.1rem; }

/* RTP compact table */
.g277-rtp-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem; margin-top: 0.8rem;
}
.g277-rtp-item {
  background: rgba(0,105,92,0.15); border-radius: 6px;
  padding: 0.6rem 0.8rem; display: flex; justify-content: space-between;
  font-size: 1.2rem;
}
.g277-rtp-name { color: var(--g277-text-light); }
.g277-rtp-val { color: var(--g277-accent); font-weight: 600; }

/* Payment icons row */
.g277-payment-row {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin: 1rem 0;
}
.g277-pay-icon {
  background: var(--g277-card-bg); border-radius: 6px;
  padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--g277-text-muted);
  border: 1px solid var(--g277-border);
}

/* Feature list */
.g277-feature-list { list-style: none; }
.g277-feature-list li {
  padding: 0.8rem 0; border-bottom: 1px solid var(--g277-border);
  display: flex; align-items: flex-start; gap: 0.8rem;
  font-size: 1.3rem; color: var(--g277-text-muted);
}
.g277-feature-list li i { color: var(--g277-teal); margin-top: 0.2rem; font-size: 1.4rem; }
.g277-feature-list li:last-child { border-bottom: none; }

/* Testimonial */
.g277-testimonial {
  background: rgba(77,182,172,0.08); border-left: 3px solid var(--g277-teal);
  padding: 1rem; margin-bottom: 0.8rem; border-radius: 0 var(--g277-radius) var(--g277-radius) 0;
}
.g277-testimonial p { font-style: italic; font-size: 1.2rem; color: var(--g277-text-muted); margin-bottom: 0.4rem; }
.g277-testimonial strong { color: var(--g277-teal); font-size: 1.1rem; }
