/* ============================================================
 * ph love - style.css
 * Mobile-first HTML5 basefiles for phlove.homes
 * Palette: #DEB887 | #708090 | #DEB887 | #262626 | #4A4A4A
 * Dark tones are backgrounds; light tones are text.
 * Every custom class uses the v04c- prefix.
 * ============================================================ */

:root {
  --v04c-primary: #DEB887;
  --v04c-secondary: #708090;
  --v04c-bg: #262626;
  --v04c-bg-alt: #1d1d1d;
  --v04c-surface: #303030;
  --v04c-text: #f3ece1;
  --v04c-muted: #b9b3a8;
  --v04c-dark: #4A4A4A;
  --v04c-accent: #f0c890;
  --v04c-line: rgba(222, 184, 135, 0.22);
  --v04c-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --v04c-radius: 14px;
  --v04c-radius-sm: 10px;
  --v04c-maxw: 430px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--v04c-bg);
  color: var(--v04c-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(--v04c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: #fff; line-height: 1.25; font-weight: 700; }

.v04c-container {
  width: 100%;
  max-width: var(--v04c-maxw);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.v04c-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* ---------------- Header ---------------- */
.v04c-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2b2b2b 0%, #1d1d1d 100%);
  border-bottom: 1px solid var(--v04c-line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.v04c-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  min-height: 56px;
}

.v04c-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--v04c-primary);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.4px;
}

.v04c-brand img { width: 30px; height: 30px; border-radius: 8px; }

.v04c-brand small {
  display: block;
  font-size: 1rem;
  color: var(--v04c-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.v04c-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.v04c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-height: 38px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.v04c-btn-primary {
  background: linear-gradient(135deg, #f0c890 0%, #DEB887 60%, #c79a5d 100%);
  color: #262626;
  box-shadow: 0 4px 14px rgba(222, 184, 135, 0.35);
}

.v04c-btn-primary:hover { transform: translateY(-1px); text-decoration: none; }

.v04c-btn-ghost {
  background: transparent;
  color: var(--v04c-text);
  border: 1px solid var(--v04c-line);
}

.v04c-btn-ghost:hover { background: rgba(222, 184, 135, 0.10); text-decoration: none; }

.v04c-btn-block { width: 100%; padding: 1rem; font-size: 1.4rem; }

.v04c-menu-btn {
  background: transparent;
  border: 1px solid var(--v04c-line);
  border-radius: 10px;
  color: var(--v04c-text);
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------------- Mobile menu ---------------- */
.v04c-mobile-menu {
  display: none;
  background: #1d1d1d;
  border-bottom: 1px solid var(--v04c-line);
  padding: 0.6rem 1.2rem 1rem;
}

.v04c-mobile-menu.v04c-is-open { display: block; }

.v04c-mobile-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--v04c-text);
  font-size: 1.3rem;
}

.v04c-mobile-menu a:hover { color: var(--v04c-primary); text-decoration: none; }

.v04c-mobile-menu .v04c-mm-group-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--v04c-secondary);
  margin-top: 0.8rem;
  padding: 0.4rem;
}

/* ---------------- Hero / Carousel ---------------- */
.v04c-hero {
  position: relative;
  padding: 1.4rem 0 0.8rem;
}

.v04c-carousel {
  position: relative;
  border-radius: var(--v04c-radius);
  overflow: hidden;
  box-shadow: var(--v04c-shadow);
  background: #111;
}

.v04c-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }

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

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

.v04c-carousel-slide.v04c-is-active { opacity: 1; }

.v04c-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}

.v04c-carousel-caption h2 { margin: 0 0 0.4rem; font-size: 1.7rem; color: #fff; }

.v04c-carousel-caption p { margin: 0; font-size: 1.15rem; color: var(--v04c-primary); }

.v04c-carousel-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.v04c-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: 0;
  padding: 0;
}

.v04c-carousel-dot.v04c-is-active { background: var(--v04c-primary); width: 22px; border-radius: 6px; }

/* ---------------- Sections ---------------- */
.v04c-section { padding: 2.2rem 0 1rem; }

.v04c-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.v04c-section-head h2 {
  font-size: 1.7rem;
  margin: 0;
  color: #fff;
  position: relative;
  padding-left: 14px;
}

.v04c-section-head h2::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--v04c-primary), var(--v04c-secondary));
}

.v04c-section-head .v04c-link-more { font-size: 1.15rem; color: var(--v04c-primary); }

.v04c-eyebrow {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v04c-secondary);
  margin-bottom: 0.6rem;
}

.v04c-lead {
  font-size: 1.35rem;
  color: var(--v04c-muted);
  margin: 0 0 1rem;
}

