/**
 * Casino Free 100 - Main Stylesheet
 * All classes use 'g946-' prefix for namespace isolation
 * Color Palette: #EEEEEE (light gray) | #141414 (dark) | #95A5A6 (medium gray)
 */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --g946-primary: #95A5A6;
  --g946-primary-dark: #7F8C8D;
  --g946-primary-light: #BDC3C7;
  --g946-bg: #141414;
  --g946-bg-secondary: #1E1E1E;
  --g946-bg-tertiary: #2C2C2C;
  --g946-text: #EEEEEE;
  --g946-text-secondary: #CCCCCC;
  --g946-text-muted: #999999;
  --g946-accent: #3498DB;
  --g946-accent-hover: #2980B9;
  --g946-success: #27AE60;
  --g946-warning: #F39C12;
  --g946-danger: #E74C3C;
  --g946-border: #3C3C3C;
  --g946-shadow: rgba(0, 0, 0, 0.3);
  --g946-header-height: 60px;
  --g946-footer-height: 80px;
}

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(--g946-text);
  background-color: var(--g946-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Container */
.g946-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 769px) {
  .g946-container {
    max-width: 1200px;
    padding: 0 2rem;
  }
}

/* Header Styles */
.g946-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g946-header-height);
  background-color: var(--g946-bg);
  border-bottom: 1px solid var(--g946-border);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.g946-header.g946-header-hidden {
  transform: translateY(-100%);
}

.g946-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .g946-header-inner {
    max-width: 1200px;
  }
}

/* Logo */
.g946-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g946-text);
}

.g946-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.g946-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g946-primary);
}

/* Header Buttons */
.g946-header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.g946-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.g946-btn-primary {
  background-color: var(--g946-accent);
  color: #FFFFFF;
}

.g946-btn-primary:hover {
  background-color: var(--g946-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.g946-btn-secondary {
  background-color: transparent;
  color: var(--g946-primary);
  border: 2px solid var(--g946-primary);
}

.g946-btn-secondary:hover {
  background-color: var(--g946-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.g946-btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
}

/* Mobile Menu Toggle */
.g946-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .g946-menu-toggle {
    display: none;
  }
}

.g946-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--g946-text);
  transition: all 0.3s ease;
}

.g946-menu-toggle.g946-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.g946-menu-toggle.g946-active span:nth-child(2) {
  opacity: 0;
}

.g946-menu-toggle.g946-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.g946-mobile-menu {
  position: fixed;
  top: var(--g946-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--g946-bg-secondary);
  z-index: 9999;
  padding: 2rem 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.g946-mobile-menu.g946-active {
  transform: translateX(0);
}

.g946-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
}

.g946-mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--g946-text);
  text-decoration: none;
  border-bottom: 1px solid var(--g946-border);
  transition: all 0.3s ease;
}

.g946-mobile-menu a:hover {
  background-color: var(--g946-bg-tertiary);
  color: var(--g946-primary);
  padding-left: 1.5rem;
}

/* Desktop Navigation */
@media (min-width: 769px) {
  .g946-desktop-nav {
    display: flex;
    gap: 2rem;
  }

  .g946-desktop-nav a {
    color: var(--g946-text);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .g946-desktop-nav a:hover {
    color: var(--g946-primary);
  }
}

@media (max-width: 768px) {
  .g946-desktop-nav {
    display: none;
  }
}

/* Main Content */
main {
  margin-top: var(--g946-header-height);
  min-height: calc(100vh - var(--g946-header-height) - var(--g946-footer-height));
}

/* Hero Section */
.g946-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.g946-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.g946-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.g946-carousel-slide:first-child {
  display: block;
}

.g946-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g946-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.g946-hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--g946-text);
}

.g946-hero-subtitle {
  font-size: 1.4rem;
  color: var(--g946-text-secondary);
}

/* Section Styles */
.g946-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--g946-border);
}

.g946-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g946-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g946-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.8rem;
  background-color: var(--g946-accent);
  border-radius: 2px;
}

/* Game Grid */
.g946-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 769px) {
  .g946-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.g946-game-item {
  position: relative;
  background-color: var(--g946-bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.g946-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--g946-accent);
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.3);
}

.g946-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.g946-game-name {
  padding: 0.8rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: var(--g946-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Styles */
.g946-card {
  background-color: var(--g946-bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g946-border);
  transition: all 0.3s ease;
}

.g946-card:hover {
  border-color: var(--g946-accent);
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
}

.g946-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--g946-primary);
}

.g946-card-content {
  color: var(--g946-text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.g946-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--g946-border);
  border-radius: 8px;
  overflow: hidden;
}

.g946-faq-question {
  width: 100%;
  padding: 1rem;
  background-color: var(--g946-bg-secondary);
  color: var(--g946-text);
  border: none;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g946-faq-question::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--g946-primary);
}

.g946-faq-answer {
  padding: 1rem;
  color: var(--g946-text-secondary);
  line-height: 1.6;
  display: none;
}

.g946-faq-item.g946-active .g946-faq-answer {
  display: block;
}

.g946-faq-item.g946-active .g946-faq-question::after {
  content: '−';
}

/* Bottom Navigation (Mobile) */
.g946-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--g946-bg-secondary);
  border-top: 1px solid var(--g946-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.5rem;
}

@media (min-width: 769px) {
  .g946-bottom-nav {
    display: none;
  }
}

.g946-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g946-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
}

.g946-bottom-nav-item:hover,
.g946-bottom-nav-item.g946-active {
  color: var(--g946-accent);
  transform: scale(1.1);
}

.g946-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.g946-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.g946-footer {
  background-color: var(--g946-bg-secondary);
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--g946-border);
}

@media (min-width: 769px) {
  .g946-footer {
    padding-bottom: 3rem;
  }
}

.g946-footer-section {
  margin-bottom: 2rem;
}

.g946-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--g946-primary);
}

.g946-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.g946-footer-links a {
  color: var(--g946-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.g946-footer-links a:hover {
  color: var(--g946-accent);
}

.g946-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.g946-partners img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g946-partners img:hover {
  opacity: 1;
}

.g946-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--g946-border);
  color: var(--g946-text-muted);
  font-size: 1.2rem;
}

/* Utility Classes */
.g946-text-center {
  text-align: center;
}

.g946-mb-1 { margin-bottom: 1rem; }
.g946-mb-2 { margin-bottom: 2rem; }
.g946-mb-3 { margin-bottom: 3rem; }

.g946-mt-1 { margin-top: 1rem; }
.g946-mt-2 { margin-top: 2rem; }
.g946-mt-3 { margin-top: 3rem; }

.g946-p-1 { padding: 1rem; }
.g946-p-2 { padding: 2rem; }
.g946-p-3 { padding: 3rem; }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .g946-hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .g946-hide-desktop {
    display: none;
  }
}

/* Link Styles */
a {
  color: var(--g946-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--g946-accent-hover);
  text-decoration: underline;
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text Styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--g946-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--g946-text-secondary);
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--g946-text-secondary);
}

/* Button Link Styles */
.g946-link-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: var(--g946-accent);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.g946-link-btn:hover {
  background-color: var(--g946-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
  text-decoration: none;
  color: #FFFFFF;
}
