/* Core CSS for windd - mobile-first casino homepage layout
   All custom class names use the sfe4- prefix for namespace isolation.
   Code comments are in English per project convention. */

:root {
  --sfe4-primary: #FFA500;
  --sfe4-primary-dark: #FF8000;
  --sfe4-bg: #1A1A2E;
  --sfe4-bg-light: #25254a;
  --sfe4-card: #2a2a4a;
  --sfe4-text: #E9ECEF;
  --sfe4-text-muted: #b8b9c5;
  --sfe4-accent: #9AFF9A;
  --sfe4-accent-2: #90EE90;
  --sfe4-danger: #FF6B6B;
  --sfe4-border: rgba(255, 165, 0, 0.25);
  --sfe4-radius: 12px;
  --sfe4-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --sfe4-header-h: 56px;
  --sfe4-bottom-h: 60px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--sfe4-bg);
  color: var(--sfe4-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sfe4-primary);
  text-decoration: none;
}

.sfe4-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.sfe4-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.sfe4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sfe4-header-h);
  background: linear-gradient(90deg, var(--sfe4-bg) 0%, var(--sfe4-bg-light) 100%);
  border-bottom: 1px solid var(--sfe4-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  max-width: 430px;
  margin: 0 auto;
}

.sfe4-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sfe4-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.sfe4-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sfe4-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sfe4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #1A1A2E;
  background: var(--sfe4-primary);
}

.sfe4-btn:active {
  transform: scale(0.96);
}

.sfe4-btn-login {
  background: transparent;
  color: var(--sfe4-primary);
  border: 1px solid var(--sfe4-primary);
}

.sfe4-menu-btn {
  background: transparent;
  border: none;
  color: var(--sfe4-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}

/* ===== Mobile menu ===== */
.sfe4-mobile-menu {
  position: fixed;
  top: var(--sfe4-header-h);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--sfe4-bg-light);
  border-bottom: 1px solid var(--sfe4-border);
  padding: 10px 12px;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.sfe4-mobile-menu.sfe4-menu-open {
  max-height: 480px;
  padding: 10px 12px 16px;
}

.sfe4-mobile-menu a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 165, 0, 0.12);
  color: var(--sfe4-text);
  font-size: 1.4rem;
}

.sfe4-mobile-menu a:active {
  color: var(--sfe4-primary);
}

/* ===== Main content ===== */
main {
  flex: 1;
  padding-top: calc(var(--sfe4-header-h) + 6px);
}

@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--sfe4-bottom-h) + 16px);
  }
}

/* ===== Carousel ===== */
.sfe4-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--sfe4-radius);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: var(--sfe4-shadow);
}

.sfe4-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

.sfe4-slide-active {
  opacity: 1;
}

.sfe4-slide-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(26, 26, 46, 0.7);
  color: var(--sfe4-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 700;
}

.sfe4-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.sfe4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(233, 236, 239, 0.4);
  border: none;
  cursor: pointer;
}

.sfe4-dot-active {
  background: var(--sfe4-primary);
}

/* ===== Section & headings ===== */
.sfe4-section {
  margin: 22px 0 8px;
}

.sfe4-section-title {
  font-size: 1.7rem;
  color: var(--sfe4-primary);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 4px solid var(--sfe4-primary);
}

.sfe4-h1 {
  font-size: 2rem;
  color: var(--sfe4-text);
  margin: 14px 0 6px;
  line-height: 1.3;
}

