/* Flash Profile Web App Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #FFD21F 0%, #FF8C00 30%, #FFA500 70%, #FFD700 100%);
  min-height: 100vh;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Container */
.container {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header */
.header {
  margin-bottom: 30px;
}

.app-logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF8C00 0%, #FFD21F 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.app-logo-image {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(255, 210, 31, 0.3));
}

.app-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Profile Section */
.profile-content {
  margin-bottom: 30px;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 4px solid rgba(255, 210, 31, 0.3);
}

.default-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD21F 0%, #FF8C00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 3rem;
  color: white;
}

.display-name {
  font-size: 1.5rem;
  font-weight: 700;
  /* color: #333; */
  margin-bottom: 5px;
  color: #fff;
}

.username {
  color: #FF8C00;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.app-message {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Buttons */
.button-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn: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: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #FFD21F 0%, #FF8C00 100%);
  color: white;
  transform: translateY(0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 210, 31, 0.4);
}

.btn-secondary {
  background: rgba(255, 210, 31, 0.1);
  color: #FF8C00;
  border: 2px solid rgba(255, 210, 31, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 210, 31, 0.2);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-text {
  color: #999;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Error and Info Pages */
.error-container {
  text-align: center;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.error-message {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 210, 31, 0.3);
  border-radius: 50%;
  border-top-color: #FFD21F;
  animation: spin 1s ease-in-out infinite;
  margin: 20px auto;
}

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

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    margin: 10px;
    padding: 30px 20px;
  }
  
  .app-logo {
    font-size: 1.8rem;
  }
  
  .profile-image,
  .default-avatar {
    width: 80px;
    height: 80px;
  }
  
  .default-avatar {
    font-size: 2.5rem;
  }
  
  .display-name {
    font-size: 1.3rem;
  }
  
  .username {
    font-size: 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .container {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .display-name,
  .error-title {
    color: #fff;
  }
  
  .app-message,
  .error-message {
    color: #ccc;
  }
  
  .footer-text {
    color: #888;
  }
  
  .footer {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}