/* ---------------- Filter pills ---------------- */
.v04c-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.v04c-filter-btn {
  border: 1px solid var(--v04c-line);
  background: rgba(112, 128, 144, 0.12);
  color: var(--v04c-text);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.v04c-filter-btn.v04c-is-active,
.v04c-filter-btn:hover {
  background: var(--v04c-primary);
  color: #262626;
  border-color: var(--v04c-primary);
  text-decoration: none;
}

/* ---------------- Game grid ---------------- */
.v04c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v04c-game-card {
  background: var(--v04c-surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--v04c-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.v04c-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--v04c-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.v04c-game-card .v04c-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111;
}

.v04c-game-card .v04c-game-thumb img { width: 100%; height: 100%; object-fit: cover; }

.v04c-game-card .v04c-game-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(222, 184, 135, 0.92);
  color: #262626;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.v04c-game-card .v04c-game-name {
  padding: 0.55rem 0.6rem 0.7rem;
  font-size: 1.1rem;
  color: var(--v04c-text);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v04c-game-card:hover .v04c-game-name { color: var(--v04c-primary); }

/* ---------------- Feature cards ---------------- */
.v04c-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.v04c-feature-card {
  background: linear-gradient(160deg, #303030 0%, #262626 100%);
  border: 1px solid var(--v04c-line);
  border-radius: var(--v04c-radius);
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.v04c-feature-card .v04c-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(222, 184, 135, 0.12);
  color: var(--v04c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}

.v04c-feature-card h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.v04c-feature-card p { margin: 0; color: var(--v04c-muted); font-size: 1.15rem; }

/* ---------------- Promo / CTA banners ---------------- */
.v04c-promo-banner {
  background: linear-gradient(135deg, #708090 0%, #4A4A4A 100%);
  border-radius: var(--v04c-radius);
  padding: 1.4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v04c-line);
}

.v04c-promo-banner h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.5rem; }
.v04c-promo-banner p { margin: 0 0 1rem; color: rgba(255,255,255,0.85); font-size: 1.15rem; }

.v04c-promo-banner .v04c-tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--v04c-primary); color: #262626;
  padding: 2px 8px; border-radius: 6px; font-size: 0.95rem; font-weight: 700;
}

/* ---------------- Testimonials ---------------- */
.v04c-testimonial {
  background: var(--v04c-surface);
  border-left: 3px solid var(--v04c-primary);
  border-radius: 0 var(--v04c-radius-sm) var(--v04c-radius-sm) 0;
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
}

.v04c-testimonial .v04c-stars { color: #f0c890; font-size: 1.1rem; margin-bottom: 0.3rem; }
.v04c-testimonial p { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--v04c-text); }
.v04c-testimonial .v04c-author { font-size: 1rem; color: var(--v04c-muted); }

/* ---------------- Payment methods ---------------- */
.v04c-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.v04c-pay-item {
  background: var(--v04c-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--v04c-radius-sm);
  padding: 0.8rem;
  text-align: center;
  font-size: 1rem;
  color: var(--v04c-muted);
}

.v04c-pay-item i { font-size: 1.6rem; color: var(--v04c-primary); display: block; margin-bottom: 0.3rem; }

/* ---------------- Winners ticker ---------------- */
.v04c-winners {
  background: var(--v04c-bg-alt);
  border: 1px solid var(--v04c-line);
  border-radius: var(--v04c-radius);
  padding: 0.6rem 1rem;
}

.v04c-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: 1.15rem;
}

.v04c-winner-row:last-child { border-bottom: 0; }
.v04c-winner-row .v04c-wname { color: var(--v04c-text); }
.v04c-winner-row .v04c-wgame { color: var(--v04c-muted); font-size: 1rem; }
.v04c-winner-row .v04c-wamount { color: var(--v04c-primary); font-weight: 700; }

/* ---------------- RTP / data table ---------------- */
.v04c-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: var(--v04c-surface);
  border-radius: var(--v04c-radius-sm);
  margin-bottom: 0.5rem;
}

.v04c-rtp-row .v04c-rtp-name { font-weight: 600; color: #fff; font-size: 1.2rem; }
.v04c-rtp-row .v04c-rtp-bar {
  flex: 1; height: 6px; margin: 0 0.9rem;
  background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden;
}
.v04c-rtp-row .v04c-rtp-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--v04c-primary), var(--v04c-accent));
}
.v04c-rtp-row .v04c-rtp-value { color: var(--v04c-primary); font-weight: 700; font-size: 1.15rem; min-width: 48px; text-align: right; }

