/* index.css - Fun & Amazing Version */
:root {
  --primary: #6e48aa;
  --secondary: #9d50bb;
  --accent: #4776e6;
  --light: #f7f9fc;
  --dark: #1a1a2e;
  --success: #4cc9f0;
  --warning: #f72585;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Fredoka+One&display=swap');

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.8s ease-out;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(110, 72, 170, 0.3);
  color: white;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(30deg);
  animation: shine 6s infinite linear;
}

h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Input Section */
.input-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.input-section:hover {
  transform: translateY(-5px) rotateX(1deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  background: rgba(255,255,255,0.8);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.2);
  outline: none;
  transform: scale(1.01);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(110, 72, 170, 0.4);
}

.btn-secondary {
  background: linear-gradient(45deg, #4776e6, #4cc9f0);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(71, 118, 230, 0.4);
}

/* Results Section */
.results-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.results-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.results-header h2 {
  color: var(--primary);
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  margin: 0;
}

.stats {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

#probabilityIndicator {
  color: var(--secondary);
}

#confidenceIndicator {
  color: var(--accent);
}

.results-container {
  min-height: 200px;
  border: 2px dashed rgba(110, 72, 170, 0.3);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s;
}

.results-container:hover {
  border-color: var(--accent);
  background: rgba(246, 240, 253, 0.5);
}

.placeholder {
  color: #aaa;
  font-size: 1.1rem;
}

/* Number Balls */
.prediction {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.number-ball {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(110, 72, 170, 0.4);
  transition: all 0.3s ease;
  animation: bounceIn 0.6s ease-out;
}

.number-ball:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 20px rgba(110, 72, 170, 0.6);
}

/* Footer */
footer {
  margin-top: 50px;
  text-align: center;
  padding: 20px 0;
  color: #777;
  font-size: 14px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.disclaimer {
  font-size: 12px;
  margin-top: 15px;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shine {
  0% { transform: rotate(30deg) translate(-10%, -10%); }
  100% { transform: rotate(30deg) translate(10%, 10%); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .number-ball {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Special Effects */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f00;
  border-radius: 50%;
  animation: confettiFall 5s linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(1000px) rotate(720deg); opacity: 0; }
}