/* Global styles for Winalo */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-alt: #1a1a1a;
  --accent: #ff8a00;
  --accent-light: #ffd166;
  --text: #f5f5f5;
  --text-muted: #b0b0b0;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Inter', 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background-color: var(--bg-alt);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

/* Highlight chat and game links in navigation */
.nav-menu a#open-chat,
.nav-menu a#open-game {
  background-color: var(--accent);
  color: #0a0a0a;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  /* Add horizontal margin to separate highlighted buttons from adjacent links */
  margin-left: 0.4rem;
  margin-right: 0.4rem;
}
.nav-menu a#open-chat:hover,
.nav-menu a#open-game:hover {
  background-color: var(--accent-light);
  color: #0a0a0a;
}
.nav-menu a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--accent);
}

.lang-switcher select {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: #0a0a0a;
}

.btn-secondary {
  background-color: var(--bg-alt);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-light);
}
.btn-secondary:hover {
  background-color: var(--accent);
  color: #0a0a0a;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}

.filter label {
  margin-right: 0.5rem;
  font-weight: 500;
}

.filter select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--bg-alt);
  border-radius: var(--radius);
  background-color: var(--bg-alt);
  color: var(--text);
}

/* Brand Grid */
/* Brand Grid now displays exactly three cards per row on wide screens */
.brand-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 4rem;
}

.brand-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.14);
}
.brand-card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.brand-card .brand-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}
.brand-card .rating {
  margin-bottom: 0.5rem;
  color: var(--accent-light);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* Trustpilot link next to rating */
.trust-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
}
.trust-link:hover {
  color: var(--accent-light);
}
.brand-card .highlight {
  background: linear-gradient(135deg, var(--accent), #ffb347);
  color: #0a0a0a;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.brand-card .btn-go {
  margin-top: auto;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  /* subtle pulse animation to draw attention */
  animation: pulse 2s infinite;
}
.brand-card .btn-go:hover {
  background-color: var(--accent-light);
}

/* Pulse animation for call-to-action buttons */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Enhanced brand card elements */
.brand-card .card-top {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 0.75rem;
}

.brand-card .tags {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.25rem;
}

.brand-card .tag {
  background-color: var(--accent);
  color: #0a0a0a;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.brand-card .bonus {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
  text-align: center;
  min-height: 3rem;
}

.brand-card .actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: auto;
}

.brand-card .actions .btn-detail,
.brand-card .actions .btn-play,
.brand-card .actions .btn-review {
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.brand-card .actions .btn-detail {
  background-color: var(--bg-alt);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.brand-card .actions .btn-play {
  background-color: var(--accent);
  color: #0a0a0a;
}
.brand-card .actions .btn-review {
  background-color: var(--bg-alt);
  color: var(--accent-light);
  border: 1px solid var(--accent-light);
}

.brand-card .actions .btn-detail:hover {
  background-color: var(--accent);
  color: #0a0a0a;
}
.brand-card .actions .btn-play:hover {
  background-color: var(--accent-light);
}
.brand-card .actions .btn-review:hover {
  background-color: var(--accent-light);
  color: #0a0a0a;
}

/* Brand detail page */
.brand-detail {
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  /* center brand detail panel within the page */
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: var(--shadow);
}
.brand-detail h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.brand-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.brand-info img {
  /* enlarge detail page logo */
  width: 156px;
  height: 156px;
  object-fit: contain;
}
.brand-meta {
  flex: 1;
}
.brand-meta p {
  margin-bottom: 0.5rem;
}
.payment-methods,
.languages,
.support {
  margin-bottom: 0.5rem;
}

.brand-detail .btn-go {
  margin-top: 1rem;
  display: inline-block;
}

/* Articles */
.articles h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: var(--accent);
}
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background-color: var(--bg-alt);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.article-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Articles grid on dedicated page */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Related sections on brand page */
.related-brands, .related-articles {
  margin-top: 2rem;
}
.related-brands h2, .related-articles h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.related-brands .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  justify-items: center;
}
.related-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 14px;
  padding: 0.75rem;
  width: 190px;
  min-height: 210px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  border-color: rgba(255,255,255,0.12);
}
.related-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
}
.related-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}
.related-articles .related-list {
  list-style: none;
  padding-left: 1rem;
}
.related-articles .related-list li {
  margin-bottom: 0.5rem;
}
.related-articles .related-list a {
  color: var(--accent);
  text-decoration: underline;
}

/* Extra spacing for article page content to avoid sticking to header */
#article-content {
  margin-top: 3rem;
}
#article-content p {
  margin: 0 0 1.25rem;
  line-height: 1.7;
}
#article-content ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0 0 0 1rem;
  line-height: 1.6;
}
#article-content li {
  margin: 0.2rem 0;
}

.footer-rg {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
.footer-rg strong {
  color: var(--text);
}
.related-articles .related-list a:hover {
  color: var(--accent-light);
}

/* About company section */
.about-company {
  position: relative;
  width: min(960px, 94%);
  margin: 4rem auto;
  padding: 2.75rem 2.25rem;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 20%, rgba(255,138,0,0.08), transparent 35%), radial-gradient(circle at 80% 10%, rgba(255,209,102,0.08), transparent 40%), linear-gradient(145deg, #1b1b1b, #121212);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.about-company::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,138,0,0.25);
  pointer-events: none;
  opacity: 0.6;
}
.about-company img {
  width: 180px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.about-company .about-text {
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  text-align: center;
}
.about-company h2 {
  width: 100%;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* Game section on homepage */
.game-section {
  text-align: center;
  margin: 4rem 0;
}
.game-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.game-section p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.game-section .btn-primary {
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
}

/* Footer styles */
.site-footer {
  background-color: var(--bg-alt);
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: var(--shadow);
}
.footer-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

/* Footer brand block with logo and copyright */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-brand img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-menu a {
  color: var(--text);
  font-size: 0.9rem;
}
.footer-menu a:hover {
  color: var(--accent-light);
}
.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal base styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Star rating (for possible future use) */
.stars {
  color: var(--accent-light);
}

/* Burger menu button styles */
.burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}
.burger::before,
.burger::after,
.burger span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transition: transform 0.3s ease, top 0.3s ease;
}
.burger::before {
  top: 0;
}
.burger::after {
  top: 17px;
}
.burger span {
  top: 8.5px;
}
.burger.active::before {
  top: 8.5px;
  transform: rotate(45deg);
}
.burger.active::after {
  top: 8.5px;
  transform: rotate(-45deg);
}
.burger.active span {
  transform: scaleX(0);
}
/* Style the CTA button on brand detail page */
.brand-detail .btn-go {
  padding: 0.6rem 1.2rem;
  background-color: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.brand-detail .btn-go:hover {
  background-color: var(--accent-light);
}
.brand-description {
  margin-top: 1rem;
}
.brand-review {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.6;
}
