/* GreenTV rewards — frontend overrides (BuddyPress + GamiPress shortcodes on dark theme) */

.gtv-mp {
  color: #e8fff0;
}

.gtv-mp p,
.gtv-mp li,
.gtv-mp td,
.gtv-mp th,
.gtv-mp dd,
.gtv-mp dt,
.gtv-mp h3,
.gtv-mp h4 {
  color: inherit;
}

.gtv-mp-hero p,
.gtv-mp-muted,
.gtv-mp-kpi .l,
.gtv-mp-table th {
  color: rgba(232, 255, 240, 0.72) !important;
}

.gtv-mp-section h2,
.gtv-mp-section h3,
.gtv-mp-hero h1,
.gtv-mp-kpi .n {
  color: #c5a46e !important;
}

.gtv-mp-section,
.gtv-mp-kpi,
.gtv-mp-card,
.gtv-mp-connect {
  background: rgba(16, 31, 24, 0.92) !important;
  border-color: rgba(0, 177, 64, 0.35) !important;
}

.gtv-mp-hero,
.gtv-mp-card.featured,
.gtv-mp-connect.connected {
  background: rgba(13, 111, 56, 0.28) !important;
  border-color: #00b140 !important;
}

.gtv-mp a,
.gtv-mp-section a {
  color: #fff8ea !important;
}

.gtv-mp a:hover {
  color: #c5a46e !important;
}

.gtv-mp-btn--primary {
  background: linear-gradient(90deg, #00b140, #c5a46e) !important;
  color: #04110b !important;
  border-color: transparent !important;
}

.gtv-mp-btn--secondary {
  background: transparent !important;
  color: #c5a46e !important;
  border-color: rgba(197, 164, 110, 0.45) !important;
}

/* Form fields — cream inputs, dark green text (readable on dark panels) */
.gtv-mp-field input[type="text"],
.gtv-mp-field input[type="url"],
.gtv-mp-field input[type="email"],
.gtv-mp-field input[type="number"],
.gtv-mp-field input[type="password"],
.gtv-mp-field select,
.gtv-mp-field textarea {
  background: #f5fff8 !important;
  color: #04110b !important;
  border-color: rgba(0, 177, 64, 0.45) !important;
}

.gtv-mp-field input::placeholder,
.gtv-mp-field textarea::placeholder {
  color: rgba(13, 58, 30, 0.55) !important;
  opacity: 1 !important;
}

.gtv-mp-field label {
  color: #c5a46e !important;
}

.gtv-mp-muted {
  color: rgba(232, 255, 240, 0.72) !important;
}

.gtv-mp-notice--ok {
  background: rgba(13, 111, 56, 0.38) !important;
  border-color: rgba(0, 177, 64, 0.55) !important;
  color: #e8fff0 !important;
}

.gtv-mp-notice--warn {
  background: rgba(197, 164, 110, 0.18) !important;
  border-color: rgba(197, 164, 110, 0.55) !important;
  color: #fff8ea !important;
}

.gtv-mp-code {
  background: rgba(7, 18, 14, 0.9) !important;
  color: #c5a46e !important;
  border: 1px solid rgba(197, 164, 110, 0.35) !important;
}

.gtv-mp-chips label {
  background: rgba(7, 18, 14, 0.85) !important;
  border: 1px solid rgba(0, 177, 64, 0.35) !important;
  color: #e8fff0 !important;
}

.gtv-mp-table td {
  color: #e8fff0 !important;
  border-bottom-color: rgba(0, 177, 64, 0.25) !important;
}

/* Custom badge grid (replaces raw GamiPress list UI) */
.gtv-rewards-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 960px) {
  .gtv-rewards-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gtv-rewards-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gtv-rewards-badge {
  border: 1px solid rgba(0, 177, 64, 0.35);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  background: rgba(7, 18, 14, 0.85);
}

.gtv-rewards-badge.is-earned {
  border-color: #c5a46e;
  box-shadow: 0 0 0 1px rgba(197, 164, 110, 0.25);
}

.gtv-rewards-badge .icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gtv-rewards-token {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.gtv-rewards-token--rank {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
}

.gtv-rewards-badge.is-locked .gtv-rewards-token {
  opacity: 0.35;
  filter: grayscale(0.85) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.gtv-mp-kpi--rank .n {
  margin-top: 2px;
}

.gtv-mp-kpi--token {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gtv-mp-kpi--token .gtv-rewards-token--stat,
.gtv-mp-kpi--token .gtv-rewards-token--rank {
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.gtv-rewards-journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.gtv-rewards-journey__step {
  background: rgba(7, 18, 14, 0.85);
  border: 1px solid rgba(0, 177, 64, 0.35);
  border-radius: 8px;
  padding: 14px;
}

.gtv-rewards-journey__step h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #c5a46e !important;
}

.gtv-rewards-journey__step p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.gtv-rewards-rank-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(7, 18, 14, 0.9);
  border: 1px solid rgba(0, 177, 64, 0.35);
  overflow: hidden;
  margin-top: 4px;
}

.gtv-rewards-rank-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00b140, #c5a46e);
  border-radius: 999px;
}

.gtv-rewards-rank-progress__meta {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.gtv-rewards-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .gtv-rewards-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gtv-rewards-actions {
    grid-template-columns: 1fr;
  }
}

.gtv-rewards-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 177, 64, 0.12), transparent 55%),
    rgba(7, 18, 14, 0.92);
  border: 1px solid rgba(0, 177, 64, 0.35);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gtv-rewards-action:hover {
  border-color: rgba(0, 255, 107, 0.42);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.gtv-rewards-action__body {
  flex: 1 1 auto;
  min-width: 0;
}

.gtv-rewards-action h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #c5a46e !important;
}

