/* ==========================================================================
   1Playable - Industry Standard Components & Clean Multi-Column Footer
   Centered Logo, Tilted News Ticker, Contact Form, Clean Dark Footer
   ========================================================================== */

/* 1. Header & Logo */
.site-header {
  width: 100%;
  padding: 2rem 0 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.site-logo-link:hover {
  opacity: 0.85;
}

@keyframes logoSpinIn {
  0% {
    transform: perspective(1000px) rotateY(0deg) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: perspective(1000px) rotateY(720deg) scale(1);
    opacity: 1;
  }
}

.site-logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  animation: logoSpinIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 2. Tilted News Ticker Banner (Middle Position) */
.tilted-news-container {
  width: 100%;
  overflow: hidden;
  padding: 2.5rem 0;
  position: relative;
  background: var(--bg-main);
}

.tilted-news-banner {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
  overflow: hidden;
}

.tilted-ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: tilted-ticker-scroll 30s linear infinite;
}

.tilted-news-banner:hover .tilted-ticker-track {
  animation-play-state: paused;
}

.tilted-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 2.5rem;
  color: #ffffff;
}

.tilted-ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
}

@keyframes tilted-ticker-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 3. Embedded Contact Form Section */
.home-contact-section {
  padding: 4rem 0;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.contact-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-section-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.contact-section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0.5rem auto 0 auto;
}

.home-contact-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sharp);
  padding: 2.5rem;
  max-width: 650px;
  margin: 0 auto;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row-dual { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-primary); margin-bottom: 0.4rem; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sharp);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-sharp);
  background-color: var(--bg-main);
}
.form-feedback-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sharp);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: none;
}
.feedback-success { background-color: #000000; color: #ffffff; }
.feedback-error { background-color: #000000; color: #ffffff; border: 1px solid #ef4444; }

/* 4. Clean Dark Multi-Column Footer (PAGES & LEGAL only) */
.industry-footer {
  background-color: #09090b;
  color: #a1a1aa;
  padding: 4rem 0 2.5rem 0;
  font-size: 0.88rem;
}

.footer-main-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-main-grid {
    gap: 1.5rem;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  filter: brightness(1.2);
}

.footer-email-link {
  color: #e4e4e7;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-email-link:hover {
  color: #ffffff;
}

.footer-social-box {
  display: flex;
  gap: 0.65rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #27272a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
  font-size: 1.1rem;
  background: #18181b;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-link {
  color: #a1a1aa;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-col-link:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid #27272a;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #71717a;
  text-align: center;
}

/* ==========================================================================
   Universal Page Layout (Home, Games, Blog) - EXACT Proportions
   ========================================================================== */

.page-hero {
  padding: 0.5rem 0 2rem 0;
  text-align: center;
}
.page-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.page-hero-desc {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

.universal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}
@media (max-width: 800px) {
  .universal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .universal-grid { grid-template-columns: 1fr; }
}

.universal-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sharp);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.universal-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-sharp);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.universal-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}
.universal-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.universal-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex: 1;
}
.universal-card-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}
.universal-card-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  text-align: center;
}
.universal-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}
.universal-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.universal-card-footer i {
  font-size: 1rem;
  transition: transform var(--transition-fast);
}
.universal-card:hover .universal-card-footer i {
  transform: translateX(4px);
}

/* ==========================================================================
   Home Page Mobile Carousel (Auto-advance 5s & Navigation Arrows)
   ========================================================================== */

.home-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.carousel-btn {
  display: none; /* Hidden on desktop */
}

.carousel-dots {
  display: none; /* Hidden on desktop */
}

@media (max-width: 650px) {
  .home-carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 2.5rem;
    margin-bottom: 2rem;
  }

  .universal-grid.home-cards-carousel {
    display: flex !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0 !important;
    gap: 0 !important;
  }

  .home-cards-carousel .universal-card {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
  }

  .carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* Place arrows at the image thumbnail zone (~28% of card height from top) */
    top: 28%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .carousel-btn:hover, .carousel-btn:active {
    background: #000000;
    border-color: #ffffff;
  }

  .carousel-prev {
    left: -4px;
  }

  .carousel-next {
    right: -4px;
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .carousel-dot.active {
    background-color: var(--text-primary);
    width: 22px;
    border-radius: 4px;
  }
}

