/* CardTime - Green Emerald Casino Theme Stylesheet */
/* All classes use prefix 'g94e-' for namespace isolation */

:root {
  --g94e-primary: #008000;
  --g94e-primary-light: #00FF7F;
  --g94e-secondary: #6C757D;
  --g94e-dark: #2C3E50;
  --g94e-bg: #1a1a1a;
  --g94e-bg-secondary: #2d2d2d;
  --g94e-text: #ffffff;
  --g94e-text-light: #e0e0e0;
  --g94e-border: #3a3a3a;
  --g94e-success: #00FF7F;
  --g94e-warning: #ff9800;
  --g94e-danger: #f44336;

  /* Font sizes and spacing */
  --g94e-base-size: 62.5%;
  --g94e-base-spacing: 1rem;
  --g94e-border-radius: 0.8rem;
  --g94e-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--g94e-base-size);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--g94e-bg);
  color: var(--g94e-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  letter-spacing: 0.3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: var(--g94e-text);
}

h1 {
  font-size: 2.8rem;
  color: var(--g94e-primary-light);
  text-shadow: 0 2px 8px rgba(0, 255, 127, 0.2);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--g94e-primary);
  border-bottom: 2px solid var(--g94e-primary-light);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  color: var(--g94e-primary-light);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  color: var(--g94e-secondary);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--g94e-text-light);
  line-height: 1.6;
}

a {
  color: var(--g94e-primary-light);
  text-decoration: none;
  transition: var(--g94e-transition);
  font-weight: 500;
}

a:hover {
  color: var(--g94e-primary);
  text-decoration: underline;
}

/* Container and Layout */
.g94e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.g94e-wrapper {
  background-color: var(--g94e-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.g94e-main {
  flex: 1;
  padding-top: 6rem;
  padding-bottom: 8rem;
  background: linear-gradient(135deg, var(--g94e-bg) 0%, var(--g94e-bg-secondary) 100%);
}

/* Header Navigation */
.g94e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, var(--g94e-dark), var(--g94e-bg-secondary));
  border-bottom: 2px solid var(--g94e-primary);
  padding: 1rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 255, 127, 0.15);
}

.g94e-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.g94e-logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.g94e-logo {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--g94e-primary) 0%, var(--g94e-primary-light) 100%);
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--g94e-dark);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.4);
}

.g94e-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g94e-primary-light);
  text-shadow: 0 2px 6px rgba(0, 255, 127, 0.3);
}

.g94e-header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.g94e-menu-toggle {
  background: none;
  border: 2px solid var(--g94e-primary);
  color: var(--g94e-primary-light);
  cursor: pointer;
  font-size: 1.6rem;
  padding: 0.5rem;
  border-radius: var(--g94e-border-radius);
  display: none;
  transition: var(--g94e-transition);
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g94e-menu-toggle:hover {
  background-color: var(--g94e-primary);
  color: var(--g94e-dark);
}

.g94e-menu-toggle.g94e-menu-active {
  background-color: var(--g94e-primary);
  color: var(--g94e-dark);
}

.g94e-btn-header {
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--g94e-primary-light);
  background: transparent;
  color: var(--g94e-primary-light);
  border-radius: var(--g94e-border-radius);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  transition: var(--g94e-transition);
  white-space: nowrap;
}

.g94e-btn-header:hover {
  background-color: var(--g94e-primary);
  color: var(--g94e-dark);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.5);
}

.g94e-btn-register {
  border-color: var(--g94e-primary-light);
  color: var(--g94e-primary-light);
}

.g94e-btn-login {
  background-color: var(--g94e-primary);
  color: var(--g94e-dark);
  border-color: var(--g94e-primary);
}

.g94e-btn-login:hover {
  background-color: var(--g94e-primary-light);
  box-shadow: 0 0 16px rgba(0, 255, 127, 0.6);
}

