/* Modern Header Styles */

.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo {
  width: 100px;
  height: 100px;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.site-tagline {
  font-size: 0.9em;
  opacity: 0.9;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.header-actions {
  position: relative;
}

.login-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 15px 30px !important;
  border-radius: 35px;
  font-size: 1.4em !important;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 100px !important;
  min-height: 45px !important;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
}

/* Login Dropdown */
.login-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 20px;
  min-width: 300px;
  z-index: 1001;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.login-dropdown.hidden {
  display: none;
}

.login-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

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

.login-tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 15px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: white;
  border-bottom-color: white;
}

.tab-btn:hover:not(.active) {
  color: #333;
  background: #e9ecef;
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-content.hidden {
  display: none;
}

.login-input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.2s ease;
}

.login-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-submit {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9em;
  text-align: center;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #5a6fd8;
  text-decoration: underline;
}

.guest-option {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  margin-top: 10px;
}

.guest-btn {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guest-btn:hover {
  background: #e9ecef;
  border-color: #ccc;
  color: #333;
}

/* User info display for authenticated users */
.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Debug styles to ensure visibility */
  position: relative;
  z-index: 1000;
  min-height: 50px;
  /* Ensure container can expand to fit contents */
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 200px;
}

.user-name {
  color: white;
  font-size: 1.1em;
  font-weight: 500;
  /* Prevent username from taking all available space */
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-btn,
.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  /* Debug styles to make button more visible */
  position: relative;
  z-index: 9999;
  min-width: 80px;
  min-height: 40px;
  display: inline-block !important;
  visibility: visible !important;
  /* Prevent button from shrinking */
  flex-shrink: 0;
  white-space: nowrap;
  /* Removed debug red background - button now visible with layout fixes */
}

.profile-btn:hover,
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.profile-btn:active,
.logout-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 10px 15px;
  }

  .site-title {
    font-size: 1.5em;
  }

  .site-tagline {
    font-size: 0.9em;
  }

  .login-dropdown {
    min-width: 280px;
    right: -10px;
  }
}

@media (max-width: 480px) {
  .logo-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-title {
    font-size: 1.3em;
  }

  .site-tagline {
    font-size: 0.8em;
  }

  .login-dropdown {
    min-width: 260px;
    right: -20px;
  }
}