/* Zeus TV 2026 Yılbaşı Çekiliş Sistemi - Ana Stil Dosyası */

/* ================================
   CSS Variables & Reset
   ================================ */
:root {
  --bg-primary: #0f0c29;
  --bg-secondary: #1a1a3e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent-primary: #9d4edd;
  --accent-secondary: #7b2cbf;
  --accent-light: #e0aaff;
  --gold: #ffd700;
  --gold-dark: #b8860b;
  --success: #4caf50;
  --error: #f44336;
  --warning: #ff9800;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(157, 78, 221, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

* {
  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: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a3e 50%, #0f0c29 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================================
   Background Effects
   ================================ */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #5a189a;
  bottom: -50px;
  right: -50px;
  animation-delay: -7s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #3c096c;
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.9); }
  75% { transform: translate(-50px, -30px) scale(1.05); }
}

/* ================================
   Container & Layout
   ================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================
   Header
   ================================ */
.header {
  text-align: center;
  padding: 40px 20px;
  animation: fadeInDown 1s ease-out;
}

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

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.logo-icon {
  font-size: 48px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 10px;
}

/* ================================
   Stats Bar
   ================================ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 25px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out 0.3s both;
}

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

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

.stat-number {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.2;
}

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

/* ================================
   Main Content
   ================================ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}

/* ================================
   Join Section
   ================================ */
.join-section {
  animation: fadeInUp 1s ease-out 0.5s both;
}

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

.prize-info {
  text-align: center;
  margin-bottom: 40px;
}

.prize-icon {
  font-size: 64px;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

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

.prize-info h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 10px;
}

.prize-info p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* ================================
   Join Form
   ================================ */
.join-form {
  max-width: 500px;
  margin: 0 auto;
}

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

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 20px;
  font-size: 20px;
  opacity: 0.5;
}

.input-wrapper input {
  width: 100%;
  padding: 18px 20px 18px 55px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 18px;
  transition: var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

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

.input-hint {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-join {
  width: 100%;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: var(--radius-xl);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.btn-join::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-join:hover::before {
  left: 100%;
}

.btn-join:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
}

.btn-join:active {
  transform: translateY(-1px);
}

.btn-join:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ================================
   Message Box
   ================================ */
.message-box {
  max-width: 500px;
  margin: 20px auto;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  animation: shakeIn 0.5s ease-out;
}

@keyframes shakeIn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.message-box.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.message-box.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* ================================
   Rules Section
   ================================ */
.rules {
  max-width: 500px;
  margin: 40px auto 0;
  padding: 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.rules h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: var(--accent-light);
  margin-bottom: 15px;
}

.rules ul {
  list-style: none;
  padding: 0;
}

.rules li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
}

.rules li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* ================================
   Winners Section
   ================================ */
.winners-section {
  animation: fadeInUp 1s ease-out;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  text-align: center;
  color: var(--gold);
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.winners-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 18px;
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.winner-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(184, 134, 11, 0.1));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 25px;
  text-align: center;
  animation: winnerPopIn 0.6s ease-out backwards;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.winner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

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

@keyframes winnerPopIn {
  from {
    opacity: 0;
    transform: scale(0.5) rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.winner-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

.winner-username {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 15px 0 10px;
  position: relative;
  z-index: 1;
}

.winner-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.forum-link {
  display: block;
  max-width: 300px;
  margin: 0 auto;
  padding: 15px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  transition: var(--transition);
}

.forum-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-light);
}

/* ================================
   Confetti Canvas
   ================================ */
#confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* ================================
   Footer
   ================================ */
.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-link a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link a:hover {
  color: var(--accent-primary);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
  .logo-text {
    font-size: 32px;
    letter-spacing: 2px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .stats-bar {
    gap: 20px;
    padding: 20px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .prize-icon {
    font-size: 48px;
  }
  
  .prize-info h2 {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .winners-grid {
    grid-template-columns: 1fr;
  }
  
  .input-wrapper input {
    font-size: 16px;
    padding: 15px 20px 15px 50px;
  }
  
  .btn-join {
    font-size: 16px;
    padding: 18px 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  .header {
    padding: 30px 15px;
  }
  
  .logo {
    flex-direction: column;
    gap: 10px;
  }
  
  .logo-icon {
    font-size: 40px;
  }
  
  .logo-text {
    font-size: 28px;
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 15px;
  }
}
