/* Horror Trivia Game Styles */
:root {
  --accent-orange: #FF7518;
  --accent-red: #FF4444;
  --accent-green: #44FF44;
  --dark-bg: #000;
  --darker-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-light: #E0E0E0;
  --text-muted: #888;
}

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

body {
  background: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Alegreya', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.game-container {
  min-height: 100vh;
  position: relative;
}

/* Header */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 2px solid var(--accent-orange);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-button {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: 1px solid transparent;
}

.back-button:hover {
  background: var(--accent-orange);
  color: var(--dark-bg);
  transform: scale(1.05);
}

.score-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.score-value {
  color: var(--accent-orange);
  font-size: 1.5rem;
}

/* Account Menu */
.account-menu {
  position: relative;
}

.account-button {
  background: var(--accent-orange);
  color: var(--dark-bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.account-button:hover {
  background: #e55a2b;
  transform: scale(1.05);
}

.account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 2px solid var(--accent-orange);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #333;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--accent-orange);
  color: var(--dark-bg);
}

/* Screen Management */
.screen {
  display: none;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.screen.active {
  display: block;
}

/* Start Screen */
.start-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

.game-title {
  font-size: 4rem;
  font-weight: bold;
  color: var(--accent-orange);
  text-shadow: 0 0 20px rgba(255, 117, 24, 0.5);
  margin-bottom: 1rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(255, 117, 24, 0.5); }
  to { text-shadow: 0 0 30px rgba(255, 117, 24, 0.8), 0 0 40px rgba(255, 117, 24, 0.3); }
}

.game-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.game-rules {
  background: var(--card-bg);
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.game-rules h3 {
  color: var(--accent-orange);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

.game-rules li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.game-rules li::before {
  content: '🎃';
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.start-button {
  background: linear-gradient(135deg, var(--accent-orange), #FF8C42);
  color: var(--dark-bg);
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1.5rem 3rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.start-button:hover::before {
  left: 100%;
}

.start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 117, 24, 0.6);
}

.contest-button {
  background: linear-gradient(135deg, #FF4444, #cc0000);
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1.5rem 3rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contest-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 68, 68, 0.6);
}

.link-input {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  border: 2px solid var(--accent-orange);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

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

.error-message {
  color: var(--accent-red);
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.contest-info {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.contest-info h3 {
  color: var(--accent-red);
  margin-bottom: 1rem;
}

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

.contest-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 68, 68, 0.3);
}

.contest-info li:last-child {
  border-bottom: none;
}

/* Question Screen */
.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--accent-orange);
}

.question-counter {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-orange);
}

.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.timer-bar {
  width: 200px;
  height: 10px;
  background: var(--darker-bg);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--accent-orange);
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange), var(--accent-red));
  width: 100%;
  transition: width 1s linear;
}

.timer-text {
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent-orange);
}

.stop-button {
  background: linear-gradient(45deg, #ff4444, #cc0000);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.stop-button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

.question-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.question-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.question-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 117, 24, 0.3);
  transition: transform 0.3s ease;
}

.question-image:hover {
  transform: scale(1.02);
}

.question-text-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.question-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--accent-orange);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.option-button:hover {
  background: var(--accent-orange);
  color: var(--dark-bg);
  transform: translateX(10px);
}

.option-button.selected {
  background: var(--accent-orange);
  color: var(--dark-bg);
  transform: scale(1.02);
}

.option-button.correct {
  background: var(--accent-green);
  color: var(--dark-bg);
  border-color: var(--accent-green);
}

.option-button.incorrect {
  background: var(--accent-red);
  color: var(--dark-bg);
  border-color: var(--accent-red);
}

.option-letter {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-orange);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.option-button:hover .option-letter,
.option-button.selected .option-letter {
  background: var(--dark-bg);
  color: var(--accent-orange);
}

.option-text {
  flex: 1;
}

/* Answer Screen */
.answer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

