/* 8999 Pet - Main Stylesheet */
/* All classes use g45f- prefix for namespace isolation */
/* Color palette: #B22222 | #DEB887 | #0E1621 | #FFC0CB | #FFCC33 */

:root {
  --g45f-primary: #B22222;
  --g45f-secondary: #DEB887;
  --g45f-bg: #0E1621;
  --g45f-bg-light: #1a2332;
  --g45f-bg-card: #162030;
  --g45f-text: #FFC0CB;
  --g45f-text-light: #f0d0d8;
  --g45f-accent: #FFCC33;
  --g45f-border: #2a3a50;
  --g45f-success: #4CAF50;
  --g45f-radius: 8px;
  --g45f-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--g45f-bg);
  color: var(--g45f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-text-size-adjust: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* Header */
.g45f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 52px;
  background: linear-gradient(135deg, var(--g45f-primary), #8B0000);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(178,34,34,0.4);
  box-sizing: border-box;
}

.g45f-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.g45f-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.g45f-logo span {
  color: var(--g45f-accent);
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.g45f-header-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.g45f-btn-register, .g45f-btn-login {
  padding: 6px 14px;
  border: none;
  border-radius: var(--g45f-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  text-transform: uppercase;
}

.g45f-btn-register {
  background: var(--g45f-accent);
  color: var(--g45f-bg);
}

.g45f-btn-login {
  background: var(--g45f-secondary);
  color: var(--g45f-bg);
}

.g45f-btn-register:hover, .g45f-btn-login:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.g45f-menu-btn {
  background: none;
  border: none;
  color: var(--g45f-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Menu */
.g45f-mobile-menu {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--g45f-bg-light);
  z-index: 9999;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--g45f-shadow);
}

.g45f-mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--g45f-text);
  text-decoration: none;
  border-bottom: 1px solid var(--g45f-border);
  font-size: 1.3rem;
  transition: background 0.2s;
}

.g45f-mobile-menu a:hover {
  background: rgba(178,34,34,0.2);
  color: var(--g45f-accent);
}

/* Main Content */
.g45f-main {
  margin-top: 52px;
  padding-bottom: 20px;
  min-height: calc(100vh - 52px);
}

/* Carousel */
.g45f-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--g45f-bg-light);
}

.g45f-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.g45f-slide-active {
  opacity: 1;
}

.g45f-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g45f-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.g45f-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.g45f-dot-active {
  background: var(--g45f-accent);
  width: 20px;
  border-radius: 4px;
}

/* Sections */
.g45f-section {
  padding: 16px 12px;
}

.g45f-section-title {
  font-size: 1.8rem;
  color: var(--g45f-accent);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g45f-primary);
  font-weight: 700;
}

.g45f-section-desc {
  font-size: 1.3rem;
  color: var(--g45f-text-light);
  line-height: 2rem;
  margin-bottom: 12px;
}

/* Game Grid */
.g45f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.g45f-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.g45f-game-item:hover {
  transform: scale(1.05);
}

.g45f-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g45f-radius);
  border: 2px solid var(--g45f-border);
}

.g45f-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--g45f-text);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Tab */
.g45f-cat-title {
  font-size: 1.5rem;
  color: var(--g45f-secondary);
  margin: 16px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Promo Button */
.g45f-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g45f-primary), #d4380d);
  color: #fff;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.g45f-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(178,34,34,0.5);
}

.g45f-promo-btn-gold {
  background: linear-gradient(135deg, var(--g45f-accent), #e6a800);
  color: var(--g45f-bg);
}

/* Card Component */
.g45f-card {
  background: var(--g45f-bg-card);
  border-radius: var(--g45f-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--g45f-border);
}

.g45f-card h3 {
  color: var(--g45f-accent);
  font-size: 1.5rem;
  margin: 0 0 8px 0;
}

.g45f-card p {
  margin: 0;
  line-height: 2rem;
  font-size: 1.3rem;
}

/* Footer */
.g45f-footer {
  background: var(--g45f-bg-light);
  padding: 20px 12px;
  text-align: center;
  border-top: 2px solid var(--g45f-primary);
}

.g45f-footer-desc {
  font-size: 1.2rem;
  color: var(--g45f-text-light);
  line-height: 1.8rem;
  margin-bottom: 12px;
}

.g45f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.g45f-footer-links a {
  color: var(--g45f-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 4px 8px;
  border: 1px solid var(--g45f-border);
  border-radius: 4px;
  transition: color 0.2s;
}

.g45f-footer-links a:hover {
  color: var(--g45f-accent);
}

.g45f-copyright {
  font-size: 1.1rem;
  color: #666;
  margin-top: 8px;
}

/* Bottom Navigation */
.g45f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--g45f-bg-light), #0a1018);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g45f-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.g45f-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--g45f-text);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
}

.g45f-bottom-nav-btn:hover, .g45f-bottom-nav-btn:active {
  color: var(--g45f-accent);
  transform: scale(1.1);
}

.g45f-bottom-nav-btn span {
  font-size: 1rem;
  margin-top: 2px;
}

.g45f-bottom-nav-btn i, .g45f-bottom-nav-btn .material-icons {
  font-size: 22px;
}

.g45f-nav-active {
  color: var(--g45f-accent) !important;
}

/* Info Box */
.g45f-info-box {
  background: linear-gradient(135deg, rgba(178,34,34,0.15), rgba(222,184,135,0.1));
  border: 1px solid var(--g45f-primary);
  border-radius: var(--g45f-radius);
  padding: 14px;
  margin-bottom: 12px;
}

.g45f-info-box h3 {
  color: var(--g45f-accent);
  font-size: 1.5rem;
  margin: 0 0 6px 0;
}

/* Winner List */
.g45f-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--g45f-border);
}

.g45f-winner-name {
  color: var(--g45f-secondary);
  font-weight: 600;
  font-size: 1.2rem;
}

.g45f-winner-amount {
  color: var(--g45f-accent);
  font-weight: 700;
  font-size: 1.3rem;
}

/* Testimonial */
.g45f-testimonial {
  background: var(--g45f-bg-card);
  border-radius: var(--g45f-radius);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--g45f-accent);
}

.g45f-testimonial p {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin: 0 0 6px 0;
}

.g45f-testimonial cite {
  color: var(--g45f-secondary);
  font-size: 1.1rem;
}

/* Payment Methods */
.g45f-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.g45f-payment-item {
  background: var(--g45f-bg-card);
  border: 1px solid var(--g45f-border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--g45f-text-light);
}

/* Feature Grid */
.g45f-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.g45f-feature-item {
  background: var(--g45f-bg-card);
  border-radius: var(--g45f-radius);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--g45f-border);
}

.g45f-feature-item h4 {
  color: var(--g45f-accent);
  font-size: 1.3rem;
  margin: 6px 0 4px 0;
}

.g45f-feature-item p {
  font-size: 1.1rem;
  color: var(--g45f-text-light);
  margin: 0;
}

/* Link Text */
.g45f-text-link {
  color: var(--g45f-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.g45f-text-link:hover {
  color: var(--g45f-accent);
}

/* Center text */
.g45f-text-center {
  text-align: center;
}

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
  .g45f-bottom-nav {
    display: none;
  }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  .g45f-main {
    padding-bottom: 80px;
  }
}
