/* Header - Specifys.ai */
/* Based on about.html page */

.thematic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-header);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

/* Header sections */
.header-left {
  display: flex;
  align-items: center;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.header-center .logo {
  pointer-events: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  width: 100%;
}

/* Logo styles - Specifys.AI */
.logo a,
.logo-text {
  font-size: 1.2rem !important;
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

/* Orange dot in logo */
.logo-dot {
  color: #FF6B35;
}

.logo a:hover {
  color: #444;
}

.logo a:hover .logo-dot {
  color: #FF8551;
}

/* Auth System Styles */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: var(--z-modal);
  order: 1; /* User info on the left */
  margin-right: auto;
}

.auth-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-normal);
  cursor: pointer;
  background: transparent;
  color: #666;
  font-family: var(--font-family-primary);
}

.auth-btn:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.auth-btn.primary {
  background: var(--primary-color);
  color: var(--text-white);
}

.auth-btn.primary:hover {
  background: var(--button-hover);
}

/* User Info & Dropdown */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(102, 102, 102, 0.1);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.user-info:hover {
  background: rgba(102, 102, 102, 0.2);
  transform: translateY(-2px);
}

.user-info span {
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
}

.user-avatar {
  width: 24px;
  height: 24px;
  background: #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
}

.logo-text {
  font-size: 1.2rem !important;
  font-weight: var(--font-weight-bold);
}

/* Credits Display - Orange badge style like PRO badge */
.credits-display {
  display: flex;
  align-items: center;
  order: 2; /* Always on the right */
  margin-left: auto;
}

.credits-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: #FF6B35;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-width: 50px;
  text-align: center;
  letter-spacing: 0.5px;
}

.credits-container:hover {
  background: #FF8551;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.credits-container i {
  display: none; /* Hide icon */
}

.credits-container span {
  font-weight: 600;
  color: white;
  text-transform: none;
  letter-spacing: 0.5px;
  min-width: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .thematic-header {
    padding: 8px 12px !important;
    height: 56px;
  }
  
  .logo a {
    font-size: 1.1rem !important;
  }
  
  .logo-text {
    font-size: 1.1rem !important;
  }
  
  .header-right {
    gap: 0.5rem;
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
  }
  
  .header-center {
    order: 1;
  }
  
  .auth-buttons {
    gap: 0.5rem;
    order: 1;
    margin-right: auto;
  }
  
  .auth-btn {
    padding: 8px 12px;
    font-size: 16px;
    min-height: 44px;
  }
  
  .user-info {
    padding: 6px 10px;
    font-size: 14px;
    min-height: 36px;
  }
  
  .user-info span {
    display: inline;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .credits-display {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }
  
  .credits-container {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .thematic-header {
    padding: 8px 8px !important;
    height: 56px;
  }
  
  .logo a {
    font-size: 1rem !important;
  }
  
  .logo-text {
    font-size: 1rem !important;
  }
  
  .header-right {
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
  }
  
  .auth-buttons {
    order: 1;
    margin-right: auto;
  }
  
  .user-info {
    padding: 5px 8px;
    font-size: 13px;
  }
  
  .user-info span {
    display: inline;
  }
  
  .user-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }
  
  .auth-btn {
    padding: 8px 10px;
    font-size: 16px;
  }
  
  .credits-display {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }
  
  .credits-container {
    padding: 5px 8px;
    font-size: 10px;
    min-height: 32px;
  }
}
