/* PhDream11 - Theme Stylesheet (v582- prefix for all classes) */
/* Color Palette: #0E1621 | #C9C9FF | #FFCC33 | #E5E5E5 | #F4A460 | #E91E63 */

/* CSS Variables and Theme Configuration */
:root {
  --v582-primary: #C9C9FF;
  --v582-primary-dark: #9999FF;
  --v582-secondary: #FFCC33;
  --v582-accent: #E91E63;
  --v582-bg: #0E1621;
  --v582-bg-light: #1a1f2e;
  --v582-text: #E5E5E5;
  --v582-text-dark: #999999;
  --v582-border: #333333;
  --v582-success: #F4A460;
  --v582-danger: #E91E63;
  --v582-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  --v582-transition: all 0.3s ease-in-out;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--v582-bg);
  color: var(--v582-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--v582-primary);
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--v582-text);
}

a {
  color: var(--v582-primary);
  text-decoration: none;
  transition: var(--v582-transition);
}

a:hover {
  color: var(--v582-secondary);
  text-decoration: underline;
}

/* Container and Layout */
.v582-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.v582-wrapper {
  width: 100%;
  position: relative;
}

.v582-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  width: 100%;
}

main.v582-main {
  min-height: 100vh;
  padding-top: 70px;
  padding-bottom: 80px;
  width: 100%;
}

/* Header Navigation */
.v582-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--v582-bg);
  border-bottom: 2px solid var(--v582-border);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--v582-shadow);
}

.v582-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.v582-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v582-header-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v582-primary);
  white-space: nowrap;
}

.v582-header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.v582-header-btn {
  background-color: var(--v582-primary);
  color: var(--v582-bg);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--v582-transition);
  white-space: nowrap;
}

.v582-header-btn:hover {
  background-color: var(--v582-secondary);
  transform: scale(1.05);
}

.v582-header-btn.v582-login-btn {
  background-color: var(--v582-accent);
}

.v582-header-btn.v582-login-btn:hover {
  background-color: #d6155a;
}

.v582-menu-toggle {
  background: none;
  border: none;
  color: var(--v582-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: var(--v582-transition);
}

.v582-menu-toggle:hover {
  color: var(--v582-secondary);
  transform: scale(1.1);
}

/* Navigation Menu */
#x18a5-nav-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--v582-bg-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  border-bottom: 2px solid var(--v582-border);
  z-index: 999;
}

#x18a5-nav-menu.v582-menu-active {
  max-height: 600px;
}

.v582-nav-list {
  list-style: none;
  padding: 1rem 0;
}

.v582-nav-item {
  border-bottom: 1px solid var(--v582-border);
}

.v582-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v582-text);
  transition: var(--v582-transition);
}

.v582-nav-link:hover {
  background-color: var(--v582-bg);
  color: var(--v582-secondary);
  padding-left: 2rem;
}

.v582-nav-link.v582-active {
  color: var(--v582-secondary);
  background-color: rgba(255, 204, 51, 0.1);
  font-weight: 600;
}

/* Buttons */
.v582-btn {
  background-color: var(--v582-primary);
  color: var(--v582-bg);
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.4rem;
  transition: var(--v582-transition);
  display: inline-block;
  text-align: center;
}

.v582-btn:hover {
  background-color: var(--v582-secondary);
  transform: translateY(-2px);
  box-shadow: var(--v582-shadow);
}

.v582-btn:active {
  transform: translateY(0);
}

.v582-btn.v582-btn-secondary {
  background-color: var(--v582-secondary);
  color: var(--v582-bg);
}

.v582-btn.v582-btn-secondary:hover {
  background-color: var(--v582-primary);
}

.v582-btn.v582-btn-accent {
  background-color: var(--v582-accent);
  color: white;
}

.v582-btn.v582-btn-accent:hover {
  background-color: #d6155a;
}

.v582-btn-block {
  width: 100%;
  margin: 0.8rem 0;
}

/* Carousel */
.v582-carousel {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  height: 200px;
  cursor: pointer;
}

.v582-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--v582-bg-light), var(--v582-bg));
}

.v582-carousel-slide.v582-active {
  opacity: 1;
}

.v582-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v582-carousel-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.v582-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v582-transition);
}