/* ---------------- FAQ ---------------- */
.v04c-faq-item {
  background: var(--v04c-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--v04c-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.v04c-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}

.v04c-faq-question .v04c-faq-icon { color: var(--v04c-primary); transition: transform 0.25s ease; }
.v04c-faq-item.v04c-is-open .v04c-faq-icon { transform: rotate(45deg); }

.v04c-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.1rem;
  color: var(--v04c-muted);
  font-size: 1.1rem;
}

.v04c-faq-item.v04c-is-open .v04c-faq-answer { padding-bottom: 1rem; }

/* ---------------- Steps ---------------- */
.v04c-steps { counter-reset: step; }
.v04c-step {
  position: relative;
  padding: 0.5rem 0 0.5rem 3.2rem;
  margin-bottom: 0.9rem;
}
.v04c-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.2rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v04c-primary), var(--v04c-secondary));
  color: #262626;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.v04c-step h4 { margin: 0 0 0.2rem; font-size: 1.2rem; color: #fff; }
.v04c-step p { margin: 0; color: var(--v04c-muted); font-size: 1.1rem; }

/* ---------------- Article / SEO text ---------------- */
.v04c-article { color: var(--v04c-text); font-size: 1.2rem; line-height: 1.65; }
.v04c-article h2 { font-size: 1.55rem; margin: 1.6rem 0 0.6rem; color: #fff; }
.v04c-article h3 { font-size: 1.3rem; margin: 1.2rem 0 0.5rem; color: var(--v04c-primary); }
.v04c-article p { margin: 0 0 0.9rem; color: var(--v04c-muted); }
.v04c-article ul { padding-left: 1.4rem; color: var(--v04c-muted); margin: 0 0 1rem; }
.v04c-article ul li { margin-bottom: 0.4rem; }
.v04c-article a { color: var(--v04c-primary); font-weight: 600; }

/* ---------------- Footer ---------------- */
.v04c-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--v04c-line);
  padding: 2.2rem 0 5.5rem;
  margin-top: 2rem;
  color: var(--v04c-muted);
  font-size: 1.1rem;
}

.v04c-footer h4 { color: #fff; font-size: 1.2rem; margin: 0 0 0.7rem; }

.v04c-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1.2rem;
}

.v04c-footer-links a { color: var(--v04c-muted); font-size: 1.1rem; }
.v04c-footer-links a:hover { color: var(--v04c-primary); }

.v04c-footer-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.4rem; }

.v04c-footer-brand { margin-bottom: 1rem; line-height: 1.5; color: var(--v04c-muted); }

.v04c-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  font-size: 1rem;
  color: var(--v04c-secondary);
  text-align: center;
}

.v04c-disclaimer {
  background: rgba(112, 128, 144, 0.12);
  border-left: 3px solid var(--v04c-secondary);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--v04c-muted);
  margin-top: 1rem;
}

/* ---------------- Bottom nav ---------------- */
.v04c-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2b2b2b 0%, #161616 100%);
  border-top: 1px solid var(--v04c-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.55);
}

.v04c-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--v04c-muted);
  font-size: 1rem;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s ease, transform 0.18s ease;
  min-width: 60px;
  min-height: 60px;
}

.v04c-bottom-nav a i { font-size: 2rem; line-height: 1; }

.v04c-bottom-nav a:hover,
.v04c-bottom-nav a.v04c-is-current {
  color: var(--v04c-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

.v04c-bottom-nav a .v04c-bn-label { font-size: 1rem; letter-spacing: 0.2px; }

.v04c-bn-promo {
  position: relative;
}

.v04c-bn-promo::after {
  content: '';
  position: absolute;
  top: 6px; right: 14px;
  width: 7px; height: 7px;
  background: #ff6b4a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,107,74,0.25);
}

/* ---------------- Reveal animation ---------------- */
.v04c-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.v04c-reveal.v04c-is-visible { opacity: 1; transform: none; }

/* ---------------- Desktop helpers ---------------- */
.v04c-desktop-only { display: none; }
.v04c-mobile-only { display: block; }

/* ---------------- Responsive ---------------- */
@media (min-width: 769px) {
  body { background: #1f1f1f; }
  .v04c-header .v04c-desktop-only { display: flex; }
  .v04c-header .v04c-mobile-only { display: none; }
  .v04c-bottom-nav { display: none; }
  .v04c-footer { padding-bottom: 2.2rem; }
  .v04c-grid { grid-template-columns: repeat(5, 1fr); }
  .v04c-cards-row { grid-template-columns: repeat(2, 1fr); }
  .v04c-pay-grid { grid-template-columns: repeat(5, 1fr); }
  .v04c-container { max-width: 960px; }
  .v04c-desktop-only { display: block; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .v04c-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile content padding so the fixed bottom nav never overlaps content */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .v04c-footer { padding-bottom: 5.5rem; }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