.answer-result {
  margin-bottom: 3rem;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.result-icon.correct::before {
  content: '✅';
}

.result-icon.incorrect::before {
  content: '❌';
}

.result-text {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.result-text.correct {
  color: var(--accent-green);
}

.result-text.incorrect {
  color: var(--accent-red);
}

.answer-details {
  background: var(--card-bg);
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.answer-details > div {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.correct-answer {
  color: var(--accent-green);
  font-size: 1.2rem;
}

.explanation {
  color: var(--text-light);
  line-height: 1.6;
}

.score-earned {
  color: var(--accent-orange);
  font-size: 1.2rem;
  font-weight: bold;
}

.next-question-timer {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  animation: pulse 2s infinite;
}

.timer-text {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.timer-countdown {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-orange);
  text-shadow: 0 0 20px rgba(255, 117, 24, 0.5);
  animation: countdown-pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 117, 24, 0.3);
  }
  50% { 
    box-shadow: 0 0 30px rgba(255, 117, 24, 0.6);
  }
}

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

/* Game Over Screen */
.game-over-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

.game-over-title {
  font-size: 3rem;
  color: var(--accent-orange);
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(255, 117, 24, 0.5);
}

.final-score {
  background: var(--card-bg);
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.final-score h2 {
  font-size: 2rem;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.score-message {
  font-size: 1.2rem;
  color: var(--text-light);
}

.game-over-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.play-again-button,
.back-to-fun-button {
  background: linear-gradient(135deg, var(--accent-orange), #FF8C42);
  color: var(--dark-bg);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.play-again-button:hover,
.back-to-fun-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 117, 24, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .question-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .question-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timer-bar {
    width: 150px;
  }
  
  .game-title {
    font-size: 2.5rem;
  }
  
  .game-over-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .screen {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 2rem;
  }
  
  .question-text {
    font-size: 1.2rem;
  }
  
  .option-button {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}

/* Button Group */
.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.suggest-button {
  background: linear-gradient(135deg, #ff6600, #ff8c42);
  color: var(--dark-bg);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.suggest-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
}

/* Suggestion Form Styles */
.suggestion-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.suggestion-title {
  color: var(--accent-orange);
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.suggestion-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.suggestion-form {
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  padding: 30px;
  text-align: left;
}

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

.form-group label {
  display: block;
  color: var(--accent-orange);
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid var(--accent-orange);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff8c42;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-help {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 5px;
  font-style: italic;
}

.info-icon {
  color: var(--accent-orange);
  cursor: help;
  font-size: 1.2rem;
  margin-left: 5px;
}

.form-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.submit-button {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.submit-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.cancel-button {
  background: linear-gradient(135deg, #666, #555);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #777, #666);
}

/* Success Message */
.success-message {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4CAF50;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.success-message h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}

.success-message .credits-info {
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid var(--accent-orange);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.success-message .credits-info h4 {
  color: var(--accent-orange);
  margin-bottom: 10px;
}

.success-message .credits-info ul {
  text-align: left;
  margin: 0;
  padding-left: 20px;
}

.success-message .credits-info li {
  color: var(--text-light);
  margin-bottom: 5px;
}

/* Member Auth Styles */
.member-auth-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.member-auth-title {
  color: var(--accent-orange);
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.member-auth-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.member-benefits {
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  text-align: left;
}

.member-benefits h3 {
  color: var(--accent-orange);
  margin-bottom: 15px;
  text-align: center;
}

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

.member-benefits li {
  color: var(--text-light);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.member-benefits li::before {
  content: '🎃';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
}

.auth-form-container {
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid var(--accent-orange);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
}

.auth-form-container h3 {
  color: var(--accent-orange);
  margin-bottom: 20px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-button {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
}

.auth-footer p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Member Info Display */
.member-info-display {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4CAF50;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  text-align: center;
}

.member-info-display p {
  color: var(--text-light);
  margin: 5px 0;
}

.member-info-display strong {
  color: #4CAF50;
}

/* Image Upload Styles */
input[type="file"] {
  background: rgba(20, 20, 20, 0.8);
  border: 2px solid var(--accent-orange);
  border-radius: 8px;
  color: var(--text-light);
  padding: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

input[type="file"]:focus {
  outline: none;
  border-color: #ff8c42;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.image-preview {
  text-align: center;
  margin-top: 10px;
}

.image-preview img {
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
} 