/* Haitian Corner Bottom Navigation — v1 */

:root{
  --hc-nav-blue:#075fd1;
  --hc-nav-navy:#08244b;
  --hc-nav-red:#d7193f;
  --hc-nav-muted:#78869b;
  --hc-nav-surface:rgba(255,255,255,.97);
}

/* Primary navigation shell */
.tab-bar.hc-bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:900;

  width:100%;
  max-width:none;
  min-height:70px;

  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:end;

  margin:0;
  padding:
    8px 7px
    calc(7px + env(safe-area-inset-bottom,0px));

  box-sizing:border-box;
  border-top:1px solid rgba(12,42,81,.09);
  background:var(--hc-nav-surface);

  box-shadow:
    0 -9px 30px rgba(8,31,69,.10);

  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);

  transition:
    transform .25s cubic-bezier(.22,.78,.28,1),
    box-shadow .2s ease;

  will-change:transform;
}

/* Shared tab */
.tab-bar.hc-bottom-nav .tab-item{
  position:relative;
  min-width:0;
  min-height:54px;

  padding:4px 2px;
  border:0;
  border-radius:18px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:4px;

  color:var(--hc-nav-muted);
  background:transparent;

  font:inherit;
  cursor:pointer;
  touch-action:manipulation;

  -webkit-tap-highlight-color:transparent;
  transition:
    color .18s ease,
    background .18s ease,
    transform .16s ease;
}

.tab-bar.hc-bottom-nav .tab-item:active{
  transform:scale(.94);
}

.tab-bar.hc-bottom-nav .hc-nav-icon{
  position:relative;

  width:35px;
  height:30px;

  display:grid;
  place-items:center;

  border-radius:15px;
  font-size:20px;
  line-height:1;

  transition:
    width .18s ease,
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.tab-bar.hc-bottom-nav .hc-nav-label{
  max-width:100%;
  overflow:hidden;
  color:inherit;
  font-size:10px;
  line-height:1.1;
  font-weight:750;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* Standard active destination */
.tab-bar.hc-bottom-nav .tab-item.active{
  color:var(--hc-nav-blue);
}

.tab-bar.hc-bottom-nav
  .tab-item.active:not(.hc-nav-discover)
  .hc-nav-icon{
  width:50px;
  color:var(--hc-nav-blue);
  background:#e8f1ff;
}

/* Center Discover action */
.tab-bar.hc-bottom-nav .hc-nav-discover{
  justify-content:flex-end;
}

.tab-bar.hc-bottom-nav .hc-nav-discover-icon{
  width:50px;
  height:50px;
  margin-top:-17px;

  color:#fff;
  border:4px solid #fff;
  border-radius:50%;

  font-size:20px;
  background:
    linear-gradient(
      135deg,
      var(--hc-nav-blue) 0%,
      #075fd1 48%,
      var(--hc-nav-red) 100%
    );

  box-shadow:
    0 8px 21px rgba(7,95,209,.25),
    0 4px 12px rgba(215,25,63,.16);
}

.tab-bar.hc-bottom-nav
  .hc-nav-discover:active
  .hc-nav-discover-icon{
  transform:scale(.92);
}

.tab-bar.hc-bottom-nav
  .hc-nav-discover.active{
  color:var(--hc-nav-blue);
}

.tab-bar.hc-bottom-nav
  .hc-nav-discover.active
  .hc-nav-discover-icon{
  box-shadow:
    0 9px 25px rgba(7,95,209,.34),
    0 0 0 3px rgba(7,95,209,.10);
}

/* Message unread badge */
.tab-bar.hc-bottom-nav .hc-nav-badge{
  position:absolute;
  top:-4px;
  right:-6px;

  min-width:18px;
  height:18px;
  padding:0 5px;

  box-sizing:border-box;
  border:2px solid #fff;
  border-radius:999px;

  align-items:center;
  justify-content:center;

  color:#fff;
  background:var(--hc-nav-red);

  font-size:9px;
  line-height:14px;
  font-weight:900;
  text-align:center;
}

/* Screens retain enough room above the safe-area navigation. */
#app > .screen:not(#discover):not(#hcReelsScreen){
  padding-bottom:
    calc(82px + env(safe-area-inset-bottom,0px));
}

/* Compact phones */
@media(max-width:365px){
  .tab-bar.hc-bottom-nav{
    padding-left:2px;
    padding-right:2px;
  }

  .tab-bar.hc-bottom-nav .hc-nav-label{
    font-size:9px;
  }

  .tab-bar.hc-bottom-nav .hc-nav-discover-icon{
    width:47px;
    height:47px;
  }
}

/* Drawer identity is now a profile link. */
#hcDrawer .hc-drawer-user-row{
  cursor:pointer;
  border-radius:16px;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

#hcDrawer .hc-drawer-user-row:active{
  opacity:.84;
}


/* Taller application navigation — v2 */
.tab-bar.hc-bottom-nav{
  min-height:82px;
  padding:
    11px 7px
    calc(10px + env(safe-area-inset-bottom,0px));
}

.tab-bar.hc-bottom-nav .tab-item{
  min-height:61px;
  padding:5px 2px;
  gap:5px;
}

.tab-bar.hc-bottom-nav .hc-nav-icon{
  width:39px;
  height:34px;
  font-size:23px;
}

.tab-bar.hc-bottom-nav
  .tab-item.active:not(.hc-nav-discover)
  .hc-nav-icon{
  width:53px;
}

.tab-bar.hc-bottom-nav .hc-nav-label{
  font-size:11px;
  line-height:1.15;
}

.tab-bar.hc-bottom-nav .hc-nav-discover-icon{
  width:54px;
  height:54px;
  margin-top:-19px;
  font-size:22px;
}

#app > .screen:not(#discover):not(#hcReelsScreen){
  padding-bottom:
    calc(96px + env(safe-area-inset-bottom,0px));
}

@media(max-width:365px){
  .tab-bar.hc-bottom-nav .hc-nav-label{
    font-size:10px;
  }

  .tab-bar.hc-bottom-nav .hc-nav-discover-icon{
    width:51px;
    height:51px;
  }
}
