/*
Theme Name: HH88 SEO Theme Upload
Theme URI: https://hh88vip.hk
Author: HH88
Author URI: https://hh88vip.hk
Description: HH88 靜態頁轉 WordPress 可編輯主題
Version: 2.1.0
Text Domain: hh88-upload
*/

/* hh88-home-footer */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.88);
  font-size: 14px;
  background: #0b0f18;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 32px;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-brand p {
  margin: 0;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.78);
}

.footer-badge-text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: rgba(248, 250, 252, 0.88);
  font-size: 13px;
  font-weight: 600;
}

.footer-cert-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-cert-logo {
  width: 120px;
  height: auto;
  display: inline-block;
}

.footer-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-badge-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list a {
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(226, 232, 240, 0.65);
  font-size: 12px;
}

.footer-disclaimer {
  max-width: 520px;
  line-height: 1.7;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-cert-logos {
    justify-content: center;
  }

  .footer-badge-text {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 28px 0 22px;
  }

  .footer-top {
    gap: 14px;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
  }

  .footer-title {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .footer-list {
    gap: 6px;
  }

  .footer-list a {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-badge-text {
    font-size: 12px;
  }

  .footer-brand p {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-cert-logo {
    width: 96px;
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 12px;
    justify-content: center;
    text-align: center;
  }

  .footer-disclaimer {
    font-size: 11px;
    line-height: 1.45;
  }

  .footer-legal {
    font-size: 11px;
    justify-content: center;
  }
}

/* SEO listing pages */
.hh88-seo-list {
  padding: 28px 0 40px;
}

.hh88-seo-title {
  margin: 6px 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.hh88-seo-subtitle {
  margin: 0 0 16px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.hh88-seo-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hh88-seo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(17, 17, 24, 0.6);
}

.hh88-seo-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-items: center;
}

.article-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20, 14, 20, 0.75);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.article-thumb {
  width: 341.2px;
  height: 206px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: 14px 16px 16px;
  text-align: center;
  display: grid;
  gap: 6px;
}

.article-body strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.article-body .article-meta {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.6);
  margin-bottom: 0;
}

.article-body .section-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12.5px;
  line-height: 1.6;
}

.article-body a {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
}

.article-body a:hover {
  color: #ffffff;
}

/* SEO live-casino list layout */
.hh88-seo-live-grid {
  justify-items: center;
}

.hh88-seo-live-card {
  width: 100%;
  max-width: 980px;
}

.hh88-seo-live-media {
  width: 341.2px;
  height: 206px;
  margin: 0;
  background: rgba(0, 0, 0, 0.18);
  flex: 0 0 341.2px;
  display: block;
}

.hh88-seo-live-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh88-seo-live-body {
  text-align: left;
  display: grid;
  gap: 12px;
  width: 100%;
  justify-items: start;
}

@media (max-width: 720px) {
  .article-thumb,
  .hh88-seo-live-media {
    width: 100%;
    height: auto;
    aspect-ratio: 341.2 / 206;
  }
}

.hh88-seo-live-body .mb-2 {
  justify-content: flex-start;
  margin-bottom: 2px;
}

.hh88-seo-live-body h3,
.hh88-seo-live-body p {
  text-align: left;
  margin: 0;
  line-height: 1.6;
}

.hh88-seo-live-wrap {
  align-items: flex-start;
  gap: 18px;
}

.hh88-seo-live-body a {
  margin-top: 4px;
}

/* Article content typography (override card styles). */
.content-block .article-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.9);
}

.content-block .article-body a {
  font-size: 15px;
}

/* Keep article content responsive across web and H5. */
.content-block .article-body img,
.content-block .article-body video,
.content-block .article-body iframe,
.content-block .article-body canvas,
.content-block .article-body svg {
  max-width: 100%;
  height: auto;
}

.content-block .article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-block .article-body pre {
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 640px) {
  .content-block .article-body {
    word-break: break-word;
  }
}

@media (min-width: 768px) {
  .content-block .article-body {
    font-size: 16px;
  }
  .content-block .article-body a {
    font-size: 16px;
  }
}

/* Redpack widget (global) */
.redpack-widget {
  position: fixed;
  right: 18px;
  bottom: 120px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.redpack-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 84px;
  height: 84px;
}

.redpack-btn img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: redpackPulse 2.8s ease-in-out infinite;
}

.redpack-text {
  font-size: 12px;
  color: #facc15;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  margin-top: -2px;
}

.redpack-text.pulse {
  animation: redpackPulse 3s ease-in-out infinite;
}

.redpack-countdown {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 8px;
}

.redpack-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.redpack-modal.is-open {
  display: flex;
}

.redpack-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.redpack-modal-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 94%;
  transform-origin: center;
}

.redpack-modal-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.redpack-modal.is-open .redpack-modal-content {
  animation: redpackPop 0.35s ease-out both;
}

.redpack-modal.is-open .redpack-modal-content img {
  animation: redpackPulse 2.8s ease-in-out infinite;
  animation-delay: 0.35s;
}

.redpack-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

@keyframes redpackPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes redpackPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