.sfe4-lead {
  color: var(--sfe4-text-muted);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* ===== Game grid ===== */
.sfe4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sfe4-card {
  background: var(--sfe4-card);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.sfe4-card:active {
  transform: scale(0.97);
  border-color: var(--sfe4-primary);
}

.sfe4-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.sfe4-card-name {
  font-size: 1.15rem;
  color: var(--sfe4-text);
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sfe4-card-type {
  font-size: 1rem;
  color: var(--sfe4-accent);
  margin-top: 2px;
}

/* ===== Promo / info blocks ===== */
.sfe4-info {
  background: var(--sfe4-card);
  border-radius: var(--sfe4-radius);
  padding: 14px;
  margin: 10px 0;
  border: 1px solid var(--sfe4-border);
}

.sfe4-info h2 {
  color: var(--sfe4-primary);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.sfe4-info h3 {
  color: var(--sfe4-accent-2);
  font-size: 1.4rem;
  margin: 10px 0 6px;
}

.sfe4-info p {
  color: var(--sfe4-text-muted);
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.sfe4-info ul {
  padding-left: 18px;
  color: var(--sfe4-text-muted);
  margin-bottom: 8px;
}

.sfe4-info li {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.sfe4-link-text {
  color: var(--sfe4-primary);
  font-weight: 700;
  text-decoration: underline;
}

.sfe4-cta-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.sfe4-cta-row .sfe4-btn {
  flex: 1;
  min-width: 140px;
}

/* ===== Testimonials ===== */
.sfe4-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sfe4-testimonial {
  background: var(--sfe4-card);
  border-radius: 10px;
  padding: 12px;
  border-left: 3px solid var(--sfe4-accent);
}

.sfe4-testimonial .sfe4-name {
  color: var(--sfe4-primary);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.sfe4-testimonial .sfe4-text {
  color: var(--sfe4-text-muted);
  font-size: 1.3rem;
}

/* ===== Payment methods ===== */
.sfe4-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sfe4-pay {
  background: var(--sfe4-card);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--sfe4-text);
  border: 1px solid var(--sfe4-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Winners showcase ===== */
.sfe4-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sfe4-winner {
  background: var(--sfe4-card);
  border-radius: 8px;
  padding: 8px;
  font-size: 1.2rem;
  text-align: center;
  border: 1px solid var(--sfe4-border);
}

.sfe4-winner .sfe4-amount {
  color: var(--sfe4-primary);
  font-weight: 700;
  font-size: 1.4rem;
}

.sfe4-winner .sfe4-game {
  color: var(--sfe4-text-muted);
  font-size: 1.1rem;
}

/* ===== App download CTA ===== */
.sfe4-app-cta {
  background: linear-gradient(135deg, var(--sfe4-primary) 0%, var(--sfe4-primary-dark) 100%);
  border-radius: var(--sfe4-radius);
  padding: 16px;
  color: #1A1A2E;
  margin: 12px 0;
  text-align: center;
}

.sfe4-app-cta h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.sfe4-app-cta p {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1A1A2E;
}

.sfe4-app-cta .sfe4-btn {
  background: var(--sfe4-bg);
  color: var(--sfe4-primary);
}

/* ===== Footer ===== */
.sfe4-footer {
  background: var(--sfe4-bg-light);
  border-top: 1px solid var(--sfe4-border);
  padding: 18px 12px 24px;
  margin-top: 24px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

.sfe4-footer-brand {
  color: var(--sfe4-text-muted);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.sfe4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.sfe4-footer-links a {
  color: var(--sfe4-text);
  font-size: 1.2rem;
  text-decoration: underline;
}

.sfe4-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sfe4-footer-promo .sfe4-btn {
  font-size: 1.2rem;
  padding: 0 10px;
  min-height: 34px;
}

.sfe4-copyright {
  color: var(--sfe4-text-muted);
  font-size: 1.1rem;
  border-top: 1px solid rgba(255, 165, 0, 0.12);
  padding-top: 10px;
}

/* ===== Bottom navigation ===== */
.sfe4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sfe4-bottom-h);
  background: linear-gradient(180deg, var(--sfe4-bg-light) 0%, var(--sfe4-bg) 100%);
  border-top: 1px solid var(--sfe4-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.sfe4-bottom-nav button {
  background: transparent;
  border: none;
  color: var(--sfe4-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sfe4-bottom-nav button:active {
  transform: scale(0.92);
}

.sfe4-bottom-nav button .sfe4-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.sfe4-bottom-nav button .sfe4-nav-label {
  font-size: 1rem;
}

.sfe4-bottom-nav button.sfe4-nav-active,
.sfe4-bottom-nav button:active {
  color: var(--sfe4-primary);
}

.sfe4-nav-promo {
  color: var(--sfe4-accent) !important;
}

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  .sfe4-bottom-nav {
    display: none;
  }
}

@media (min-width: 431px) {
  .sfe4-header,
  .sfe4-mobile-menu,
  .sfe4-footer,
  .sfe4-bottom-nav {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }
}
