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

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

/* 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;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  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;
  font-size: var(--fd-font-size-2xl);
  font-weight: var(--fd-font-weight-bold);
  color: var(--fd-color-gray-900);
  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;
  gap: var(--fd-space-2);
  padding: var(--fd-button-padding-y) var(--fd-button-padding-x);
  font-size: var(--fd-button-font-size);
  font-weight: var(--fd-button-font-weight);
  color: var(--fd-button-primary-text);
  background-color: var(--fd-button-primary-bg);
  border: none;
  border-radius: var(--fd-button-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--fd-transition-fast);
}

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

.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-font-size-xl);
  }
}
