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

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 30px;
}

.game-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4a90e2;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
  font-weight: 400;
}

/* Butonlar */
.primary-btn, .secondary-btn, .danger-btn, .ready-btn {
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.secondary-btn {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.danger-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.ready-btn {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ready-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.ready-btn.not-ready {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.ready-btn.not-ready:hover {
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Login Screen */
.login-form {
  margin-bottom: 30px;
}

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

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.connection-status {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
}

.connection-status.connected {
  color: #28a745;
}

.connection-status.disconnected {
  color: #dc3545;
}

/* Player Info */
.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(74, 144, 226, 0.1);
  padding: 10px 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Lobby Controls */
.lobby-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.lobby-controls button {
  flex: 1;
  min-width: 150px;
}

/* Lobbies List */
.lobbies-container {
  max-height: 400px;
  overflow-y: auto;
}

.lobbies-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lobby-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lobby-item:hover {
  border-color: #4a90e2;
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lobby-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.lobby-name {
  font-weight: 700;
  color: #333;
  font-size: 1.1rem;
}

.lobby-status {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lobby-status.waiting {
  background: #d4edda;
  color: #155724;
}

.lobby-status.playing {
  background: #fff3cd;
  color: #856404;
}

.lobby-status.full {
  background: #f8d7da;
  color: #721c24;
}

.lobby-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}

.lobby-players {
  font-weight: 600;
}

.lobby-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lobby-seviye {
  background: #4a90e2;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lobby-dil {
  font-size: 1.1rem;
}

.no-lobbies {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 40px 20px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white !important;
  padding: 20px 25px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: white !important;
}

.modal-header * {
  color: white !important;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 20px 25px;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.setting-group {
  margin-bottom: 20px;
}

.setting-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.9rem;
}

.setting-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  color: #333;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
}

.setting-group select option {
  color: #333;
  background: white;
  padding: 10px;
}

.setting-group select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Lobby Screen */
.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.lobby-header-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lobby-header-buttons button {
  flex: 1;
  min-width: 120px;
  white-space: nowrap;
}

.lobby-title {
  font-size: 1.8rem;
  color: #4a90e2;
  margin-bottom: 5px;
}

.lobby-id {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .lobby-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .lobby-header-buttons {
    width: 100%;
  }
  
  .lobby-header-buttons button {
    flex: 1;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .lobby-header-buttons {
    flex-direction: column;
  }
  
  .lobby-header-buttons button {
    width: 100%;
  }
}

.game-settings {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
}

.setting-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.setting-item:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateY(-2px);
}

.setting-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.setting-value {
  font-weight: 700;
  color: #4a90e2;
  font-size: 0.85rem;
  line-height: 1;
}

/* Mobil uyumluluk */

/* Players Grid */
.players-container h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.player-card {
  background: white;
  border: 3px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.player-card.host {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fff9e6, #fffbf0);
}

.player-card.ready {
  border-color: #28a745;
  background: linear-gradient(135deg, #d4edda, #f0f9f0);
}

.player-card.current-player {
  border-color: #4a90e2;
  background: linear-gradient(135deg, #d4edff, #f0f8ff);
  animation: pulse 2s infinite;
}

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

.player-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 8px;
}

.player-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.player-status.host {
  background: #ffd700;
  color: #333;
}

.player-status.ready {
  background: #28a745;
  color: white;
}

.player-status.not-ready {
  background: #6c757d;
  color: white;
}

.player-score {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* Countdown */
.countdown {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 12px;
  color: white;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.countdown-text {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Game Screen */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.game-progress {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a90e2;
}

.game-scores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.game-controls button {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.score-item {
  background: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-container {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
}

.question-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.turkish-word {
  display: flex;
  align-items: center;
  gap: 10px;
}

.turkish-word .label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.turkish-word .word {
  font-size: 1.6rem;
  font-weight: 700;
  color: #d32f2f;
}

.timer-display {
  background: #28a745;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.timer-display.warning {
  background: #ffc107;
  color: #333;
}

.timer-display.danger {
  background: #dc3545;
  color: white;
  animation: timerPulse 0.5s infinite;
}

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

.turn-info {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border-radius: 12px;
}

.current-player {
  font-weight: 700;
  text-decoration: underline;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.answer-option {
  background: #ffffff;
  border: 3px solid #4a90e2;
  border-radius: 12px;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.answer-option:hover:not(:disabled) {
  border-color: #357abd;
  background: #e3f2fd;
  color: #1a237e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.answer-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  color: #555;
  background: #f5f5f5;
}

.answer-option.selected {
  border-color: #4a90e2;
  background: #4a90e2;
  color: white;
}

.waiting-message {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  font-weight: 600;
  padding: 20px;
  background: #fff3cd;
  border-radius: 12px;
  border: 2px solid #ffeaa7;
}

/* Results Screen */
.results-header {
  text-align: center;
  margin-bottom: 25px;
}

.results-header h2 {
  color: #4a90e2;
  font-size: 2rem;
  margin-bottom: 15px;
}

.correct-answer {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.correct-answer span {
  font-weight: 700;
  text-decoration: underline;
}

.player-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
}

.result-item.correct {
  background: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
}

.result-item.incorrect {
  background: #f8d7da;
  border: 2px solid #dc3545;
  color: #721c24;
}

.result-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-icon {
  font-size: 1.2rem;
}

.result-score {
  font-weight: 700;
  font-size: 1.1rem;
}

.next-question-timer {
  text-align: center;
  background: #fff3cd;
  border: 2px solid #ffeaa7;
  border-radius: 12px;
  padding: 20px;
  color: #856404;
}

.next-question-timer div:first-child {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Game End Screen */
.game-end-header {
  text-align: center;
  margin-bottom: 25px;
}

.game-end-header h1 {
  color: #4a90e2;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.winner-info {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  padding: 20px;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

.final-scores {
  margin-bottom: 25px;
}

.final-score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid transparent;
}

.final-score-item:first-child {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-color: #ffc107;
  color: #333;
}

.final-score-item:nth-child(2) {
  background: linear-gradient(135deg, #e9ecef, #f8f9fa);
  border-color: #c0c0c0;
}

.final-score-item:nth-child(3) {
  background: linear-gradient(135deg, #ffeaa7, #fff3cd);
  border-color: #cd853f;
}

.game-end-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.game-end-actions button {
  flex: 1;
  min-width: 150px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 20px;
    max-height: calc(100vh - 20px);
  }
  
  .game-title {
    font-size: 1.8rem;
  }
  
  .game-subtitle {
    font-size: 0.9rem;
  }
  
  .lobby-controls {
    flex-direction: column;
  }
  
  .lobby-controls button {
    width: 100%;
  }
  
  .players-grid {
    grid-template-columns: 1fr;
  }
  
  .game-header {
    flex-direction: column;
    text-align: center;
  }
  
  .question-box {
    flex-direction: column;
    text-align: center;
  }
  
  .answers-grid {
    grid-template-columns: 1fr;
  }
  
  .game-end-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .screen {
    padding: 10px;
  }
  
  .container {
    padding: 15px;
    margin: 5px;
  }
  
  .game-title {
    font-size: 1.6rem;
  }
  
  .turkish-word .word {
    font-size: 1.3rem;
  }
  
  .timer-display {
    font-size: 1rem;
    padding: 8px 12px;
  }
  
  .answer-option {
    padding: 15px;
    font-size: 1rem;
  }
  
  .countdown-number {
    font-size: 2.5rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding: 15px 20px;
  }
}

/* Chat Sistemi */
.chat-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  transition: all 0.3s ease;
  user-select: none;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.chat-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  max-width: 80%;
  word-wrap: break-word;
  animation: messageSlideIn 0.3s ease;
}

.chat-message.own {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-message.other {
  background: #e9ecef;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chat-message .sender {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 2px;
  opacity: 0.8;
}

.chat-input-container {
  display: flex;
  padding: 15px;
  gap: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.chat-input-container input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input-container input:focus {
  border-color: #4a90e2;
}

.chat-input-container button {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.chat-input-container button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* Chat Baloncukları - Emoji Bildirimleri */
.chat-bubbles {
  position: relative;
  width: 100%;
  min-height: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  pointer-events: none;
  overflow: hidden;
}

.chat-bubble {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: emojiBubblePop 3s ease-out forwards;
  max-width: 180px;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.chat-bubble .bubble-sender {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 700;
  white-space: nowrap;
}

.chat-bubble .bubble-message {
  font-size: 1.2rem;
}

/* Animasyonlar */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes emojiBubblePop {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  20% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
  }
  30% {
    transform: scale(0.95) translateY(0);
  }
  40% {
    transform: scale(1) translateY(0);
  }
  80% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
  }
}

@keyframes bubbleFloat {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.7) rotate(-5deg);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1.05) rotate(0deg);
  }
  20% {
    transform: translateY(-5px) scale(1) rotate(2deg);
  }
  25% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  80% {
    opacity: 1;
    transform: translateY(-60px) scale(1) rotate(0deg);
  }
  95% {
    opacity: 0.5;
    transform: translateY(-80px) scale(0.95) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0.8) rotate(5deg);
  }
}

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

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

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

.result-item {
  animation: slideIn 0.5s ease both;
}

.final-score-item {
  animation: fadeIn 0.5s ease both;
}

/* Mobile Chat Responsive */
@media (max-width: 768px) {
  .chat-container {
    top: 10px;
    right: 10px;
  }
  
  .chat-panel {
    width: 280px;
  }
  
  .chat-bubble {
    max-width: 150px;
    font-size: 0.8rem;
  }
}

/* ==================== SES VE ANİMASYONLAR ==================== */

/* Seviye Atlama Animasyonları */
@keyframes levelUpPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes levelUpSlide {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes levelUpFade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Başarım Animasyonları */
@keyframes achievementPop {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes achievementFadeOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

@keyframes starPop {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Confetti Animasyonu */
@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Pulse Animasyonu (XP Boost, Streak vb.) */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Shake Animasyonu (Yanlış Cevap) */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Bounce Animasyonu (Doğru Cevap) */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glow Animasyonu */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.8), 0 0 60px rgba(74, 144, 226, 0.6);
  }
}

/* Slide In Animasyonu */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Fade In Animasyonu */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scale In Animasyonu */
@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Doğru Cevap Butonu Animasyonu */
.answer-option.correct-answer {
  background: #28a745 !important;
  color: white !important;
  border-color: #1e7e34 !important;
  animation: bounce 0.5s ease, glow 1s ease infinite;
}

/* Yanlış Cevap Butonu Animasyonu */
.answer-option.wrong-answer {
  background: #dc3545 !important;
  color: white !important;
  border-color: #c82333 !important;
  animation: shake 0.5s ease;
}

/* Aktif Power-up Animasyonu */
.powerup-active {
  animation: pulse 2s ease-in-out infinite;
}

/* Streak Container Animasyonu */
#streakContainer {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
  }
}

/* ==================== COMBO SİSTEMİ ==================== */

@keyframes comboPop {
  0% {
    transform: scale(0) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes comboGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 40px rgba(255, 107, 107, 0.6);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 107, 107, 1), 0 0 60px rgba(255, 107, 107, 0.8), 0 0 80px rgba(255, 107, 107, 0.6);
  }
}

#comboContainer {
  animation: comboPop 0.6s ease-out;
}

#comboContainer div:first-child {
  animation: comboGlow 1s ease-in-out infinite;
}

/* Oyun ekranında combo göstergesi */
.combo-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  z-index: 1000;
  display: none;
  animation: comboGlow 2s ease-in-out infinite;
}

.combo-indicator.active {
  display: block;
}

.combo-indicator .combo-count {
  font-size: 1.5rem;
  margin-right: 5px;
}

.combo-indicator .combo-multiplier {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-left: 8px;
} 