:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #22c55e;
  --primary-600: #16a34a;
  --secondary: #38bdf8;
  --danger: #ef4444;
  --warning: #f59e0b;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 70% -10%, #1f2937, var(--bg));
  color: var(--text);
}

.topnav { display: flex; gap: 12px; padding: 10px 16px; }
.topnav a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.topnav a:hover { text-decoration: underline; }

.scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #0b1220, var(--card));
  border: 2px solid #1f2937;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.team:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.team-name { font-weight: 700; letter-spacing: 0.3px; }
.team-score { font-size: 22px; font-weight: 800; color: var(--secondary); }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  overflow-x: hidden;
}

.card {
  background: rgba(17,24,39,0.8);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 100%;
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.hidden { display: none; }

form {
  display: grid;
  gap: 12px;
}

label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input[type="text"] {
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid #1f2937;
  background: #0b1220;
  color: var(--text);
  transition: all 0.3s ease;
  font-size: 16px;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

input::placeholder { color: #64748b; }

.btn {
  padding: 12px 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  color: #0b1220;
  background: #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn:active { 
  transform: translateY(0); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-600); }
.btn.secondary { background: var(--secondary); color: #07111f; }
.btn.warning { background: var(--warning); color: #07111f; }
.btn.danger { background: var(--danger); color: white; }
.btn.info { background: var(--secondary); color: #07111f; }
.btn.info:hover { background: #0ea5e9; }

.info-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.round-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.turn-indicator { color: var(--warning); font-weight: 700; }
.wrong-boxes { display: flex; gap: 8px; }
.wrong-box { 
  width: 32px; 
  height: 32px; 
  border-radius: 12px; 
  background: #0b1220; 
  border: 2px solid #1f2937; 
  display: grid; 
  place-items: center; 
  font-size: 20px; 
  font-weight: bold;
  color: #ef4444; 
  transition: all 0.2s ease;
}

.wrong-box:hover {
  border-color: #ef4444;
  transform: scale(1.05);
}

#question-text { margin-top: 12px; margin-bottom: 14px; }

.answers-board { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.answers-board li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 2px dashed #334155;
  border-radius: 16px;
  padding: 16px 18px;
  min-height: 52px;
  background: linear-gradient(180deg, rgba(11,18,32,0.8), rgba(11,18,32,0.5));
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.answers-board li:hover {
  border-color: #475569;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.answers-board li.revealed { 
  border-style: solid; 
  border-color: #475569; 
  background: linear-gradient(180deg, rgba(71,85,105,0.1), rgba(11,18,32,0.6));
}
.answers-board .answer-text { font-weight: 700; letter-spacing: 0.3px; }
.answers-board .answer-points { font-weight: 800; color: var(--secondary); }
.answers-board .placeholder { color: #64748b; font-style: italic; }

.answer-area { margin-top: 14px; display: grid; gap: 10px; }
.steal-area { margin-top: 16px; display: grid; gap: 10px; border-top: 1px dashed #334155; padding-top: 12px; }

/* Yeni buton düzeni */
.round-controls { 
  margin-top: 16px; 
  display: grid; 
  grid-template-columns: 1fr auto 1fr; 
  gap: 16px; 
  align-items: start;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .round-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .left-controls,
  .center-controls,
  .right-controls {
    justify-self: center;
  }
}

.left-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: start;
  min-width: 0;
}

.center-controls {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.right-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-self: end;
  min-width: 0;
}

/* Footer Stilleri */
.footer {
  background: linear-gradient(180deg, rgba(11,18,32,0.9), rgba(17,24,39,0.95));
  border-top: 2px solid rgba(255,255,255,0.08);
  padding: 32px 16px 16px;
  margin-top: 48px;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.footer-section h4 {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.footer-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.contact-icon {
  font-size: 16px;
  min-width: 20px;
}

.contact-text a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

 .contact-text a:hover {
   color: var(--primary);
   text-decoration: underline;
 }

/* WhatsApp linki için özel stil */
.contact-text a[href*="wa.me"] {
   color: #25D366; /* WhatsApp yeşili */
   font-weight: 600;
}

.contact-text a[href*="wa.me"]:hover {
   color: #128C7E; /* Koyu WhatsApp yeşili */
   text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #64748b;
  font-size: 12px;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer {
    padding: 24px 16px 16px;
    margin-top: 32px;
  }
}

/* Oyun Kuralları Stilleri */
.game-rules {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed #334155;
}

.game-rules h3 {
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: 18px;
  text-align: center;
}

.rules-content {
  display: grid;
  gap: 20px;
}

.rule-section h4 {
  color: var(--warning);
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.rule-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rule-section li {
  margin-bottom: 6px;
}

.rule-section strong {
  color: var(--text);
  font-weight: 600;
}



/* Breathing Animation */
@keyframes breathing {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.breathing {
  animation: breathing 2s ease-in-out infinite;
}


