/* Jiliko747 Responsive CSS Framework
   Dynamic prefix: pg96- for all CSS classes
   Color Scheme: Cyan Primary (#00B8D4) | Burlywood (#DEB887) | Dark Gray (#495057) | Very Dark (#2C2C2C)
*/

/* Root Variables */
:root {
  --pg96-primary: #00B8D4;
  --pg96-secondary: #DEB887;
  --pg96-dark: #2C2C2C;
  --pg96-gray: #495057;
  --pg96-light: #F8F9FA;
  --pg96-white: #FFFFFF;
  --pg96-error: #DC3545;
  --pg96-success: #28A745;
  --pg96-warning: #FFC107;
  --pg96-info: #17A2B8;
  --pg96-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --pg96-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --pg96-transition: all 0.3s ease;
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg96-dark);
  color: var(--pg96-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Responsive Container */
.pg96-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .pg96-container {
    max-width: 750px;
  }
}

@media (min-width: 1024px) {
  .pg96-container {
    max-width: 1200px;
  }
}

/* Header Styles */
.pg96-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg96-dark) 0%, #1a1a1a 100%);
  border-bottom: 3px solid var(--pg96-primary);
  z-index: 1000;
  box-shadow: var(--pg96-shadow-lg);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.pg96-header-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--pg96-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}

.pg96-header-logo i {
  font-size: 28px;
  animation: pg96-pulse 2s infinite;
}

@keyframes pg96-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pg96-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pg96-header-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--pg96-primary);
  background: transparent;
  color: var(--pg96-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--pg96-transition);
  white-space: nowrap;
}

.pg96-header-btn:hover {
  background: var(--pg96-primary);
  color: var(--pg96-dark);
  transform: translateY(-2px);
}

.pg96-header-btn.pg96-register {
  background: var(--pg96-primary);
  color: var(--pg96-dark);
}

.pg96-header-btn.pg96-register:hover {
  background: var(--pg96-secondary);
  border-color: var(--pg96-secondary);
}

.pg96-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pg96-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}

@media (max-width: 480px) {
  .pg96-header {
    padding: 10px 10px;
    height: 60px;
  }

  .pg96-header-logo {
    font-size: 18px;
  }

  .pg96-header-logo i {
    font-size: 20px;
  }

  .pg96-header-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .pg96-menu-toggle {
    display: block;
  }
}

/* Mobile Menu */
#x9618-mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--pg96-dark);
  border-bottom: 2px solid var(--pg96-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

#x9618-mobile-menu.pg96-menu-active {
  max-height: 500px;
}

.pg96-mobile-menu-list {
  list-style: none;
  padding: 15px 0;
}

.pg96-mobile-menu-item {
  border-bottom: 1px solid var(--pg96-gray);
}

.pg96-mobile-menu-item a {
  display: block;
  padding: 12px 20px;
  color: var(--pg96-light);
  text-decoration: none;
  font-size: 14px;
  transition: var(--pg96-transition);
}

.pg96-mobile-menu-item a:hover {
  background: var(--pg96-primary);
  color: var(--pg96-dark);
  padding-left: 25px;
}

/* Main Content */
main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 70px);
}

@media (min-width: 769px) {
  main {
    padding-bottom: 20px;
  }
}

/* Carousel Styles */
.pg96-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: var(--pg96-shadow-lg);
  background: var(--pg96-gray);
  aspect-ratio: 16/9;
  max-width: 100%;
}

.pg96-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.pg96-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg96-carousel-slide:first-child {
  display: block;
}

.pg96-carousel-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pg96-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg96-transition);
}

.pg96-carousel-dot.pg96-active {
  background: var(--pg96-primary);
  transform: scale(1.3);
}

/* Hero Section */
.pg96-hero {
  background: linear-gradient(135deg, var(--pg96-primary) 0%, #0088aa 100%);
  padding: 30px 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  box-shadow: var(--pg96-shadow-lg);
}

.pg96-hero h1 {
  font-size: 28px;
  color: var(--pg96-white);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pg96-hero p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 15px;
}

.pg96-cta-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--pg96-secondary);
  color: var(--pg96-dark);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--pg96-transition);
  cursor: pointer;
  border: none;
}

.pg96-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(222, 184, 135, 0.3);
}

/* Section Styles */
.pg96-section {
  background: linear-gradient(180deg, rgba(50, 50, 50, 0.5) 0%, transparent 100%);
  border: 1px solid var(--pg96-primary);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--pg96-shadow);
}

.pg96-section-title {
  font-size: 22px;
  color: var(--pg96-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg96-section-title i {
  font-size: 24px;
}

/* Games Grid */
.pg96-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

@media (max-width: 480px) {
  .pg96-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
}

.pg96-game-item {
  background: linear-gradient(135deg, var(--pg96-gray) 0%, #3a3a3a 100%);
  border: 2px solid var(--pg96-primary);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--pg96-transition);
  overflow: hidden;
  position: relative;
}

.pg96-game-item:hover {
  transform: translateY(-5px);
  border-color: var(--pg96-secondary);
  box-shadow: 0 8px 16px rgba(0, 184, 212, 0.3);
}

.pg96-game-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.pg96-game-item:hover::before {
  left: 100%;
}

.pg96-game-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: var(--pg96-dark);
  border: 1px solid var(--pg96-primary);
}

@media (max-width: 480px) {
  .pg96-game-icon {
    width: 60px;
    height: 60px;
  }
}

.pg96-game-name {
  font-size: 12px;
  color: var(--pg96-primary);
  font-weight: 600;
  word-break: break-word;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pg96-game-item:hover .pg96-game-name {
  color: var(--pg96-secondary);
}

/* Category Tabs */
.pg96-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 15px 0;
  border-bottom: 2px solid var(--pg96-primary);
  scrollbar-width: none;
}

.pg96-category-tabs::-webkit-scrollbar {
  display: none;
}

.pg96-filter-btn {
  padding: 10px 16px;
  background: transparent;
  color: var(--pg96-light);
  border: 2px solid var(--pg96-gray);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--pg96-transition);
}

