/**
 * Perya Plus - Core CSS Stylesheet
 * Prefix: sc49-
 * Filipino carnival gaming platform with dark navy and purple theme
 */

:root {
  /* Primary Colors - Dark & Purple Theme */
  --sc49-dark-navy: #212F3D;
  --sc49-light-gray: #EEEEEE;
  --sc49-purple: #9932CC;

  /* Derived Colors */
  --sc49-purple-dark: #7B1FA2;
  --sc49-purple-light: #BA68C8;
  --sc49-gray-medium: #B0B0B0;
  --sc49-gray-dark: #333333;

  /* Text Colors */
  --sc49-text-primary: #EEEEEE;
  --sc49-text-secondary: #B0B0B0;
  --sc49-text-dark: #212F3D;

  /* Typography */
  --sc49-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --sc49-base-size: 1.4rem;
  --sc49-line-height: 1.5;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sc49-font-family);
  background-color: var(--sc49-dark-navy);
  color: var(--sc49-text-primary);
  line-height: var(--sc49-line-height);
  font-size: var(--sc49-base-size);
  overflow-x: hidden;
}

/* Wrapper and Container */
.sc49-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.sc49-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.sc49-main {
  flex: 1;
  padding-bottom: 80px;
}

/* Header Styles */
.sc49-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--sc49-dark-navy);
  border-bottom: 2px solid var(--sc49-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sc49-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sc49-purple);
}

.sc49-header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.sc49-header-actions {
  display: none;
  gap: 0.8rem;
}

.sc49-hamburger {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--sc49-text-primary);
  padding: 0.4rem;
  transition: color 0.3s ease;
}

.sc49-hamburger:hover {
  color: var(--sc49-purple);
}

.sc49-hamburger.sc49-active {
  color: var(--sc49-purple);
}

/* Mobile Menu */
#appc49-mobile-menu {
  position: fixed;
  top: 56px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 56px);
  background-color: var(--sc49-gray-dark);
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding-bottom: 80px;
}

#appc49-mobile-menu.sc49-menu-active {
  left: 0;
}

.sc49-mobile-nav-list {
  list-style: none;
  padding: 1.6rem 0;
}

.sc49-mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc49-mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  color: var(--sc49-text-primary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.sc49-mobile-nav-list a:hover {
  background-color: rgba(153, 50, 204, 0.1);
  color: var(--sc49-purple);
  padding-left: 2rem;
}

.sc49-mobile-nav-list i {
  font-size: 1.6rem;
  width: 24px;
  text-align: center;
}

/* Typography */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 1.6rem 0 1.2rem 0;
  line-height: 1.3;
  color: var(--sc49-text-primary);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.6rem 0 1.2rem 0;
  line-height: 1.3;
  color: var(--sc49-purple);
}

h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 1.2rem 0 0.8rem 0;
  color: var(--sc49-text-primary);
}

p {
  margin-bottom: 1.2rem;
  color: var(--sc49-text-secondary);
  line-height: 1.6;
}

a {
  color: var(--sc49-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sc49-purple-light);
  text-decoration: underline;
}

strong {
  color: var(--sc49-purple);
  font-weight: 700;
}

/* Carousel Styles */
.sc49-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 56px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.6rem;
}

.sc49-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.sc49-carousel-slide.sc49-active {
  opacity: 1;
}

.sc49-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc49-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.sc49-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sc49-dot.sc49-active {
  background-color: var(--sc49-purple);
  width: 28px;
  border-radius: 5px;
}

/* Button Styles */
.sc49-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  font-family: var(--sc49-font-family);
}

.sc49-btn-primary {
  background-color: var(--sc49-purple);
  color: var(--sc49-light-gray);
}

.sc49-btn-primary:hover {
  background-color: var(--sc49-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 50, 204, 0.4);
}

.sc49-btn-secondary {
  background-color: var(--sc49-gray-dark);
  color: var(--sc49-purple);
  border: 2px solid var(--sc49-purple);
}

.sc49-btn-secondary:hover {
  background-color: var(--sc49-purple);
  color: var(--sc49-light-gray);
}

.sc49-btn-outline {
  background-color: transparent;
  color: var(--sc49-purple);
  border: 2px solid var(--sc49-purple);
}

.sc49-btn-outline:hover {
  background-color: var(--sc49-purple);
  color: var(--sc49-light-gray);
}

/* Section Styles */
.sc49-section {
  padding: 1.6rem 0;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(153, 50, 204, 0.2);
}

.sc49-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.sc49-section-title i {
  color: var(--sc49-purple);
  font-size: 1.8rem;
}

.sc49-text-center {
  text-align: center;
}

