/* 789 bet bingo - Main Stylesheet */
/* All classes use pg47- prefix for namespace isolation */

/* CSS Variables */
:root {
  --pg47-primary: #FF0000;
  --pg47-pink: #FF69B4;
  --pg47-blue: #0000FF;
  --pg47-dark-blue: #0000CD;
  --pg47-bg: #0C0C0C;
  --pg47-text: #FFFFFF;
  --pg47-text-muted: #CCCCCC;
  --pg47-border: #333333;
  --pg47-gradient: linear-gradient(135deg, #FF0000 0%, #FF69B4 50%, #0000FF 100%);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pg47-bg);
  color: var(--pg47-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Container */
.pg47-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* Header */
.pg47-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(12, 12, 12, 0.95) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid var(--pg47-primary);
  box-shadow: 0 2px 20px rgba(255, 0, 0, 0.3);
}

.pg47-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

.pg47-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--pg47-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.pg47-header-buttons {
  display: flex;
  gap: 10px;
}

.pg47-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pg47-btn-register {
  background: var(--pg47-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.pg47-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.pg47-btn-login {
  background: transparent;
  color: var(--pg47-pink);
  border: 2px solid var(--pg47-pink);
}

.pg47-btn-login:hover {
  background: var(--pg47-pink);
  color: #FFFFFF;
}

.pg47-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--pg47-text);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

@media (min-width: 769px) {
  .pg47-menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.pg47-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #0C0C0C 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 80px 20px 20px;
  overflow-y: auto;
  border-left: 2px solid var(--pg47-primary);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8);
}

.pg47-mobile-menu.pg47-active {
  right: 0;
}

.pg47-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--pg47-text);
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
}

.pg47-menu-nav {
  list-style: none;
}

.pg47-menu-nav li {
  margin-bottom: 5px;
}

.pg47-menu-nav a {
  display: block;
  padding: 12px 15px;
  color: var(--pg47-text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
  border-left: 3px solid transparent;
}

.pg47-menu-nav a:hover {
  background: rgba(255, 0, 0, 0.1);
  border-left-color: var(--pg47-primary);
  padding-left: 20px;
  color: var(--pg47-primary);
}

/* Main Content */
main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  main {
    padding-bottom: 40px;
  }
}

/* Slider */
.pg47-slider-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(255, 0, 0, 0.3);
}

.pg47-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.pg47-slide {
  min-width: 100%;
  position: relative;
}

.pg47-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.pg47-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.pg47-slide-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--pg47-primary);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.pg47-slide-btn {
  display: inline-block;
  padding: 10px 25px;
  background: var(--pg47-gradient);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.pg47-slide-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

/* Section Styles */
.pg47-section {
  margin-bottom: 40px;
  padding: 25px 20px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(255, 105, 180, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.pg47-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--pg47-primary);
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

.pg47-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--pg47-gradient);
  border-radius: 2px;
}

/* Game Grid */
.pg47-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.pg47-game-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pg47-game-card:hover {
  border-color: var(--pg47-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.pg47-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pg47-game-name {
  padding: 8px 5px;
  font-size: 11px;
  color: var(--pg47-text);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Cards */
.pg47-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.pg47-card:hover {
  border-color: var(--pg47-pink);
  box-shadow: 0 5px 20px rgba(255, 105, 180, 0.2);
}

.pg47-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--pg47-pink);
  margin-bottom: 12px;
}

.pg47-card-text {
  color: var(--pg47-text-muted);
  line-height: 1.7;
  font-size: 14px;
}

.pg47-card-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  background: var(--pg47-dark-blue);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pg47-card-link:hover {
  background: var(--pg47-blue);
  transform: translateX(5px);
}

/* Promo Buttons */
.pg47-promo-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--pg47-gradient);
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
  cursor: pointer;
  border: none;
}

.pg47-promo-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
}

/* Footer */
.pg47-footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  padding: 40px 20px 100px;
  border-top: 2px solid var(--pg47-primary);
  margin-top: 40px;
}

@media (min-width: 769px) {
  .pg47-footer {
    padding-bottom: 40px;
  }
}

.pg47-footer-logo {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--pg47-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.pg47-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.pg47-partner-img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pg47-partner-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg47-footer-links {
  text-align: center;
  margin-bottom: 20px;
}

.pg47-footer-links a {
  color: var(--pg47-text-muted);
  text-decoration: none;
  margin: 0 10px;
  font-size: 13px;
  transition: color 0.3s ease;
}

.pg47-footer-links a:hover {
  color: var(--pg47-pink);
}

.pg47-footer-text {
  text-align: center;
  color: var(--pg47-text-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Bottom Navigation (Mobile) */
.pg47-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--pg47-primary);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -2px 20px rgba(255, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .pg47-bottom-nav {
    display: none;
  }
}

.pg47-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--pg47-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
  padding: 5px;
}

.pg47-nav-item:hover {
  color: var(--pg47-primary);
  background: rgba(255, 0, 0, 0.1);
  transform: translateY(-3px);
}

.pg47-nav-item.pg47-active {
  color: var(--pg47-primary);
}

.pg47-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.pg47-nav-text {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Notification */
.pg47-notification {
  position: fixed;
  top: 90px;
  right: 20px;
  background: var(--pg47-gradient);
  color: #FFFFFF;
  padding: 15px 25px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: pg47-slideIn 0.3s ease;
}

@keyframes pg47-slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Utilities */
@media (max-width: 380px) {
  .pg47-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch feedback */
.pg47-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Loading animation */
@keyframes pg47-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pg47-loading {
  animation: pg47-pulse 1.5s ease-in-out infinite;
}
