/* FC178 Layout Styles */

/* CSS Variables */
:root {
  --pg53-primary: #DC143C;
  --pg53-secondary: #212F3D;
  --pg53-accent: #DB7093;
  --pg53-orange: #E65100;
  --pg53-light: #FFCCCB;
  --pg53-gray: #D3D3D3;
  --pg53-bg: #212F3D;
  --pg53-text: #FFFFFF;
  --pg53-text-light: #FFCCCB;
  --pg53-border: #DB7093;
  font-size: 62.5%;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  background-color: var(--pg53-bg);
  color: var(--pg53-text);
  overflow-x: hidden;
}

/* Layout Components */
.pg53-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.pg53-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg53-grid {
  display: grid;
  gap: 1rem;
}

.pg53-flex {
  display: flex;
}

.pg53-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg53-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header Styles */
.pg53-header {
  background: linear-gradient(135deg, var(--pg53-primary), var(--pg53-secondary));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.pg53-nav {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg53-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg53-text);
}

.pg53-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.pg53-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--pg53-light);
}

.pg53-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg53-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pg53-btn-primary {
  background: linear-gradient(45deg, var(--pg53-primary), var(--pg53-orange));
  color: white;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.pg53-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.6);
}

.pg53-btn-secondary {
  background: transparent;
  color: var(--pg53-light);
  border: 2px solid var(--pg53-accent);
}

.pg53-btn-secondary:hover {
  background: var(--pg53-accent);
  color: white;
}

/* Mobile Menu */
.pg53-menu-toggle {
  background: none;
  border: none;
  color: var(--pg53-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg53-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: linear-gradient(180deg, var(--pg53-secondary), var(--pg53-bg));
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.pg53-menu-open {
  right: 0;
}

.pg53-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg53-overlay-show {
  opacity: 1;
  visibility: visible;
}

.pg53-menu-items {
  list-style: none;
  margin-top: 6rem;
}

.pg53-menu-item {
  margin-bottom: 2rem;
}

.pg53-menu-link {
  color: var(--pg53-text);
  text-decoration: none;
  font-size: 1.6rem;
  padding: 1rem 0;
  display: block;
  border-bottom: 1px solid rgba(219, 112, 147, 0.3);
  transition: color 0.3s ease;
}

.pg53-menu-link:hover {
  color: var(--pg53-accent);
}

/* Main Content */
.pg53-main {
  flex: 1;
  margin-top: 7rem;
  padding-bottom: 8rem;
}

/* Carousel Styles */
.pg53-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

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

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

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

.pg53-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.pg53-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.pg53-indicator-active {
  background: var(--pg53-primary);
}

/* Game Grid */
.pg53-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}

.pg53-game-item {
  background: linear-gradient(135deg, var(--pg53-secondary), rgba(219, 112, 147, 0.1));
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pg53-game-item:hover {
  transform: translateY(-3px);
  border-color: var(--pg53-accent);
  box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.pg53-game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
}

.pg53-game-name {
  font-size: 1.1rem;
  color: var(--pg53-text-light);
  font-weight: 500;
  line-height: 1.2;
}

/* Section Styles */
.pg53-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(219, 112, 147, 0.2);
}

.pg53-section-title {
  font-size: 2.4rem;
  color: var(--pg53-primary);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}

.pg53-section-content {
  line-height: 1.6;
  color: var(--pg53-text-light);
}

/* Card Components */
.pg53-card {
  background: linear-gradient(135deg, var(--pg53-secondary), rgba(219, 112, 147, 0.1));
  border-radius: 1rem;
  padding: 2rem;
  margin: 1rem 0;
  border: 1px solid rgba(219, 112, 147, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pg53-card-title {
  font-size: 1.8rem;
  color: var(--pg53-primary);
  margin-bottom: 1rem;
  font-weight: bold;
}

.pg53-card-content {
  color: var(--pg53-text-light);
  line-height: 1.6;
}

/* Footer Styles */
.pg53-footer {
  background: linear-gradient(135deg, var(--pg53-secondary), var(--pg53-bg));
  padding: 3rem 1rem 2rem;
  margin-top: auto;
  border-top: 2px solid var(--pg53-accent);
}

.pg53-footer-content {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.pg53-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.pg53-footer-link {
  color: var(--pg53-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.pg53-footer-link:hover {
  color: var(--pg53-accent);
}

.pg53-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pg53-partner-icon {
  width: 3rem;
  height: 3rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pg53-partner-icon:hover {
  opacity: 1;
}

.pg53-copyright {
  color: var(--pg53-gray);
  font-size: 1.2rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(219, 112, 147, 0.2);
}

/* Bottom Navigation */
.pg53-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg53-secondary), var(--pg53-primary));
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.pg53-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg53-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--pg53-text-light);
  transition: all 0.3s ease;
  padding: 0.5rem;
  min-height: 44px;
  cursor: pointer;
}

.pg53-bottom-nav-item:hover,
.pg53-nav-active {
  color: var(--pg53-accent);
  transform: translateY(-2px);
}

.pg53-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.pg53-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 430px) {
  .pg53-container {
    padding: 0 0.5rem;
  }
  
  .pg53-nav {
    padding: 0.8rem 1rem;
  }
  
  .pg53-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
  }
  
  .pg53-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .pg53-game-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .pg53-section-title {
    font-size: 2rem;
  }
}

@media (min-width: 431px) {
  .pg53-container {
    max-width: 100%;
    padding: 0 2rem;
  }
}

/* Utility Classes */
.pg53-text-center { text-align: center; }
.pg53-text-left { text-align: left; }
.pg53-text-right { text-align: right; }

.pg53-mb-1 { margin-bottom: 1rem; }
.pg53-mb-2 { margin-bottom: 2rem; }
.pg53-mb-3 { margin-bottom: 3rem; }

.pg53-mt-1 { margin-top: 1rem; }
.pg53-mt-2 { margin-top: 2rem; }
.pg53-mt-3 { margin-top: 3rem; }

.pg53-hidden { display: none; }
.pg53-visible { display: block; }

/* Animations */
@keyframes pg53-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pg53-fade-in {
  animation: pg53-fade-in 0.6s ease-out;
}

@keyframes pg53-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pg53-pulse {
  animation: pg53-pulse 2s infinite;
}