/* ChatGPTBet.co.za - AI-Powered Betting Predictions */
/* Dark mode, neon accents (purple/cyan), futuristic design */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.5);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.5);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-purple-cyan: linear-gradient(135deg, var(--purple), var(--cyan));
  --gradient-border: linear-gradient(135deg, var(--purple), var(--cyan), var(--purple));
}

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

html {
  scroll-behavior: smooth;
}

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

/* Animated background grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-purple-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--purple-glow); }
  50% { box-shadow: 0 0 40px var(--cyan-glow); }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.2);
}

/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-purple-cyan);
  color: white;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), var(--gradient-purple-cyan);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.btn-secondary:hover {
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), var(--gradient-purple-cyan);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
}

.card-gradient-border {
  position: relative;
  background: var(--bg-card);
  border: none;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: var(--gradient-purple-cyan);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* AI Chat Interface */
.ai-chat {
  max-width: 800px;
  margin: 0 auto;
}

.chat-container {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.chat-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-purple-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.chat-messages {
  padding: 20px;
  min-height: 200px;
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-purple-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.chat-message-content {
  flex: 1;
}

.chat-message-text {
  background: rgba(168, 85, 247, 0.1);
  padding: 15px;
  border-radius: 12px;
  border-top-left-radius: 0;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 15px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input input:focus {
  border-color: var(--purple);
}

.chat-input input::placeholder {
  color: var(--text-muted);
}

.chat-input button {
  background: var(--gradient-purple-cyan);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--purple-glow);
}

/* Predictions */
.predictions-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header h2 span {
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
}

.predictions-grid {
  display: grid;
  gap: 20px;
}

.prediction-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.prediction-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
}

.team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-home {
  justify-content: flex-end;
  text-align: right;
}

.team-away {
  justify-content: flex-start;
}

.team-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.team-name {
  font-weight: 600;
}

.team-form {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.prediction-center {
  text-align: center;
  padding: 0 20px;
}

.prediction-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.prediction-league {
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prediction-vs {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 10px 0;
}

.ai-prediction {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
}

.ai-prediction-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ai-prediction-value {
  font-weight: 700;
  font-size: 0.9rem;
}

.confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.confidence-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: var(--gradient-purple-cyan);
  border-radius: 3px;
  transition: width 1s ease;
}

.confidence-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}

.prediction-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 15px;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

/* Features */
.features {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* How AI Works */
.ai-explainer {
  padding: 60px 0;
}

.ai-steps {
  max-width: 800px;
  margin: 0 auto;
}

.ai-step {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
  position: relative;
}

.ai-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 70px;
  width: 2px;
  height: calc(100% - 30px);
  background: linear-gradient(to bottom, var(--purple), var(--cyan));
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-purple-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 10px;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-secondary);
}

.data-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.data-point {
  background: rgba(168, 85, 247, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--cyan);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.15));
  border-radius: 24px;
  padding: 60px 40px;
  border: 2px solid transparent;
  background-image: linear-gradient(rgba(18, 18, 26, 0.9), rgba(18, 18, 26, 0.9)), var(--gradient-purple-cyan);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-card h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
}

.cta-benefits {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  position: relative;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.cta-benefit span {
  color: var(--green);
  font-size: 1.2rem;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

/* Responsible Gambling */
.responsible-gambling {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
}

.responsible-gambling h4 {
  color: var(--red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.responsible-gambling p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.responsible-gambling .helpline {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Confidence colors */
.confidence-high { color: var(--green); }
.confidence-medium { color: var(--yellow); }
.confidence-low { color: var(--red); }

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    justify-content: center;
  }
  
  nav {
    width: 100%;
    justify-content: center;
  }
  
  .prediction-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .team {
    justify-content: center !important;
    text-align: center !important;
  }
  
  .team-home {
    order: 1;
  }
  
  .prediction-center {
    order: 0;
    padding: 0;
  }
  
  .team-away {
    order: 2;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .cta-card {
    padding: 40px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Odds display */
.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.odds-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.odds-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.odds-value {
  font-weight: 700;
  color: var(--cyan);
}

/* Quick tips */
.quick-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.quick-tip {
  background: rgba(168, 85, 247, 0.1);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-tip-icon {
  font-size: 1.5rem;
}

.quick-tip-text {
  font-size: 0.9rem;
}

.quick-tip-text strong {
  display: block;
  color: var(--cyan);
}
