/* PHFUN Casino - Main Stylesheet
   Mobile-first design with responsive breakpoints
   All classes use prefix pg7c- as required
*/

:root {
  /* Base font size for rem calculations */
  font-size: 62.5%;
  
  /* Color palette */
  --pg7c-primary: #48D1CC;
  --pg7c-secondary: #4169E1;
  --pg7c-accent: #FF8C00; 
  --pg7c-bg-dark: #0E1621;
  --pg7c-bg-darker: #080d13;
  --pg7c-bg-light: #182633;
  --pg7c-text-light: #ffffff;
  --pg7c-text-muted: #a0aec0;
  --pg7c-border: rgba(255, 255, 255, 0.1);
  --pg7c-success: #10B981;
  --pg7c-warning: #F59E0B;
  --pg7c-error: #EF4444;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pg7c-text-light);
  background-color: var(--pg7c-bg-dark);
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 6.4rem; /* Space for mobile nav */
}

a {
  color: var(--pg7c-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--pg7c-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--pg7c-text-light);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Layout containers */
.pg7c-container {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
  max-width: 43rem; /* Mobile-first with 430px max width */
}

.pg7c-wrapper {
  padding: 2rem 0;
}

.pg7c-section {
  margin-bottom: 3rem;
}

/* Grid system */
.pg7c-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1rem;
}

/* Header & Navigation */
.pg7c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--pg7c-bg-darker);
  padding: 1.2rem 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pg7c-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg7c-logo {
  display: flex;
  align-items: center;
}

.pg7c-logo img {
  width: 3.2rem;
  height: 3.2rem;
}

.pg7c-logo-text {
  margin-left: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg7c-primary);
}

.pg7c-nav-toggle {
  background: none;
  border: none;
  color: var(--pg7c-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pg7c-nav {
  position: fixed;
  top: 5.6rem;
  left: -100%;
  width: 100%;
  height: calc(100vh - 5.6rem);
  background-color: var(--pg7c-bg-darker);
  transition: left 0.3s ease;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.pg7c-nav.pg7c-active {
  left: 0;
}

.pg7c-nav-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--pg7c-border);
}

.pg7c-nav-link {
  color: var(--pg7c-text-light);
  font-size: 1.6rem;
  font-weight: 500;
  display: block;
}

.pg7c-auth-buttons {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.pg7c-btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 4.4rem; /* Touch-friendly */
  line-height: 1;
}

.pg7c-btn-primary {
  background-color: var(--pg7c-primary);
  color: var(--pg7c-bg-darker);
}

.pg7c-btn-primary:hover {
  background-color: #36c0bb;
  color: var(--pg7c-bg-darker);
}

.pg7c-btn-secondary {
  background-color: var(--pg7c-secondary);
  color: var(--pg7c-text-light);
}

.pg7c-btn-secondary:hover {
  background-color: #365cc7;
}

.pg7c-btn-accent {
  background-color: var(--pg7c-accent);
  color: var(--pg7c-text-light);
}

.pg7c-btn-accent:hover {
  background-color: #e67e00;
}

.pg7c-btn-outline {
  background-color: transparent;
  border: 1px solid var(--pg7c-primary);
  color: var(--pg7c-primary);
}

.pg7c-btn-outline:hover {
  background-color: var(--pg7c-primary);
  color: var(--pg7c-bg-darker);
}

.pg7c-btn-block {
  display: block;
  width: 100%;
}

/* Cards */
.pg7c-card {
  background-color: var(--pg7c-bg-light);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  height: 100%;
}

.pg7c-card:hover {
  transform: translateY(-5px);
}

.pg7c-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.pg7c-card-content {
  padding: 1.2rem;
}

.pg7c-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Game grid */
.pg7c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pg7c-game-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pg7c-game-img {
  width: 100%;
  border-radius: 0.4rem;
  transition: transform 0.2s ease;
}

.pg7c-game-img:hover {
  transform: scale(1.05);
}

.pg7c-game-name {
  font-size: 1.2rem;
  margin-top: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero carousel */
.pg7c-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.8rem;
  margin-top: 6.5rem;
  margin-bottom: 2rem;
}

.pg7c-carousel-inner {
  display: flex;
  transition: transform 0.3s ease;
}

.pg7c-carousel-item {
  min-width: 100%;
}

.pg7c-carousel-img {
  width: 100%;
  height: auto;
}

.pg7c-carousel-prev,
.pg7c-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1;
}

