/* Mission Control Header Styles
 *
 * This file provides custom CSS for the shared header component used across all pages.
 * We use custom CSS instead of Tailwind because:
 * 1. The Mission Control gem doesn't load Tailwind CSS
 * 2. Ensures consistent styling across all layouts (home, devise, admin, mission control)
 * 3. Avoids CSS dependency issues and 404 errors
 *
 * The header partial (app/views/shared/_header.html.erb) uses these classes.
 */

.mc-custom-header {
  background-color: #000;
  border-bottom: 6px solid #fff;
  color: #fff;
  padding: 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mc-custom-header .header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mc-custom-header .header-container {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
}

.mc-custom-header .header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .mc-custom-header .header-left {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    width: auto;
  }
}

.mc-custom-header .header-title-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.mc-custom-header .header-title-link {
  text-decoration: none;
  text-transform: uppercase;
}

.mc-custom-header .header-title {
  font-size: 1.25rem;
  line-height: 1.25rem;
  font-weight: bold;
  margin: 0;
  padding-top: 10px;
  color: #fff;
}

.mc-custom-header .header-title-logo-wrapper {
  height: 65px;
  position: relative;
}

.mc-custom-header .header-title-logo {
  background-color: #000;
  height: 100%;
  display: block;
  transform: translateY(12px);
  z-index: 1;
}

.mc-custom-header .header-title-logo-wrapper:before {
  background-color: white;
  bottom: -12px;
  content: '';
  display: block;
  height: 6px;
  left: -2px;
  position: absolute;
  width: 6px;
  z-index: 2;
}


.mc-custom-header .header-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.mc-custom-header .nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 2.5rem 0.75rem 0.5rem 0.75rem;
  transition: background-color 0.2s;
}

.mc-custom-header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

@media (min-width: 768px) {
  .mc-custom-header .header-right {
    width: auto;
    justify-content: flex-start;
  }
}

.mc-custom-header .user-email {
  font-size: 0.875rem;
  color: #fff;
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.15);
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .mc-custom-header .user-email {
    flex: none;
    text-align: left;
  }
}

.mc-custom-header .signout-btn {
  color: #fff;
  border: 3px solid #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
  min-height: 43px;
}

.mc-custom-header .signout-btn:hover {
  background-color: #e5e5e5;
}

.mc-custom-header .signout-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}
