/**
 * cardtime casino - Main Stylesheet
 * All classes use wc442 prefix for namespace isolation
 */

/* CSS Variables for consistent theming */
:root {
  --wc442-primary: #00CED1;
  --wc442-secondary: #00695C;
  --wc442-accent: #26A69A;
  --wc442-dark: #0F0F23;
  --wc442-light: #E0E0E0;
  --wc442-white: #FFFFFF;
  --wc442-text-primary: #E0E0E0;
  --wc442-text-secondary: #B0BEC5;
  --wc442-border: #26A69A;
  --wc442-shadow: rgba(0, 206, 209, 0.2);
  --wc442-gradient: linear-gradient(135deg, #00CED1 0%, #00695C 100%);
}

/* Reset and base styles */
* {
  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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--wc442-text-primary);
  background-color: var(--wc442-dark);
  overflow-x: hidden;
}

/* Container */
.wc442-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.wc442-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.98) 0%, rgba(15, 15, 35, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--wc442-primary);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px var(--wc442-shadow);
}

.wc442-header-hidden {
  transform: translateY(-100%);
}

.wc442-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.wc442-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--wc442-white);
}

.wc442-logo-icon {
  width: 28px;
  height: 28px;
}

.wc442-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--wc442-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wc442-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.wc442-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.wc442-btn-primary {
  background: var(--wc442-gradient);
  color: var(--wc442-white);
  box-shadow: 0 2px 10px var(--wc442-shadow);
}

.wc442-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--wc442-shadow);
}

.wc442-btn-secondary {
  background: transparent;
  color: var(--wc442-primary);
  border: 2px solid var(--wc442-primary);
}

.wc442-btn-secondary:hover {
  background: var(--wc442-primary);
  color: var(--wc442-white);
}

.wc442-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 32px;
  height: 32px;
}

.wc442-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wc442-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Mobile Menu */
.wc442-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.wc442-menu-open {
  transform: translateX(0);
}

.wc442-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wc442-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  color: var(--wc442-text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.wc442-menu-link:hover {
  background: rgba(0, 206, 209, 0.1);
  color: var(--wc442-primary);
}

.wc442-menu-link i {
  margin-right: 1rem;
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Main Content */
main {
  margin-top: 70px;
  padding-bottom: 80px;
}

/* Carousel */
.wc442-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.wc442-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.wc442-carousel-slide {
  min-width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wc442-carousel-slide.wc442-active {
  opacity: 1;
}

.wc442-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.wc442-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.wc442-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wc442-carousel-indicator.wc442-active {
  background: var(--wc442-primary);
  width: 24px;
  border-radius: 4px;
}

/* Section Styles */
.wc442-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(38, 166, 154, 0.2);
}

.wc442-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wc442-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wc442-section-title i {
  font-size: 2rem;
}

/* Game Grid */
.wc442-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.wc442-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.wc442-game-item:hover {
  transform: scale(1.05);
}

.wc442-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.wc442-game-item:hover .wc442-game-icon {
  box-shadow: 0 4px 16px var(--wc442-shadow);
}

.wc442-game-name {
  font-size: 1rem;
  color: var(--wc442-text-primary);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Cards */
.wc442-card {
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid var(--wc442-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.wc442-card:hover {
  box-shadow: 0 4px 20px var(--wc442-shadow);
  border-color: var(--wc442-primary);
}

.wc442-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wc442-primary);
  margin-bottom: 1rem;
}

.wc442-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--wc442-text-secondary);
}

/* Promotional Link */
.wc442-promo-link {
  display: inline-block;
  color: var(--wc442-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wc442-promo-link:hover {
  color: var(--wc442-accent);
  text-decoration: underline;
}

/* FAQ Styles */
.wc442-faq-item {
  background: rgba(15, 15, 35, 0.4);
  border: 1px solid rgba(38, 166, 154, 0.3);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.wc442-faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--wc442-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.wc442-faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--wc442-text-secondary);
  line-height: 1.6;
  display: none;
}

.wc442-faq-item.wc442-active .wc442-faq-answer {
  display: block;
}

.wc442-faq-item.wc442-active .wc442-faq-question {
  background: rgba(0, 206, 209, 0.1);
}

/* Feature List */
.wc442-feature-list {
  list-style: none;
  padding: 0;
}

.wc442-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(38, 166, 154, 0.2);
}

.wc442-feature-item:last-child {
  border-bottom: none;
}

.wc442-feature-icon {
  font-size: 1.8rem;
  color: var(--wc442-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.wc442-feature-text {
  flex: 1;
  color: var(--wc442-text-secondary);
  line-height: 1.6;
}

.wc442-feature-title {
  font-weight: 600;
  color: var(--wc442-text-primary);
  margin-bottom: 0.3rem;
}

/* Bottom Navigation */
.wc442-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--wc442-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px var(--wc442-shadow);
}

.wc442-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--wc442-text-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.wc442-nav-item.wc442-active,
.wc442-nav-item:hover {
  color: var(--wc442-primary);
}

.wc442-nav-icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
  transition: transform 0.3s ease;
}

.wc442-nav-item:hover .wc442-nav-icon {
  transform: scale(1.1);
}

.wc442-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

.wc442-nav-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--wc442-primary);
  color: var(--wc442-white);
  font-size: 0.8rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-weight: 600;
}

/* Footer */
.wc442-footer {
  background: rgba(0, 105, 92, 0.2);
  border-top: 2px solid var(--wc442-primary);
  padding: 2rem 1rem 6rem;
  margin-top: 2rem;
}

.wc442-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.wc442-footer-link {
  color: var(--wc442-primary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.wc442-footer-link:hover {
  color: var(--wc442-accent);
  text-decoration: underline;
}

.wc442-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.wc442-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.wc442-partner-logo:hover {
  opacity: 1;
}

.wc442-copyright {
  text-align: center;
  color: var(--wc442-text-secondary);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* H1 Styles */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wc442-primary);
  margin: 1.5rem 0;
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wc442-accent);
  margin: 1.2rem 0;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wc442-text-primary);
  margin: 1rem 0;
}

/* Responsive */
@media (min-width: 769px) {
  .wc442-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Loading State */
body:not(.wc442-loaded) {
  visibility: hidden;
}

body.wc442-loaded {
  visibility: visible;
}

/* Utility Classes */
.wc442-text-center {
  text-align: center;
}

.wc442-mt-1 {
  margin-top: 1rem;
}

.wc442-mb-1 {
  margin-bottom: 1rem;
}

.wc442-mt-2 {
  margin-top: 2rem;
}

.wc442-mb-2 {
  margin-bottom: 2rem;
}

.wc442-text-gradient {
  background: var(--wc442-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