.pg7c-carousel-prev {
  left: 1rem;
}

.pg7c-carousel-next {
  right: 1rem;
}

.pg7c-carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.pg7c-carousel-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.pg7c-carousel-indicator.pg7c-active {
  background-color: var(--pg7c-primary);
  transform: scale(1.2);
}

/* Category sections */
.pg7c-category-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pg7c-border);
}

.pg7c-category-icon {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--pg7c-accent);
}

/* Footer */
.pg7c-footer {
  background-color: var(--pg7c-bg-darker);
  padding: 3rem 0 10rem;
  margin-top: 4rem;
}

.pg7c-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pg7c-footer-link {
  color: var(--pg7c-text-light);
  font-size: 1.4rem;
}

.pg7c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin: 2rem 0;
}

.pg7c-partner-img {
  height: 2.4rem;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pg7c-partner-img:hover {
  opacity: 1;
}

.pg7c-copyright {
  text-align: center;
  margin-top: 2rem;
  color: var(--pg7c-text-muted);
  font-size: 1.2rem;
}

/* Mobile bottom navigation */
.pg7c-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background-color: var(--pg7c-bg-darker);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 90;
}

.pg7c-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
}

.pg7c-mobile-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  color: var(--pg7c-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.pg7c-mobile-nav-text {
  font-size: 1.2rem;
  color: var(--pg7c-text-muted);
  transition: color 0.2s ease;
}

.pg7c-mobile-nav-item.pg7c-active .pg7c-mobile-nav-icon,
.pg7c-mobile-nav-item.pg7c-active .pg7c-mobile-nav-text {
  color: var(--pg7c-primary);
}

.pg7c-mobile-nav-item:active .pg7c-mobile-nav-icon {
  transform: scale(0.9);
}

/* Content modules */
.pg7c-module {
  background-color: var(--pg7c-bg-light);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.pg7c-module-title {
  color: var(--pg7c-primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.pg7c-promo-link {
  color: var(--pg7c-accent);
  font-weight: 600;
}

.pg7c-promo-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--pg7c-accent);
  color: white;
  font-weight: 700;
  border-radius: 0.4rem;
  margin: 1rem 0;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pg7c-promo-btn:hover {
  background-color: #e67e00;
  transform: translateY(-2px);
}

.pg7c-promo-btn:active {
  transform: translateY(0);
}

/* FAQ styles */
.pg7c-faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--pg7c-border);
  border-radius: 0.4rem;
  overflow: hidden;
}

.pg7c-faq-question {
  padding: 1.5rem;
  background-color: var(--pg7c-bg-light);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg7c-faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.pg7c-faq-item.pg7c-active .pg7c-faq-answer {
  padding: 1.5rem;
  max-height: 50rem;
}

/* About page */
.pg7c-about-image {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg7c-feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.pg7c-feature-icon {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--pg7c-primary);
  flex-shrink: 0;
}

/* Responsive breakpoints */
@media (min-width: 576px) {
  .pg7c-container {
    max-width: 54rem;
  }
  
  .pg7c-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 768px) {
  .pg7c-container {
    max-width: 72rem;
  }
  
  .pg7c-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .pg7c-footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .pg7c-container {
    max-width: 96rem;
  }
  
  .pg7c-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .pg7c-footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .pg7c-container {
    max-width: 114rem;
  }
  
  .pg7c-game-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

/* Utilities */
.pg7c-mb-1 {
  margin-bottom: 1rem;
}

.pg7c-mb-2 {
  margin-bottom: 2rem;
}

.pg7c-mb-3 {
  margin-bottom: 3rem;
}

.pg7c-mt-1 {
  margin-top: 1rem;
}

.pg7c-mt-2 {
  margin-top: 2rem;
}

.pg7c-mt-3 {
  margin-top: 3rem;
}

.pg7c-text-center {
  text-align: center;
}

.pg7c-text-primary {
  color: var(--pg7c-primary);
}

.pg7c-text-accent {
  color: var(--pg7c-accent);
}

.pg7c-font-bold {
  font-weight: 700;
}

.pg7c-d-none {
  display: none;
} 