/**
 * @file
 * FlowDrop Page Header Component Styles
 *
 * Header with logo, title, and actions.
 */

.fd-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--fd-header-padding-y) var(--fd-header-padding-x);
  border-block-end: var(--fd-border-width) solid var(--fd-header-border);
  background-color: var(--fd-header-bg);
  box-shadow: var(--fd-header-shadow);
  gap: var(--fd-space-6);
}

/* Start section - Logo and title */
.fd-page-header__start {
  display: flex;
  align-items: center;
  gap: var(--fd-space-4);
}

/* Logo */
.fd-page-header__logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: transform var(--fd-transition-fast);
}

.fd-page-header__logo:hover {
  transform: scale(1.05);
}

.fd-page-header__logo-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--fd-radius-md);
}

/* Page title */
.fd-page-header__page-title {
  margin: 0;
  color: var(--fd-foreground);
  font-size: var(--fd-text-2xl);
  font-weight: var(--fd-font-weight-bold);
  line-height: 1.2;
}

/* End section - Actions */
.fd-page-header__end {
  display: flex;
  align-items: center;
  gap: var(--fd-space-3);
}

.fd-page-header__primary-action {
  display: inline-flex;
  align-items: center;
  padding: var(--fd-button-padding-y) var(--fd-button-padding-x);
  cursor: pointer;
  transition: background-color var(--fd-transition-fast);
  text-decoration: none;
  color: var(--fd-button-primary-text);
  border: none;
  border-radius: var(--fd-button-radius);
  background-color: var(--fd-button-primary-bg);
  font-size: var(--fd-button-font-size);
  font-weight: var(--fd-button-font-weight);
  gap: var(--fd-space-2);
}

.fd-page-header__primary-action:hover {
  text-decoration: none;
  background-color: var(--fd-button-primary-bg-hover);
}

.fd-page-header__primary-action:active {
  background-color: var(--fd-button-primary-bg-active);
}

.fd-page-header__primary-action svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .fd-page-header {
    flex-wrap: wrap;
    gap: var(--fd-space-3);
    padding: var(--fd-space-3) var(--fd-space-4);
  }

  .fd-page-header__logo-img {
    width: 2rem;
    height: 2rem;
  }

  .fd-page-header__page-title {
    font-size: var(--fd-text-xl);
  }
}
