/*
 * onlineaffiliates.us - Premium Glassmorphic Theme Stylesheet
 */

:root {
  --primary-rgb: 16, 185, 129;    /* Emerald #10b981 */
  --secondary-rgb: 6, 182, 212;   /* Cyan #06b6d4 */
  --bg-dark: #0a0b10;
  --bg-dark-rgb: 10, 11, 16;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --panel-glass: rgba(18, 20, 29, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.4);
  --glow-light: rgba(16, 185, 129, 0.15);
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Dynamic Grid / Glow Backdrops */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 45%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBorder {
  0%, 100% {
    border-color: var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  }
  50% {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 8px 32px 0 rgba(6, 182, 212, 0.1);
  }
}

/* Layout Containers */
.main-layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 991px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Glassmorphism Panel Utility */
.glass-panel {
  background: var(--panel-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header & Navbar */
.site-header {
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  will-change: transform;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.25s ease;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.btn-header-cta {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.6);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff 40%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 32px;
  }
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 30px;
}

.trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .trust-badges {
    justify-content: center;
  }
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.badge-check {
  color: #10b981;
  font-weight: bold;
}

/* Glassmatch Form Panel */
.hero-form-panel {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  animation: pulseBorder 6s infinite ease-in-out;
}

.hero-form-panel h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.btn-submit-match {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border: none;
  color: #0b0c10;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.btn-submit-match:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Success Banner */
.success-banner {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-weight: 500;
  text-align: center;
  font-size: 14px;
}

/* Articles and Content */
.main-article {
  animation: fadeInUp 0.8s ease-out;
}

.article-header {
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.meta-item.category {
  color: #06b6d4;
  font-weight: 600;
}

.article-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.article-content {
  font-size: 16px;
  color: rgba(243, 244, 246, 0.85);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content a {
  color: #06b6d4;
  text-decoration: none;
  border-bottom: 1px dashed rgba(6, 182, 212, 0.4);
  transition: all 0.2s ease;
}

.article-content a:hover {
  color: #10b981;
  border-bottom-color: #10b981;
}

.article-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.reference-disclaimer {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Sidebar Widgets */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  border-left: 3px solid #10b981;
  padding-left: 10px;
}

/* Search widget */
.search-widget-form {
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
}

/* Recent list widget */
.recent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-list-item a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
  display: block;
}

.recent-list-item a:hover {
  color: #06b6d4;
}

/* Earnings widget calculator */
.calculator-widget {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.calc-group {
  margin-bottom: 12px;
}

.calc-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.calc-group select {
  width: 100%;
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 8px;
  color: var(--text-primary);
  font-size: 13px;
}

.calc-result-box {
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.calc-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #10b981;
}

.calc-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Footer Section */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 11, 16, 0.9);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 80px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Multi-step Payday Wizard Overrides */
.payday-form-wizard {
  max-width: 580px;
  margin: 30px auto;
  background: var(--panel-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  animation: pulseBorder 6s infinite ease-in-out;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.step-node .number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.step-node.active .number {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #0a0b10;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.step-node.completed .number {
  background: #10b981;
  border-color: #10b981;
  color: #0a0b10;
}

.step-node .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.step-node.active .label {
  color: var(--text-primary);
}

.step-bar {
  flex-grow: 1;
  height: 3px;
  background: var(--border-glass);
  margin: 0 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  transition: width 0.3s ease;
}

.wizard-form-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
}

.step-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 25px;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-group input,
.input-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-focus);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.input-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.action-row {
  display: flex;
  margin-top: 25px;
  gap: 15px;
}

.btn-wizard-next,
.btn-wizard-submit {
  flex-grow: 1;
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  border: none;
  color: #0a0b10;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-wizard-next:hover,
.btn-wizard-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(6, 182, 212, 0.35);
}

.btn-wizard-prev {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-prev:hover {
  background: rgba(255, 255, 255, 0.08);
}

.input-error {
  display: block;
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
}

.error-banner {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  text-align: center;
}

/* Success Card details */
.form-success-card {
  text-align: center;
  padding: 20px 10px;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.form-success-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-success-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 30px;
}

.payout-timeline {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.timeline-step .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-step.done .dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.timeline-step.active .dot {
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
}

.timeline-step.active {
  color: var(--text-primary);
  font-weight: 600;
}
