/**
 * Authentication UI Styles
 * Google Sign-In button and user profile
 */

/* Google Sign-In Button */
.google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Roboto', 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.google-login-btn:hover {
  background: #f8f8f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-login-btn:active {
  background: #eee;
}

.google-login-btn svg {
  flex-shrink: 0;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1db954;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.logout-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.logout-btn:hover {
  color: #1db954;
}

/* Auth Container - Header Style */
.auth-container {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-container .user-profile {
  background: rgba(26, 26, 26, 0.95);
  padding: 8px 16px;
  border-radius: 25px;
  border: 1px solid #333;
}

.auth-container .google-login-btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* Auth Page Container (full page) */
.auth-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  padding: 40px;
}

.auth-page-container h2 {
  color: #fff;
  margin-bottom: 20px;
}

.auth-page-container p {
  color: #888;
  margin-bottom: 30px;
  max-width: 400px;
}

/* Auth Required Overlay */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-modal {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 1px solid #333;
}

.auth-modal h2 {
  color: #fff;
  margin-bottom: 16px;
}

.auth-modal p {
  color: #888;
  margin-bottom: 24px;
}

/* Error Message */
.auth-error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Loading State */
.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #888;
}

.auth-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  border-top-color: #1db954;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Mobile Adjustments */
@media (max-width: 600px) {
  .user-profile {
    flex-direction: column;
    text-align: center;
  }

  .user-info {
    align-items: center;
  }

  .google-login-btn {
    width: 100%;
    justify-content: center;
  }
}
