/* Cloud Save Styling */

/* Cloud Status Indicator */
.cloud-status-container {
  margin: 10px 0;
  display: flex;
  justify-content: center;
}

.cloud-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: 'Exo 2', sans-serif;
}

.cloud-status.offline {
  background: linear-gradient(135deg, #666, #888);
  color: #fff;
  border-color: #555;
}

.cloud-status.connecting {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
  color: #fff;
  border-color: #ff7700;
  animation: pulse 1.5s infinite;
}

.cloud-status.online {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
  border-color: #3d8b40;
}

.cloud-status.saving {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: #fff;
  border-color: #1565C0;
  animation: pulse 1s infinite;
}

.cloud-status.error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: #fff;
  border-color: #c62828;
  animation: shake 0.5s ease-in-out;
}

/* Cloud Save Buttons */
.cloud-save-buttons {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-btn.cloud-btn {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 226, 255, 0.1) 30%, 
    rgba(0, 226, 255, 0.15) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  border: 2px solid rgba(0, 226, 255, 0.5);
  color: #00e2ff;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(0, 226, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 226, 255, 0.2), inset 0 0 10px rgba(0, 226, 255, 0.05);
}

/* Hover effects removed for mobile-first design */

.menu-btn.cloud-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 15px rgba(0, 226, 255, 0.2);
}

.menu-btn.cloud-btn:disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  border-color: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Disabled hover effects removed for mobile-first design */

.menu-btn.cloud-btn.linked {
  background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
  border-color: #2e7d32;
  cursor: default;
}

.menu-btn.cloud-btn.danger {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  border-color: #c62828;
}

/* Cloud Notification */
.cloud-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: 'Exo 2', sans-serif;
}

.cloud-notification.show {
  transform: translateX(0);
}

.cloud-notification.success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border-left: 4px solid #2e7d32;
}

.cloud-notification.error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border-left: 4px solid #c62828;
}

.cloud-notification.info {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  border-left: 4px solid #1565C0;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .cloud-save-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .menu-btn.cloud-btn {
    width: 200px;
    margin: 5px 0;
  }
  
  .cloud-notification {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .cloud-notification.show {
    transform: translateY(0);
  }
  
  .cloud-status {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 100px;
  }
}

/* Integration with existing menu styling */
.menu-btn.cloud-btn {
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 180px;
}

/* Loading state for buttons */
.menu-btn.cloud-btn.loading {
  position: relative;
  color: transparent;
}

.menu-btn.cloud-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Simple modal styling for account link */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 226, 255, 0.15) 30%, 
    rgba(0, 226, 255, 0.2) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  color: #fff;
  border: 2px solid rgba(0, 226, 255, 0.5);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 226, 255, 0.3), inset 0 0 10px rgba(0, 226, 255, 0.05);
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

#conflict-msg {
  white-space: pre-line;
}

.settings-btn.danger {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(244, 67, 54, 0.15) 30%, rgba(244, 67, 54, 0.2) 70%, rgba(0, 0, 0, 0.7) 100%);
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.6);
  text-shadow: 0 0 10px rgba(244, 67, 54, 0.8);
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

.settings-btn.linked {
  background: linear-gradient(135deg, #38a169 0%, #276749 100%);
  border-color: #2f855a;
}

/* Galaxy-themed Settings Panel */
.settings-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  box-sizing: border-box;
  gap: 20px;
}

.settings-section {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 226, 255, 0.05) 30%, 
    rgba(0, 226, 255, 0.08) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  border: 2px solid rgba(0, 226, 255, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 0;
  box-shadow: 0 0 20px rgba(0, 226, 255, 0.1), inset 0 0 10px rgba(0, 226, 255, 0.05);
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: fit-content;
  flex-shrink: 0;
}

.settings-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 226, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.settings-section h3 {
  color: #00e2ff;
  font-family: 'Audiowide', cursive;
  font-size: 24px;
  margin: 0 0 20px 0;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 226, 255, 0.8);
  position: relative;
  z-index: 1;
}

/* Leisure Mode section heading - green theme */
.leisure-mode-section h3 {
  color: #4caf50;
  text-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
}

.settings-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Primary Settings Button */
.settings-btn {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 226, 255, 0.1) 30%, 
    rgba(0, 226, 255, 0.15) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  border: 2px solid rgba(0, 226, 255, 0.5);
  color: #00e2ff;
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 220px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(0, 226, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 226, 255, 0.2), inset 0 0 10px rgba(0, 226, 255, 0.05);
}