/* Game Grid */
.sc49-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.sc49-game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding: 0.8rem;
  cursor: pointer;
  border: 1px solid rgba(153, 50, 204, 0.3);
}

.sc49-game-card:hover {
  background-color: rgba(153, 50, 204, 0.15);
  transform: translateY(-4px);
  border-color: var(--sc49-purple);
  box-shadow: 0 4px 12px rgba(153, 50, 204, 0.3);
}

.sc49-game-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.sc49-game-title {
  font-size: 1.2rem;
  color: var(--sc49-text-primary);
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.sc49-game-card:hover .sc49-game-title {
  color: var(--sc49-purple);
}

/* RTP Grid */
.sc49-rtp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 1.6rem 0;
}

.sc49-rtp-card {
  background-color: rgba(153, 50, 204, 0.1);
  border-left: 4px solid var(--sc49-purple);
  padding: 1.2rem;
  border-radius: 4px;
}

.sc49-rtp-card h3 {
  margin-bottom: 0.8rem;
}

.sc49-rtp-card p {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

/* Lists */
ol, ul {
  margin-left: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--sc49-text-secondary);
}

li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* CTA Section */
.sc49-cta-section {
  background: linear-gradient(135deg, rgba(153, 50, 204, 0.15) 0%, rgba(123, 31, 162, 0.1) 100%);
  padding: 1.6rem;
  border-radius: 8px;
  border: 1px solid var(--sc49-purple);
}

.sc49-cta-section h2 {
  color: var(--sc49-purple);
  margin-bottom: 1.2rem;
}

.sc49-cta-section .sc49-btn {
  margin: 0.8rem 0.4rem;
}

/* Footer */
.sc49-footer {
  background-color: var(--sc49-gray-dark);
  border-top: 2px solid var(--sc49-purple);
  padding: 1.6rem 0;
  margin-top: 1.6rem;
  font-size: 1.2rem;
}

.sc49-footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}

.sc49-footer-section h3 {
  color: var(--sc49-purple);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.sc49-footer-section ul {
  list-style: none;
  margin: 0;
}

.sc49-footer-section li {
  margin-bottom: 0.6rem;
}

.sc49-footer-section a {
  color: var(--sc49-text-secondary);
  font-size: 1.2rem;
}

.sc49-footer-section a:hover {
  color: var(--sc49-purple);
}

.sc49-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.sc49-partners img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.sc49-partners img:hover {
  filter: grayscale(0%);
}

.sc49-footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(153, 50, 204, 0.2);
  padding-top: 1.2rem;
  font-size: 1.2rem;
  color: var(--sc49-text-secondary);
}

.sc49-footer-copyright p {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

/* Bottom Navigation */
.sc49-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--sc49-dark-navy) 0%, rgba(33, 47, 61, 0.95) 100%);
  border-top: 2px solid var(--sc49-purple);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.sc49-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--sc49-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
  min-height: 60px;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 1rem;
}

.sc49-nav-btn i,
.sc49-nav-btn .material-icons,
.sc49-nav-btn .ion-icon {
  font-size: 24px;
  transition: all 0.3s ease;
}

.sc49-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}

.sc49-nav-btn:hover,
.sc49-nav-btn.sc49-active {
  color: var(--sc49-purple);
  transform: scale(1.1);
}

.sc49-nav-btn.sc49-active {
  background-color: rgba(153, 50, 204, 0.2);
}

/* Responsive Design */
@media (min-width: 769px) {
  .sc49-hamburger {
    display: none;
  }

  .sc49-header-actions {
    display: flex;
  }

  .sc49-bottom-nav {
    display: none;
  }

  .sc49-main {
    padding-bottom: 0;
  }

  .sc49-container {
    max-width: 1200px;
    padding: 0 2rem;
  }

  .sc49-carousel {
    height: 300px;
  }

  .sc49-game-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.6rem;
  }

  .sc49-rtp-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sc49-footer-content {
    grid-template-columns: 1fr 2fr;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.4rem;
  }
}

/* Mobile optimization for max-width 430px */
@media (max-width: 430px) {
  .sc49-carousel {
    height: 160px;
    margin-top: 56px;
  }

  .sc49-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .sc49-game-card {
    padding: 0.6rem;
  }

  .sc49-game-title {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 1.8rem;
    margin-top: 60px;
  }

  h2 {
    font-size: 1.6rem;
  }

  .sc49-rtp-grid {
    grid-template-columns: 1fr;
  }

  .sc49-footer-content {
    grid-template-columns: 1fr;
  }

  .sc49-partners {
    grid-template-columns: repeat(4, 1fr);
  }

  .sc49-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
  }
}

/* Print Styles */
@media print {
  .sc49-header,
  .sc49-bottom-nav,
  #appc49-mobile-menu {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }
}
