/**
 * Arionplay Login - Main Stylesheet
 * Colors: #34495E (dark), #FF5722 (accent), #E9ECEF (light)
 */

:root {
  --pg52-primary: #34495E;
  --pg52-secondary: #2c3e50;
  --pg52-accent: #FF5722;
  --pg52-light: #E9ECEF;
  --pg52-text: #E9ECEF;
  --pg52-text-dark: #34495E;
  --pg52-border: #4a5f7a;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pg52-text);
  background: var(--pg52-primary);
  min-height: 100vh;
}

.pg52-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg52-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pg52-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--pg52-primary);
  border-bottom: 1px solid var(--pg52-border);
  z-index: 1000;
}

.pg52-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pg52-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg52-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.pg52-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.pg52-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pg52-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.pg52-nav-buttons {
  display: flex;
  gap: 1rem;
}

.pg52-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  border: none;
}

.pg52-btn-primary {
  background: var(--pg52-accent);
  color: white;
}

.pg52-btn-secondary {
  background: transparent;
  color: var(--pg52-accent);
  border: 2px solid var(--pg52-accent);
}

.pg52-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pg52-primary);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.pg52-mobile-menu.pg52-menu-open {
  transform: translateX(0);
}

.pg52-menu-list {
  list-style: none;
  padding: 2rem 1.5rem;
}

.pg52-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--pg52-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pg52-menu-link:hover {
  background: var(--pg52-secondary);
  color: var(--pg52-accent);
}

.pg52-main {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .pg52-main {
    padding-bottom: 2rem;
  }
}

.pg52-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.pg52-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pg52-carousel-slide.pg52-slide-active {
  opacity: 1;
}

.pg52-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg52-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--pg52-accent);
  line-height: 1.3;
}

.pg52-h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--pg52-light);
}

.pg52-p {
  margin-bottom: 1rem;
  color: var(--pg52-text);
  line-height: 1.6;
}

.pg52-link {
  color: var(--pg52-accent);
  text-decoration: none;
  font-weight: 600;
}

.pg52-section {
  margin-bottom: 2.5rem;
}

.pg52-card {
  background: var(--pg52-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg52-border);
}

.pg52-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg52-game-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pg52-game-item:hover {
  transform: scale(1.05);
}

.pg52-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.pg52-game-name {
  font-size: 1.1rem;
  text-align: center;
  color: var(--pg52-text);
  line-height: 1.3;
}

.pg52-footer {
  background: var(--pg52-secondary);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--pg52-border);
}

.pg52-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pg52-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg52-footer-link {
  color: var(--pg52-accent);
  text-decoration: none;
  font-size: 1.4rem;
}

.pg52-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.pg52-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
}

.pg52-copyright {
  text-align: center;
  color: var(--pg52-light);
  font-size: 1.3rem;
}

.pg52-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--pg52-primary);
  border-top: 2px solid var(--pg52-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.pg52-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg52-light);
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.pg52-nav-item:hover {
  color: var(--pg52-accent);
}

.pg52-nav-item.pg52-nav-active {
  color: var(--pg52-accent);
}

.pg52-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.pg52-nav-text {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .pg52-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .pg52-menu-toggle {
    display: flex;
  }

  .pg52-mobile-menu {
    display: block;
  }
}
