/* CSS for phwin777.app - Mobile-first design with responsive elements */

:root {
  /* Main color palette */
  --pgef-primary: #BF360C;
  --pgef-secondary: #FF7F50;
  --pgef-accent: #FF0000;
  --pgef-light: #DB7093;
  --pgef-dark: #0C0C0C;
  --pgef-gray: #808080;
  --pgef-text-light: #ffffff;
  --pgef-text-dark: #333333;
  --pgef-gradient-primary: linear-gradient(135deg, var(--pgef-primary), var(--pgef-accent));
  --pgef-gradient-secondary: linear-gradient(135deg, var(--pgef-secondary), var(--pgef-light));
  
  /* Typography */
  font-size: 62.5%; /* 1rem = 10px */
}

/* Reset and base styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pgef-text-light);
  background-color: var(--pgef-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */
.pgef-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pgef-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pgef-content {
  flex: 1;
  padding-bottom: 6.4rem; /* Space for fixed bottom nav */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.8rem;
  background: var(--pgef-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  padding: 1rem 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

h2 {
  font-size: 2.4rem;
  color: var(--pgef-secondary);
}

h3 {
  font-size: 2rem;
  color: var(--pgef-light);
}

p {
  margin-bottom: 1.6rem;
}

a {
  color: var(--pgef-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--pgef-accent);
}

/* Header styles */
.pgef-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(12, 12, 12, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pgef-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
  padding: 0 1.5rem;
}

.pgef-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgef-logo img {
  height: 32px;
  width: auto;
}

.pgef-logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--pgef-gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

/* Navigation */
.pgef-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: none;
  color: var(--pgef-text-light);
  font-size: 2.4rem;
  cursor: pointer;
}

.pgef-nav {
  position: fixed;
  top: 6rem;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: calc(100vh - 6rem);
  background-color: rgba(12, 12, 12, 0.98);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 990;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pgef-nav.pgef-active {
  right: 0;
}

.pgef-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.pgef-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgef-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--pgef-text-light);
  font-size: 1.6rem;
  transition: all 0.2s ease;
}

.pgef-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--pgef-secondary);
}

.pgef-submenu {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
}

.pgef-submenu.pgef-active {
  display: block;
}

.pgef-submenu-link {
  padding-left: 4rem;
  font-size: 1.5rem;
}

/* Buttons */
.pgef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px; /* Minimum touch target */
  border: none;
}

.pgef-btn-primary {
  background: var(--pgef-gradient-primary);
  color: var(--pgef-text-light);
  box-shadow: 0 4px 10px rgba(191, 54, 12, 0.3);
}

.pgef-btn-secondary {
  background: var(--pgef-gradient-secondary);
  color: var(--pgef-text-light);
  box-shadow: 0 4px 10px rgba(219, 112, 147, 0.3);
}

.pgef-btn-outline {
  background: transparent;
  color: var(--pgef-secondary);
  border: 2px solid var(--pgef-secondary);
}

.pgef-btn-sm {
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  min-height: 40px;
}

.pgef-btn-lg {
  padding: 1.2rem 2.5rem;
  font-size: 1.8rem;
}

.pgef-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}

.pgef-btn:active {
  transform: translateY(0);
}

.pgef-btn-block {
  display: block;
  width: 100%;
}

/* Auth buttons in header */
.pgef-auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pgef-register-btn {
  background: var(--pgef-gradient-primary);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.pgef-login-btn {
  color: var(--pgef-secondary);
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero slider */
.pgef-slider {
  margin: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pgef-slider-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.pgef-slide {
  flex: 0 0 100%;
  position: relative;
  height: 180px;
}

.pgef-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgef-slider-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.pgef-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.pgef-slider-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--pgef-gray);
  cursor: pointer;
}

.pgef-slider-dot.pgef-active {
  background-color: var(--pgef-accent);
  transform: scale(1.2);
}

/* Game grid */
.pgef-section {
  margin: 3rem 0;
}

.pgef-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pgef-section-title {
  font-size: 2rem;
  color: var(--pgef-light);
  margin-bottom: 0;
}

.pgef-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pgef-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.pgef-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 127, 80, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.pgef-game-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
}