/* Navigation Menu */
.g94e-nav-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  background-color: var(--g94e-bg-secondary);
  border-bottom: 2px solid var(--g94e-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  z-index: 999;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.g94e-nav-menu.g94e-menu-open {
  max-height: 500px;
  overflow-y: auto;
}

.g94e-nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g94e-nav-menu li {
  border-bottom: 1px solid var(--g94e-border);
}

.g94e-nav-menu a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--g94e-text-light);
  transition: var(--g94e-transition);
  font-size: 1.5rem;
  font-weight: 500;
}

.g94e-nav-menu a:hover {
  background-color: var(--g94e-border);
  color: var(--g94e-primary-light);
  padding-left: 2rem;
  text-decoration: none;
}

/* Hero Section */
.g94e-hero {
  background: linear-gradient(135deg, var(--g94e-primary) 0%, var(--g94e-primary-light) 100%);
  padding: 2rem 0;
  border-radius: 0 0 var(--g94e-border-radius) var(--g94e-border-radius);
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 255, 127, 0.2);
}

.g94e-carousel {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  overflow: hidden;
  border-radius: var(--g94e-border-radius);
  margin-bottom: 1.5rem;
}

.g94e-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.g94e-carousel img:hover {
  transform: scale(1.05);
}

/* Game Cards and Grid */
.g94e-game-section {
  margin-bottom: 2.5rem;
}

.g94e-section-title {
  font-size: 2rem;
  color: var(--g94e-primary-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px dotted var(--g94e-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.g94e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g94e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--g94e-transition);
}

.g94e-game-icon {
  width: 7rem;
  height: 7rem;
  border-radius: var(--g94e-border-radius);
  object-fit: cover;
  border: 2px solid var(--g94e-primary);
  transition: var(--g94e-transition);
  box-shadow: 0 4px 12px rgba(0, 255, 127, 0.2);
}

.g94e-game-icon:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--g94e-primary-light);
  box-shadow: 0 6px 20px rgba(0, 255, 127, 0.4);
}

.g94e-game-name {
  font-size: 1.2rem;
  color: var(--g94e-text-light);
  text-align: center;
  word-break: break-word;
  transition: var(--g94e-transition);
  font-weight: 500;
  max-height: 4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.g94e-game-item:hover .g94e-game-name {
  color: var(--g94e-primary-light);
  font-weight: 700;
}

.g94e-game-link {
  color: inherit;
  text-decoration: none;
}

/* Content Sections */
.g94e-content-section {
  background-color: var(--g94e-bg-secondary);
  border-left: 4px solid var(--g94e-primary);
  padding: 1.5rem;
  border-radius: 0 var(--g94e-border-radius) var(--g94e-border-radius) 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.g94e-content-section h3 {
  margin-top: 0;
}

.g94e-content-section p {
  margin-bottom: 1rem;
}

.g94e-content-section ul {
  list-style: none;
  padding-left: 1.5rem;
}

.g94e-content-section li {
  margin-bottom: 0.8rem;
  color: var(--g94e-text-light);
  position: relative;
}

.g94e-content-section li:before {
  content: "▸";
  position: absolute;
  left: -1rem;
  color: var(--g94e-primary-light);
  font-weight: bold;
}

/* Buttons */
.g94e-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--g94e-primary) 0%, var(--g94e-primary-light) 100%);
  color: var(--g94e-dark);
  border: none;
  border-radius: var(--g94e-border-radius);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--g94e-transition);
  box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
  text-align: center;
  text-decoration: none;
}

.g94e-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 127, 0.5);
}

.g94e-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 255, 127, 0.3);
}

.g94e-btn-secondary {
  background: linear-gradient(135deg, var(--g94e-secondary) 0%, #8a959e 100%);
  color: var(--g94e-text);
}

.g94e-btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.g94e-btn-block {
  width: 100%;
  display: block;
  margin-bottom: 1rem;
}

/* Footer */
.g94e-footer {
  background: linear-gradient(to top, var(--g94e-dark), var(--g94e-bg-secondary));
  border-top: 2px solid var(--g94e-primary);
  padding: 2rem 1.5rem;
  color: var(--g94e-text-light);
  margin-top: 2rem;
  text-align: center;
  font-size: 1.3rem;
}

.g94e-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.g94e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.g94e-footer-links a {
  color: var(--g94e-primary-light);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--g94e-primary);
  border-radius: 0.4rem;
  transition: var(--g94e-transition);
}