.settings-btn::before {
  /* Removed hover animation for mobile */
  display: none;
}

/* Settings button hover effects removed for mobile-first design */

.settings-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 15px rgba(0, 226, 255, 0.2);
}

.settings-btn:disabled {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  border-color: #2d3748;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .settings-section { padding: 20px 15px; }
  .settings-btn { min-width: 180px; font-size: 14px; padding: 10px 20px; }
  
  /* Ensure settings content is fully visible */
  .settings-content {
    padding-bottom: 20px;
  }
  
  .settings-section {
    /* Ensure each section has enough space */
    min-height: 180px;
  }
  
  /* Ensure buttons container has proper height */
  .settings-buttons {
    min-height: auto;
    padding-bottom: 10px;
  }
}

/* 16:9 Mobile (common aspect ratio) */
@media (max-width: 667px) and (min-aspect-ratio: 16/9) {
  .settings-content {
    padding: 15px 10px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .settings-section {
    padding: 20px 12px;
    margin-bottom: 15px;
    min-height: auto;
    flex-shrink: 0;
  }
  
  .settings-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .settings-buttons {
    gap: 12px;
    min-height: auto;
  }
  
  .settings-btn {
    min-width: 160px;
    font-size: 13px;
    padding: 10px 16px;
  }
  
  .volume-control {
    padding: 8px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: visible;
  }
  
  .volume-control label {
    font-size: 0.85em;
    min-width: 45px;
  }
  
  #volume-display {
    font-size: 0.85em;
    min-width: 35px;
  }
}

/* Responsive design for conflict modal */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    padding: 15px;
  }
  
  /* Stack the comparison cards vertically on mobile */
  #conflict-msg div[style*="grid-template-columns"] {
    display: block !important;
  }
  
  #conflict-msg div[style*="grid-template-columns"] > div {
    margin-bottom: 15px !important;
  }
}

/* Modal input fields */
.modal input[type="email"],
.modal input[type="password"],
.modal input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: white;
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.modal input[type="email"]:focus,
.modal input[type="password"]:focus,
.modal input[type="text"]:focus {
  outline: none;
  border-color: rgba(0, 226, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 226, 255, 0.5);
}

.modal input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Modal buttons */
.modal button {
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Modal close button */
.modal .close {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Account info display panels */
.account-info-panel {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 226, 255, 0.05) 30%, 
    rgba(0, 226, 255, 0.08) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  border: 2px solid rgba(0, 226, 255, 0.3);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 15px rgba(0, 226, 255, 0.1);
}

.account-info-panel .label {
  color: rgba(0, 226, 255, 0.8);
  font-size: 14px;
  margin-bottom: 5px;
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.account-info-panel .value {
  color: #00e2ff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(0, 226, 255, 0.6);
  font-family: 'Audiowide', cursive;
}

/* Stats display panels */
.stats-panel {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 226, 255, 0.05) 30%, 
    rgba(0, 226, 255, 0.08) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  border: 2px solid rgba(0, 226, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 226, 255, 0.1), inset 0 0 10px rgba(0, 226, 255, 0.05);
}

.stats-panel h4 {
  color: #00e2ff;
  font-size: 20px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 226, 255, 0.8);
  font-family: 'Audiowide', cursive;
}

.stats-panel .stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 226, 255, 0.1);
}

.stats-panel .stat-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.stats-panel .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stats-panel .stat-value {
  color: #00e2ff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0, 226, 255, 0.5);
  font-family: 'Audiowide', cursive;
}

.settings-btn.danger:active {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(244, 67, 54, 0.25) 30%, rgba(244, 67, 54, 0.3) 70%, rgba(0, 0, 0, 0.7) 100%);
  box-shadow: 0 0 25px rgba(244, 67, 54, 0.5);
}

/* Leaderboard Category Buttons */
.lb-cat-btn {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(255, 193, 7, 0.1) 30%, 
    rgba(255, 193, 7, 0.15) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  border: 2px solid rgba(255, 193, 7, 0.4);
  color: #ffc107;
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
  text-align: center;
  white-space: nowrap;
}

.lb-cat-btn:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(255, 193, 7, 0.2) 30%, 
    rgba(255, 193, 7, 0.25) 70%, 
    rgba(0, 0, 0, 0.7) 100%);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

/* Leaderboard List Content */
#leaderboard-list {
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#leaderboard-list * {
  font-family: 'Audiowide', 'Orbitron', 'Segoe UI', Arial, sans-serif !important;
} 