/*
 * 13333.cfd - Layout Stylesheet
 * CSS class prefix: pg53-
 * Color palette: #87CEFA | #E5E5E5 | #141414 | #0000CD | #E0FFFF | #FFB347
 * Mobile-first responsive design
 */

:root {
  --pg53-primary: #0000CD;
  --pg53-accent: #FFB347;
  --pg53-bg: #141414;
  --pg53-bg-light: #1a1a2e;
  --pg53-text: #E0FFFF;
  --pg53-text-muted: #E5E5E5;
  --pg53-highlight: #87CEFA;
  --pg53-card: #1e1e3a;
  --pg53-border: #2a2a4a;
  --pg53-success: #4CAF50;
  --pg53-radius: 8px;
  --pg53-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --pg53-transition: all 0.3s ease;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg53-bg);
  color: var(--pg53-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--pg53-highlight); text-decoration: none; transition: var(--pg53-transition); }
a:hover { color: var(--pg53-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ===================== CONTAINER ===================== */
.pg53-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg53-wrapper { width: 100%; box-sizing: border-box; }

/* ===================== HEADER ===================== */
.pg53-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0d0d2b 0%, #141428 100%);
  border-bottom: 2px solid var(--pg53-primary);
  box-shadow: 0 2px 16px rgba(0, 0, 205, 0.2);
}
.pg53-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.4rem;
}
.pg53-logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.pg53-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.pg53-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--pg53-accent); letter-spacing: 0.05rem; }
.pg53-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.pg53-btn-register, .pg53-btn-login {
  border: none; border-radius: 2rem; padding: 0.6rem 1.4rem;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: var(--pg53-transition); min-height: 3.6rem;
}
.pg53-btn-register {
  background: linear-gradient(135deg, var(--pg53-accent), #ff9500);
  color: #141414; box-shadow: 0 2px 8px rgba(255, 179, 71, 0.4);
}
.pg53-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255, 179, 71, 0.6); }
.pg53-btn-login {
  background: transparent; color: var(--pg53-highlight);
  border: 2px solid var(--pg53-highlight);
}
.pg53-btn-login:hover { background: var(--pg53-highlight); color: var(--pg53-bg); }
.pg53-menu-toggle {
  background: none; border: none; color: var(--pg53-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===================== MOBILE MENU ===================== */
.pg53-mobile-menu {
  display: none; max-height: 0; overflow: hidden;
  background: #0d0d2b; border-bottom: 2px solid var(--pg53-primary);
  transition: max-height 0.3s ease;
  position: fixed; top: 5.4rem; left: 0; right: 0; z-index: 9999;
}
.pg53-mobile-menu a {
  display: block; padding: 1rem 1.6rem; font-size: 1.3rem;
  color: var(--pg53-text-muted); border-bottom: 1px solid var(--pg53-border);
  transition: var(--pg53-transition);
}
.pg53-mobile-menu a:hover { background: rgba(0, 0, 205, 0.15); color: var(--pg53-accent); }

/* ===================== CAROUSEL ===================== */
.pg53-carousel { position: relative; overflow: hidden; border-radius: var(--pg53-radius); margin-top: 1rem; }
.pg53-slide {
  display: none; width: 100%; opacity: 0;
  transition: opacity 0.5s ease; cursor: pointer;
}
.pg53-slide:first-child { display: block; opacity: 1; }
.pg53-slide img { width: 100%; height: auto; border-radius: var(--pg53-radius); }

/* ===================== SECTION TITLES ===================== */
.pg53-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--pg53-accent);
  margin: 2rem 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg53-primary);
}
.pg53-section-title i { margin-right: 0.6rem; color: var(--pg53-highlight); }