.g94e-footer-links a:hover {
  background-color: var(--g94e-primary);
  color: var(--g94e-dark);
  text-decoration: none;
}

.g94e-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--g94e-border);
  border-bottom: 1px solid var(--g94e-border);
}

.g94e-partner-logo {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--g94e-transition);
}

.g94e-partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.g94e-copyright {
  color: var(--g94e-secondary);
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* Bottom Navigation Bar (Mobile) */
.g94e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--g94e-dark), var(--g94e-bg-secondary));
  border-top: 3px solid var(--g94e-primary);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  height: 6.4rem;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 255, 127, 0.15);
}

.g94e-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 6.4rem;
  color: var(--g94e-text-light);
  text-decoration: none;
  transition: var(--g94e-transition);
  cursor: pointer;
  position: relative;
  padding: 0.4rem 0.2rem;
  font-size: 1rem;
}

.g94e-bottom-nav-item:hover {
  color: var(--g94e-primary-light);
  background-color: rgba(0, 255, 127, 0.1);
}

.g94e-bottom-nav-item.g94e-nav-active {
  color: var(--g94e-primary-light);
  background-color: rgba(0, 255, 127, 0.15);
  border-radius: 0.4rem 0.4rem 0 0;
  border-top: 3px solid var(--g94e-primary-light);
}

.g94e-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g94e-nav-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.g94e-bottom-nav-promo {
  cursor: pointer;
}

.g94e-bottom-nav-promo:active {
  transform: scale(0.95);
}

/* Internal Links */
.g94e-internal-link {
  color: var(--g94e-primary-light);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--g94e-transition);
}

.g94e-internal-link:hover {
  color: var(--g94e-primary);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .g94e-main {
    padding-bottom: 8rem;
  }

  .g94e-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .g94e-game-icon {
    width: 6rem;
    height: 6rem;
  }

  .g94e-game-name {
    font-size: 1.1rem;
  }

  .g94e-header {
    padding: 0.8rem 1.5rem;
  }

  .g94e-header-actions {
    gap: 0.4rem;
  }

  .g94e-btn-header {
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 430px) {
  .g94e-container {
    padding: 0 1rem;
  }

  .g94e-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }

  .g94e-game-icon {
    width: 5.5rem;
    height: 5.5rem;
  }

  .g94e-game-name {
    font-size: 1rem;
  }

  .g94e-header {
    padding: 0.7rem 1rem;
  }

  .g94e-site-name {
    font-size: 1.5rem;
  }

  .g94e-btn-header {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }

  .g94e-logo {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.5rem;
  }

  .g94e-partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .g94e-partner-logo {
    width: 4rem;
    height: 4rem;
  }
}

/* Utility Classes */
.g94e-text-center {
  text-align: center;
}

.g94e-text-left {
  text-align: left;
}

.g94e-text-right {
  text-align: right;
}

.g94e-mb-1 {
  margin-bottom: 1rem;
}

.g94e-mb-2 {
  margin-bottom: 2rem;
}

.g94e-mt-1 {
  margin-top: 1rem;
}

.g94e-mt-2 {
  margin-top: 2rem;
}

.g94e-hidden {
  display: none !important;
}

.g94e-visible {
  display: block !important;
}

/* Icon Animations */
@keyframes g94e-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes g94e-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.g94e-pulse {
  animation: g94e-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.g94e-float {
  animation: g94e-float 3s ease-in-out infinite;
}

/* Print Styles */
@media print {
  .g94e-header,
  .g94e-bottom-nav {
    display: none;
  }

  .g94e-main {
    padding: 0;
  }
}