.pg96-filter-btn:hover,
.pg96-filter-btn.pg96-active {
  background: var(--pg96-primary);
  color: var(--pg96-dark);
  border-color: var(--pg96-primary);
}

/* Footer */
.pg96-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--pg96-dark) 100%);
  border-top: 3px solid var(--pg96-primary);
  padding: 30px 20px;
  color: var(--pg96-light);
  margin-top: 40px;
}

.pg96-footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.pg96-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.pg96-footer-section h3 {
  color: var(--pg96-primary);
  margin-bottom: 15px;
  font-size: 16px;
}

.pg96-footer-links {
  list-style: none;
}

.pg96-footer-links li {
  margin-bottom: 8px;
}

.pg96-footer-links a {
  color: var(--pg96-light);
  text-decoration: none;
  font-size: 13px;
  transition: var(--pg96-transition);
}

.pg96-footer-links a:hover {
  color: var(--pg96-primary);
  padding-left: 5px;
}

.pg96-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.pg96-partner-logo {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--pg96-primary);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  transition: var(--pg96-transition);
}

.pg96-partner-logo:hover {
  background: rgba(0, 184, 212, 0.2);
  transform: scale(1.05);
}

.pg96-partner-logo img {
  max-width: 100%;
  height: 50px;
  object-fit: contain;
}

.pg96-footer-divider {
  border-top: 1px solid var(--pg96-gray);
  padding-top: 20px;
  margin-top: 20px;
}

.pg96-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: var(--pg96-gray);
}

.pg96-footer-bottom a {
  color: var(--pg96-primary);
  text-decoration: none;
}

/* Mobile Bottom Navigation */
.pg96-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #2C2C2C 0%, #1a1a1a 100%);
  border-top: 3px solid var(--pg96-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  z-index: 1000;
  box-shadow: var(--pg96-shadow-lg);
}

@media (min-width: 769px) {
  .pg96-bottom-nav {
    display: none;
  }
}

.pg96-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--pg96-light);
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: var(--pg96-transition);
  position: relative;
  border-radius: 8px;
  padding: 8px;
}

.pg96-nav-btn:active {
  background: rgba(0, 184, 212, 0.1);
}

.pg96-nav-btn:hover {
  color: var(--pg96-primary);
  transform: scale(1.1);
}

.pg96-nav-btn i {
  font-size: 24px;
}

.pg96-nav-btn span {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50px;
}

/* Feature Boxes */
.pg96-feature-box {
  background: linear-gradient(135deg, rgba(0, 184, 212, 0.1) 0%, transparent 100%);
  border: 1px solid var(--pg96-primary);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  transition: var(--pg96-transition);
}

.pg96-feature-box:hover {
  border-color: var(--pg96-secondary);
  transform: translateX(5px);
}

.pg96-feature-box h3 {
  color: var(--pg96-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg96-feature-box h3 i {
  font-size: 20px;
}

.pg96-feature-box p {
  color: var(--pg96-light);
  font-size: 14px;
  line-height: 1.6;
}

/* Forms and Inputs */
.pg96-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--pg96-primary);
  border-radius: 4px;
  color: var(--pg96-light);
  font-size: 14px;
  transition: var(--pg96-transition);
  margin-bottom: 10px;
}

.pg96-input:focus {
  outline: none;
  border-color: var(--pg96-secondary);
  background: rgba(0, 184, 212, 0.15);
}

.pg96-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Badges */
.pg96-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--pg96-primary);
  color: var(--pg96-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
}

.pg96-badge.pg96-secondary {
  background: var(--pg96-secondary);
  color: var(--pg96-dark);
}

.pg96-badge.pg96-danger {
  background: var(--pg96-error);
  color: var(--pg96-white);
}

/* Tooltips */
.pg96-tooltip-content {
  background: var(--pg96-primary);
  color: var(--pg96-dark);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: var(--pg96-shadow-lg);
}

/* Animations */
@keyframes pg96-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg96-fade-in {
  animation: pg96-fadeIn 0.5s ease-out;
}

@keyframes pg96-slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.pg96-slide-in-left {
  animation: pg96-slideInLeft 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .pg96-section {
    padding: 15px;
    margin: 15px 0;
  }

  .pg96-section-title {
    font-size: 18px;
  }

  .pg96-hero {
    padding: 20px 15px;
  }

  .pg96-hero h1 {
    font-size: 22px;
  }

  .pg96-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .pg96-header,
  .pg96-bottom-nav,
  .pg96-menu-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .pg96-section,
  .pg96-feature-box {
    page-break-inside: avoid;
    border: 1px solid #ccc;
  }
}
