<template>
  <div>
    <div class="option">
      <div class="option-item"></div>
      <div class="option-item"></div>
    </div>

    <div class="header">
      <div class="header-logo"></div>
      <div class="header-search">
        <div class="header-search-button">
          <div class="header-search-button-text"></div>
        </div>
      </div>
      <div class="header-item">
        <div class="header-item-icon header-item-ref"></div>
        <div class="header-item-text header-item-ref large"></div>
      </div>
      <div class="header-item">
        <div class="header-item-icon header-item-ref"></div>
        <div class="header-item-text header-item-ref"></div>
      </div>
      <div class="header-item">
        <div class="header-item-icon header-item-ref"></div>
        <div class="header-item-text header-item-ref"></div>
      </div>
    </div>

    <div class="nav">
      <div class="nav-container">
        <div v-for="item in [1, 2, 3, 4, 5, 6]" :key="item" class="nav-item">
          <div class="nav-item-text"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
};
</script>

<style scoped>
.option {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  padding: 6px 10%;
  background-color: var(--option-background-color);
  border-top: 2px solid var(--option-border-top-color);
  border-bottom: 2px solid var(--option-border-bottom-color);
}
.option-item {
  width: 80px;
  height: 8px;
  cursor: pointer;
  background-color: var(--option-text-color);
}
.option-item:hover {
  background-color: var(--option-text-hover-color);
}

.header {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  padding: 24px 10%;
  background-color: var(--header-background-color);
  border-bottom: 2px solid var(--header-border-bottom-color);
}
.header-logo {
  width: 80px;
  height: 32px;
  background-color: #555;
  margin-right: 16px;
}
.header-search {
  flex: 1;
  height: 32px;
  border: 2px solid #ccc;
  background-color: #fff;
  position: relative;
}
.header-search-button {
  width: 24px;
  height: 24px;
  padding: 6px;
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--header-search-background-color);
}
.header-search-button-text {
  width: 12px;
  height: 12px;
  border-radius: 12px;
  background-color: var(--header-search-text-color);
}
.header-item {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  margin-left: 16px;
  cursor: pointer;
}
.header-item:hover .header-item-icon,
.header-item:hover .header-item-text {
  background-color: var(--header-text-hover-color);
}
.header-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 32px;
  background-color: var(--header-text-color);
  margin-right: 4px;
}
.header-item-text {
  width: 8px;
  height: 8px;
  background-color: var(--header-text-color);
}
.header-item-text.large {
  width: 64px;
}

.nav {
  padding: 0 10%;
  background-color: var(--nav-background-color);
}
.nav-container {
  display: flex;
  flex-flow: row nowrap;
  border-left: 2px solid var(--nav-side-border-color);
}
.nav-item {
  flex: 1;
  padding: 12px;
  cursor: pointer;
  background-color: var(--nav-center-background-color);
  border-right: 2px solid var(--nav-side-border-color);
}
.nav-item:hover {
  background-color: var(--nav-background-hover-color);
}
.nav-item:hover .nav-item-text {
  background-color: var(--nav-text-hover-color);
}
.nav-item-text {
  widows: 100%;
  height: 8px;
  background-color: var(--nav-text-color);
}
</style>