/* ===================== GAME GRID ===================== */
.pg53-category-label {
  font-size: 1.5rem; font-weight: 700; color: var(--pg53-highlight);
  margin: 1.6rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--pg53-accent); padding-left: 0.8rem;
}
.pg53-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; padding: 0.4rem 0;
}
.pg53-game-item {
  text-align: center; cursor: pointer;
  background: var(--pg53-card); border-radius: var(--pg53-radius);
  padding: 0.6rem 0.3rem; transition: var(--pg53-transition);
  border: 1px solid transparent;
}
.pg53-game-item:hover { border-color: var(--pg53-primary); transform: translateY(-2px); box-shadow: var(--pg53-shadow); }
.pg53-game-item img { width: 100%; aspect-ratio: 1; border-radius: 0.5rem; margin-bottom: 0.3rem; object-fit: cover; }
.pg53-game-name { font-size: 1rem; color: var(--pg53-text-muted); line-height: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================== CONTENT CARDS ===================== */
.pg53-card {
  background: var(--pg53-card); border-radius: var(--pg53-radius);
  padding: 1.4rem; margin: 1rem 0; border: 1px solid var(--pg53-border);
  box-shadow: var(--pg53-shadow);
}
.pg53-card h3 { font-size: 1.4rem; color: var(--pg53-accent); margin: 0 0 0.6rem; }
.pg53-card p { font-size: 1.2rem; color: var(--pg53-text-muted); line-height: 1.6rem; margin: 0.4rem 0; }

/* ===================== PROMO BUTTONS ===================== */
.pg53-btn {
  display: inline-block; border: none; border-radius: 2rem;
  padding: 0.8rem 2rem; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: var(--pg53-transition);
  text-align: center; min-height: 4rem;
}
.pg53-btn-primary {
  background: linear-gradient(135deg, var(--pg53-primary), #0040ff);
  color: #fff; box-shadow: 0 3px 12px rgba(0, 0, 205, 0.4);
}
.pg53-btn-primary:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(0, 0, 205, 0.6); }
.pg53-btn-accent {
  background: linear-gradient(135deg, var(--pg53-accent), #ff9500);
  color: #141414; box-shadow: 0 3px 12px rgba(255, 179, 71, 0.4);
}
.pg53-btn-accent:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(255, 179, 71, 0.6); }
.pg53-btn-outline {
  background: transparent; color: var(--pg53-highlight);
  border: 2px solid var(--pg53-highlight); padding: 0.6rem 1.6rem;
}
.pg53-btn-outline:hover { background: var(--pg53-highlight); color: var(--pg53-bg); }
.pg53-btn-block { display: block; width: 100%; box-sizing: border-box; }

/* ===================== BOTTOM NAV ===================== */
.pg53-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0d0d2b 0%, #080818 100%);
  border-top: 2px solid var(--pg53-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding: 0.2rem 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 205, 0.3);
}
.pg53-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--pg53-text-muted);
  font-size: 0.9rem; cursor: pointer; min-width: 6rem; min-height: 5rem;
  transition: var(--pg53-transition); padding: 0.2rem;
  border-radius: 0.6rem;
}
.pg53-bottom-nav-btn i, .pg53-bottom-nav-btn .material-icons {
  font-size: 2.2rem; margin-bottom: 0.2rem; transition: var(--pg53-transition);
}
.pg53-bottom-nav-btn:hover, .pg53-bottom-nav-btn.pg53-active {
  color: var(--pg53-accent);
}
.pg53-bottom-nav-btn:hover i, .pg53-bottom-nav-btn.pg53-active i,
.pg53-bottom-nav-btn:hover .material-icons, .pg53-bottom-nav-btn.pg53-active .material-icons {
  transform: scale(1.15);
}
.pg53-bottom-nav-btn:active { transform: scale(0.92); }
.pg53-nav-label { font-size: 1rem; line-height: 1.2rem; }

/* ===================== FOOTER ===================== */
.pg53-footer {
  background: #080818; padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--pg53-border);
}
.pg53-footer-brand { font-size: 1.2rem; color: var(--pg53-text-muted); line-height: 1.6rem; margin-bottom: 1.2rem; }
.pg53-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.pg53-footer-links a {
  background: var(--pg53-card); border: 1px solid var(--pg53-border);
  border-radius: 2rem; padding: 0.4rem 1rem; font-size: 1.1rem;
  color: var(--pg53-text-muted); transition: var(--pg53-transition);
}
.pg53-footer-links a:hover { border-color: var(--pg53-accent); color: var(--pg53-accent); }
.pg53-footer-copy { text-align: center; font-size: 1rem; color: #555; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--pg53-border); }

/* ===================== PROMO TEXT LINK ===================== */
.pg53-promo-link {
  color: var(--pg53-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--pg53-accent); transition: var(--pg53-transition);
}
.pg53-promo-link:hover { color: #fff; border-bottom-color: #fff; }

/* ===================== WINNER TABLE ===================== */
.pg53-winner-list { list-style: none; padding: 0; margin: 0; }
.pg53-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid var(--pg53-border);
  font-size: 1.2rem;
}
.pg53-winner-name { color: var(--pg53-highlight); font-weight: 600; }
.pg53-winner-amount { color: var(--pg53-accent); font-weight: 700; }

/* ===================== TESTIMONIAL ===================== */
.pg53-testimonial {
  background: var(--pg53-card); border-radius: var(--pg53-radius);
  padding: 1.2rem; margin: 0.6rem 0; border-left: 3px solid var(--pg53-accent);
}
.pg53-testimonial-text { font-size: 1.2rem; color: var(--pg53-text-muted); font-style: italic; line-height: 1.5rem; }
.pg53-testimonial-author { font-size: 1.1rem; color: var(--pg53-highlight); margin-top: 0.4rem; }

/* ===================== PAYMENT ICONS ===================== */
.pg53-payment-row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin: 0.6rem 0; }
.pg53-payment-item {
  background: var(--pg53-card); border: 1px solid var(--pg53-border);
  border-radius: 0.4rem; padding: 0.4rem 0.8rem; font-size: 1.1rem;
  color: var(--pg53-text-muted);
}

/* ===================== SPACERS ===================== */
.pg53-spacer { height: 6rem; }
.pg53-main { padding-top: 6rem; }

/* ===================== DESKTOP HIDDEN / MOBILE SHOWN ===================== */
@media (min-width: 769px) {
  .pg53-bottom-nav { display: none; }
  .pg53-mobile-only { display: none; }
  .pg53-container { max-width: 430px; }
}
@media (max-width: 768px) {
  .pg53-main { padding-bottom: 8rem; }
}