.pgef-game-name {
  font-size: 1.2rem;
  color: var(--pgef-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Content modules */
.pgef-module {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pgef-module-title {
  font-size: 2.2rem;
  color: var(--pgef-secondary);
  margin-bottom: 1.5rem;
}

.pgef-feature-list {
  list-style: none;
  margin: 2rem 0;
}

.pgef-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pgef-feature-icon {
  flex-shrink: 0;
  font-size: 2rem;
  color: var(--pgef-accent);
}

.pgef-feature-content {
  flex: 1;
}

.pgef-feature-title {
  font-size: 1.8rem;
  color: var(--pgef-light);
  margin-bottom: 0.5rem;
}

/* FAQ accordion */
.pgef-faq-item {
  margin-bottom: 1.5rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.pgef-faq-question {
  padding: 1.5rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--pgef-light);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pgef-faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pgef-faq-answer-inner {
  padding: 1.5rem;
}

.pgef-faq-item.pgef-active .pgef-faq-answer {
  max-height: 500px;
}

/* Footer */
.pgef-footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3rem 0 9rem; /* Extra padding for mobile nav */
}

.pgef-footer-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pgef-footer-links-title {
  color: var(--pgef-secondary);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pgef-footer-links {
  list-style: none;
}

.pgef-footer-link {
  margin-bottom: 1rem;
}

.pgef-footer-link a {
  color: var(--pgef-text-light);
  opacity: 0.8;
  font-size: 1.4rem;
}

.pgef-footer-link a:hover {
  opacity: 1;
  color: var(--pgef-accent);
}

.pgef-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.pgef-partner-img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.pgef-copyright {
  text-align: center;
  padding: 2rem 0 0;
  color: var(--pgef-text-light);
  opacity: 0.6;
  font-size: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom navigation */
.pgef-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background-color: rgba(12, 12, 12, 0.95);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 900;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pgef-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
  color: var(--pgef-text-light);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.pgef-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.pgef-bottom-nav-text {
  font-size: 1.2rem;
  text-align: center;
}

.pgef-bottom-nav-item.pgef-active {
  opacity: 1;
  color: var(--pgef-accent);
}

.pgef-bottom-nav-item:active {
  transform: scale(0.95);
}

/* Responsive adjustments */
@media (min-width: 375px) {
  .pgef-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 430px) {
  .pgef-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .pgef-slide {
    height: 200px;
  }
}

/* Utility classes */
.pgef-text-primary { color: var(--pgef-primary); }
.pgef-text-secondary { color: var(--pgef-secondary); }
.pgef-text-accent { color: var(--pgef-accent); }
.pgef-text-light { color: var(--pgef-text-light); }

.pgef-bg-primary { background-color: var(--pgef-primary); }
.pgef-bg-secondary { background-color: var(--pgef-secondary); }
.pgef-bg-accent { background-color: var(--pgef-accent); }
.pgef-bg-dark { background-color: var(--pgef-dark); }

.pgef-mt-1 { margin-top: 1rem; }
.pgef-mt-2 { margin-top: 2rem; }
.pgef-mt-3 { margin-top: 3rem; }
.pgef-mb-1 { margin-bottom: 1rem; }
.pgef-mb-2 { margin-bottom: 2rem; }
.pgef-mb-3 { margin-bottom: 3rem; }
.pgef-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.pgef-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.pgef-py-3 { padding-top: 3rem; padding-bottom: 3rem; }
.pgef-px-1 { padding-left: 1rem; padding-right: 1rem; }
.pgef-px-2 { padding-left: 2rem; padding-right: 2rem; }
.pgef-px-3 { padding-left: 3rem; padding-right: 3rem; }

.pgef-text-center { text-align: center; }
.pgef-text-right { text-align: right; }
.pgef-fw-bold { font-weight: 700; }
.pgef-fw-medium { font-weight: 500; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pgef-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.pgef-slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* Promotion links styling */
.pgef-promo-link {
  color: var(--pgef-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.pgef-promo-link:hover {
  color: var(--pgef-light);
}

.pgef-promo-banner {
  display: block;
  width: 100%;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  background: var(--pgef-gradient-primary);
  border-radius: 1rem;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(191, 54, 12, 0.3);
  transition: all 0.3s ease;
}

.pgef-promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(191, 54, 12, 0.5);
}

/* Game category labels */
.pgef-category-label {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 1.2rem;
  border-radius: 3px;
  background: var(--pgef-accent);
  color: white;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* RTP module specific styles */
.pgef-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}

.pgef-rtp-table th,
.pgef-rtp-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgef-rtp-table th {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--pgef-secondary);
  font-weight: 600;
}

.pgef-rtp-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Loading indicator */
.pgef-loading {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--pgef-accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Overlay */
.pgef-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 980;
  display: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.pgef-overlay.pgef-active {
  display: block;
} 