.gtv-rewards-action p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(232, 255, 240, 0.78);
}

/* Pill CTAs — Ways to participate */
.gtv-mp .gtv-rewards-action__btn,
.gtv-rewards-action__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 255, 107, 0.28) !important;
  background: linear-gradient(135deg, #147a3a 0%, #00b140 48%, #2d9e6b 100%) !important;
  color: #fff !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow:
    0 8px 18px rgba(0, 100, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gtv-mp .gtv-rewards-action__btn:hover,
.gtv-rewards-action__btn:hover {
  color: #fff !important;
  filter: brightness(1.08);
  border-color: rgba(0, 255, 107, 0.55) !important;
  box-shadow:
    0 10px 22px rgba(0, 120, 48, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.gtv-mp .gtv-rewards-action__btn:focus-visible,
.gtv-rewards-action__btn:focus-visible {
  outline: 2px solid rgba(197, 164, 110, 0.85);
  outline-offset: 2px;
  color: #fff !important;
}

.gtv-rewards-action__btn-arrow {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.92;
  transition: transform 0.15s ease;
}

.gtv-rewards-action__btn:hover .gtv-rewards-action__btn-arrow {
  transform: translateX(3px);
}

/* Accent variants for different action types */
.gtv-rewards-action--rewards .gtv-rewards-action__btn {
  background: linear-gradient(135deg, #8a6a2e 0%, #c5a46e 48%, #e0c48a 100%) !important;
  border-color: rgba(224, 196, 138, 0.45) !important;
  color: #1a1408 !important;
  box-shadow:
    0 8px 18px rgba(90, 70, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gtv-rewards-action--rewards .gtv-rewards-action__btn:hover {
  color: #0f0c05 !important;
}

.gtv-rewards-action--ads .gtv-rewards-action__btn {
  background: linear-gradient(135deg, #0d4f28 0%, #1a6b36 45%, #00b140 100%) !important;
}

.gtv-rewards-action--social .gtv-rewards-action__btn {
  background: linear-gradient(135deg, #0b3d2a 0%, #167a4a 50%, #2d9e6b 100%) !important;
}

.gtv-rewards-action--referral .gtv-rewards-action__btn {
  background: linear-gradient(135deg, #145c34 0%, #00b140 52%, #9be6b4 100%) !important;
  color: #04110b !important;
}

.gtv-rewards-action--referral .gtv-rewards-action__btn:hover {
  color: #04110b !important;
}

.gtv-rewards-action--rewards {
  border-color: rgba(197, 164, 110, 0.55);
  box-shadow: 0 0 0 1px rgba(197, 164, 110, 0.15), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.gtv-rewards-earn-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.gtv-rewards-badge .title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c5a46e;
  line-height: 1.25;
}

.gtv-rewards-badge .desc {
  font-size: 0.72rem;
  color: rgba(232, 255, 240, 0.68);
  margin-top: 6px;
  line-height: 1.35;
}

.gtv-rewards-badge.is-locked .title {
  color: rgba(232, 255, 240, 0.55);
}

/* If any GamiPress markup leaks through, force readable colors on dark BP */
#buddypress .gamipress-achievements-container,
#buddypress .gamipress-achievements-list,
#buddypress .gamipress-achievement,
#buddypress .gamipress-rank {
  color: #e8fff0 !important;
  background: transparent !important;
}

#buddypress .gamipress-achievement-title,
#buddypress .gamipress-rank-title,
#buddypress .gamipress-achievement-description,
#buddypress .gamipress-achievement-excerpt {
  color: #c5a46e !important;
}

#buddypress #gamipress-achievements-search,
#buddypress #gamipress-achievements-filters-wrap {
  display: none !important;
}

#buddypress .gamipress-achievement-image {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}