.v582-carousel-dot.v582-active {
  background-color: var(--v582-secondary);
}

/* Cards */
.v582-card {
  background-color: var(--v582-bg-light);
  border: 1px solid var(--v582-border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: var(--v582-transition);
}

.v582-card:hover {
  border-color: var(--v582-primary);
  box-shadow: var(--v582-shadow);
  transform: translateY(-4px);
}

.v582-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--v582-transition);
  background-color: var(--v582-bg-light);
  border: 1px solid var(--v582-border);
}

.v582-game-card:hover {
  background-color: var(--v582-bg);
  border-color: var(--v582-primary);
  transform: scale(1.08);
}

.v582-game-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.v582-game-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--v582-text);
  word-break: break-word;
  line-height: 1.3;
}

/* Sections */
.v582-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--v582-border);
}

.v582-section:last-child {
  border-bottom: none;
}

.v582-section-title {
  font-size: 1.8rem;
  color: var(--v582-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v582-secondary);
}

/* Game Categories */
.v582-category {
  margin-bottom: 2rem;
}

.v582-category-title {
  font-size: 1.6rem;
  color: var(--v582-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.v582-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

/* Mobile Bottom Navigation */
.v582-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--v582-bg-light);
  border-top: 2px solid var(--v582-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
}

.v582-mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 60px;
  padding: 0.4rem 0.8rem;
  background: none;
  border: none;
  color: var(--v582-text-dark);
  cursor: pointer;
  transition: var(--v582-transition);
  position: relative;
  text-decoration: none;
  gap: 0.2rem;
}

.v582-mobile-nav-btn:hover,
.v582-mobile-nav-btn.v582-active {
  color: var(--v582-secondary);
  transform: scale(1.1);
}

.v582-mobile-nav-btn i {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v582-mobile-nav-label {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.v582-mobile-nav-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background-color: var(--v582-accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

/* Footer */
.v582-footer {
  background-color: var(--v582-bg-light);
  border-top: 2px solid var(--v582-border);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.v582-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.v582-footer-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--v582-border);
}

.v582-footer-intro p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--v582-text);
}

.v582-footer-links {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--v582-border);
}

.v582-footer-links-title {
  font-size: 1.4rem;
  color: var(--v582-secondary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.v582-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.v582-footer-link {
  padding: 0.4rem 0;
  font-size: 1.2rem;
  color: var(--v582-text);
}

.v582-footer-link a:hover {
  color: var(--v582-secondary);
}

.v582-footer-partners {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--v582-border);
}

.v582-footer-partners-title {
  font-size: 1.4rem;
  color: var(--v582-secondary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.v582-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.v582-partner-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--v582-bg);
  border-radius: 4px;
  border: 1px solid var(--v582-border);
}

.v582-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.4rem;
}

.v582-footer-copyright {
  text-align: center;
  padding-top: 1rem;
  color: var(--v582-text-dark);
  font-size: 1.1rem;
}

/* Text Utilities */
.v582-text-center {
  text-align: center;
}

.v582-text-primary {
  color: var(--v582-primary);
}

.v582-text-secondary {
  color: var(--v582-secondary);
}

.v582-text-accent {
  color: var(--v582-accent);
}

.v582-text-bold {
  font-weight: 700;
}

.v582-text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Promo Links */
.v582-promo-link {
  color: var(--v582-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--v582-transition);
}

.v582-promo-link:hover {
  color: var(--v582-primary);
  text-decoration: underline;
}

.v582-promo-banner {
  background: linear-gradient(135deg, var(--v582-primary), var(--v582-secondary));
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: center;
  color: var(--v582-bg);
}

.v582-promo-banner h3 {
  color: var(--v582-bg);
  margin-bottom: 0.8rem;
}

/* Responsive Design */
@media (min-width: 769px) {
  .v582-mobile-nav {
    display: none;
  }

  main.v582-main {
    padding-bottom: 2rem;
  }

  .v582-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .v582-header {
    padding: 1rem 2rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.4rem;
  }
}

/* Accessibility */
.v582-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--v582-accent);
  color: white;
  padding: 0.8rem;
  text-decoration: none;
  z-index: 100;
}

.v582-skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--v582-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .v582-header,
  .v582-mobile-nav {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }
}
