/* 
   MAIN HEADER — fixed top
*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin-top: 0;
}

.indyo-logo:hover {
  transform: scale(1.05);
}

.indyo-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-left: 0;
}

/* ── HEADER RIGHT ── */
.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0;
}

/* 
   SEARCH BUTTON
*/
.searchbox {
  position: relative;
}

.search-btn {
  width: 90px;
  height: 35px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-btn:hover {
  color: #fff;
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.search-btn:active {
  transform: scale(0.96);
}

/* 
   SIGNIN BUTTON
*/
.signin-btn {
  background: transparent;
  color: rgb(255, 0, 0);
  padding: 8px 25px 10px;
  border-radius: 20px;
  border: 1px solid #262626;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  justify-content: center;
  
}

.signin-btn:hover {
  background: rgba(0, 0, 0, 0);
  color: #fff;
  border-color: #ffffffbc;
  transform: scale(1.03);
}

/* 
   CONNECT BUTTON
*/
.connect-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 6px 16px 6px 6px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
  cursor: pointer;
}

.connect-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.725);
  transform: scale(1.03);
}

.connect-btn:active {
  transform: scale(0.97);
}

.connect-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.connect-text {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.712);
  letter-spacing: 0.3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: color 0.2s ease;
}

.connect-btn:hover .connect-text {
  color: #ffffff;
}

/* 
   NAVBAR — DESKTOP (min-width: 769px)
   fixed top center, same row as header
*/
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  width: auto;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 9999;
}

.navbar::-webkit-scrollbar {
  display: none;
}

/* ── DESKTOP LINKS ── */
@media (min-width: 769px) {

  .navbar > div > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 16px;
    border-radius: 10px;
    gap: 0;
    overflow: hidden;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
  }

  .navbar > div > a i {
    font-size: 22px;
    flex-shrink: 0;
    transition: color 0.2s ease;
  }

  /* NAV LABEL — hidden by default */
  .navbar > div > a .nav-label {
    font-size: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: font-size 0.25s ease,
                max-width 0.25s ease,
                opacity   0.2s ease,
                margin    0.25s ease;
    margin-left: 0;
  }

  /* HEADER HOVER — sab labels slide in */
  .main-header:hover ~ .navbar .nav-label,
  .navbar:hover .nav-label {
    font-size: 14px;
    max-width: 90px;
    opacity: 1;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.85);
  }

  /* Individual hover */
  /* .navbar > div > a:hover {
    background: rgba(255, 255, 255, 0.07);
  } */

  .navbar .homes     a:hover { color: #ffffff; }
  .navbar .feeds     a:hover { color: #0000ff; }
  .navbar .explore   a:hover { color: #ffffff; }
  .navbar .videos    a:hover { color: #ffffff; }
  .navbar .favorites a:hover { color: #ff2d55; }
  .navbar .profiles  a:hover { color: #ffffff; }
  .navbar .nearme  a:hover { color: #ffffff; }
  .navbar .profiles  a:hover { color: #ffffff; }
  .navbar .posts    a:hover { color: #ffffff; }

  .navbar .feeds     a:hover .nav-label { color: #e6a910; }
  .navbar .explore   a:hover .nav-label { color: #e6a910; }
  .navbar .videos    a:hover .nav-label { color: #e6a910; }
  .navbar .favorites a:hover .nav-label { color: #ff2d55; }
  .navbar .homes     a:hover .nav-label { color: #ffffff; }
  .navbar .profiles  a:hover .nav-label { color: #ffffff; }
  .navbar .nearme  a:hover .nav-label { color: #ffffff; }
  /* Active */
  .navbar > div > a.active {
    color: #fff;
    border-bottom: 3px solid #ffffff;
    border-radius: 0;
  }

  .navbar > div > a::after {
    display: none;
  }
}

/* ── TABLET ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-header {
    padding: 0 20px;
  }

  .navbar > div > a {
    padding: 0 12px;
  }
}

/* 
   MOBILE (max-width: 768px)
   header top — navbar BOTTOM fixed
*/
@media (max-width: 768px) {

  /* Header — top, sirf logo + button */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    flex-wrap: nowrap;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    z-index: 9999;
  }

  /* NAVBAR — ekdum neeche fix */
  .navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;                          /* desktop top:0 override */
    transform: none;                    /* desktop translateX override */
    width: 100%;
    height: 56px;
    background: #000;
    border-top: 2px solid #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    gap: 0;
    z-index: 9999;
    box-sizing: border-box;
    overflow: visible;
  }

  .navbar > div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navbar > div > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: 0;
    font-size: 0;
    transition: all 0.15s ease;
  }

  .navbar > div > a i {
    font-size: 22px;
  }

  .navbar > div > a .nav-label {
    display: none;
  }

  /* Active */
  .navbar > div > a.active {
    color: #ffffff;
    border-top: 2px solid #ffffff;
    border-bottom: none;
    border-radius: 0;
  }

  /* Tap effect */
  .navbar > div > a:active {
    transform: scale(0.85);
    color: #fff;
  }

  /* Hover colors */
    .navbar .homes     a:hover { color: #ffffff; }
  .navbar .feeds     a:hover { color: #0000ff; }
  .navbar .explore   a:hover { color: #ffffff; }
  .navbar .videos    a:hover { color: #ffffff; }
  .navbar .favorites a:hover { color: #ff2d55; }
  .navbar .profiles  a:hover { color: #ffffff; }
  .navbar .nearme  a:hover { color: #ffffff; }
  .navbar .profiles  a:hover { color: #ffffff; }

  /* Body — content header + navbar ke beech rahe */
  body {
    padding-top: 56px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  .indyo-logo {
    width: 60px;
    height: 60px;
  }

  .signin-btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .connect-btn {
    padding: 5px 12px 5px 5px;
    gap: 7px;
  }

  .connect-avatar {
    width: 26px;
    height: 26px;
  }

  .connect-text {
    font-size: 12px;
  }
}

/* ── SMALL MOBILE ── */
@media (max-width: 375px) {
  .navbar > div > a i {
    font-size: 20px;
  }
}

/* 
   NAVBAR PROFILE PHOTO
*/
.nav-profile-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.profiles a:hover .nav-profile-photo {
  transform: scale(1.08);
}

/* 
   SEARCH OVERLAY + MODAL
*/
.search-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-modal {
  width: 520px;
  max-width: 90%;
  transform: translateY(-20px) scale(0.97);
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.search-overlay.active .search-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-inner {
  background: rgb(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.search-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.search-top input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.search-top input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.suggestions {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.suggestions::-webkit-scrollbar {
  display: none;
}

.sug-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  opacity: 0;
  transform: translateY(8px);
  animation: sugIn 0.3s forwards;
}

.sug-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sug-icon {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  flex-shrink: 0;
}

.sug-item:nth-child(1) { animation-delay: 0.05s; }
.sug-item:nth-child(2) { animation-delay: 0.1s;  }
.sug-item:nth-child(3) { animation-delay: 0.15s; }
.sug-item:nth-child(4) { animation-delay: 0.2s;  }
.sug-item:nth-child(5) { animation-delay: 0.25s; }
.sug-item:nth-child(6) { animation-delay: 0.3s;  }
.sug-item:nth-child(7) { animation-delay: 0.35s; }
.sug-item:nth-child(8) { animation-delay: 0.4s;  }

@keyframes sugIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.modal-open {
  overflow: hidden;
}

#authModalContainer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}


/* 
   NAVBAR — desktop: top center fixed
*/
.main-header{
  top: 0px;
  height: 80px;
}
.navbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  height: 64px;              /* header ki height ke barabar */
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  width: auto;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.539);
  border-radius: 40px;
  width: 400px;
  justify-content: center;
}

.navbar::-webkit-scrollbar {
  display: none;
}

/* 
   MOBILE — navbar bottom fixed
*/
@media (max-width: 650px) {
  .navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    transform: none;
    width: 100%;
    height: 56px;
    background: #000;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    gap: 0;
    z-index: 9999;
    box-sizing: border-box;
  }
}


/* ── BODY MARGIN FIX ── */
body {
  margin: 0;
  padding: 0;
}

/* ── MOBILE NAVBAR FULL WIDTH FIX ── */
@media (max-width: 650px) {
  .navbar {
    position: fixed !important;
    bottom: 0px !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100vw !important;
    height: 80px !important;
    background: #000 !important;
    border-top: 1px solid #1a1a1a !important;
    border-radius: 0 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 5px 0 30px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    gap: 0 !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    padding: 25px 0 40px !important;
  }
}




@media (max-width: 600px) {
  .navbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100vw !important;
    height: 56px !important;
    background: #000 !important;
    border-top: 1px solid #1a1a1a !important;
    border-radius: 0 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    gap: 0 !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
  }
  
  .navbar > div > a .nav-label {
    display: none !important;
  }

  .navbar > div > a {
    height: 56px !important;
    width: 100% !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    background: none !important;
    border-bottom: none !important;
  }

  .navbar > div > a i {
    font-size: 22px !important;
  }
}


@media (min-width: 901px) {
  .navbar {
    width: 520px;
  }
  
}

@media (min-width: 1200px) {
  .navbar {
    width: 580px;
  }
  
}

@media (max-width: 900px) {
  .navbar .homes     a:hover,
  .navbar .homes     a:active { color: #ffffff !important; }

  .navbar .feeds     a:hover,
  .navbar .feeds     a:active { color: #0000ff !important; }

  .navbar .explore   a:hover,
  .navbar .explore   a:active { color: #ffffff !important; }

  .navbar .videos    a:hover,
  .navbar .videos    a:active { color: #ffffff !important; }

  .navbar .favorites a:hover,
  .navbar .favorites a:active { color: #ff2d55 !important; }

  .navbar .profiles  a:hover,
  .navbar .profiles  a:active { color: #ffffff !important; }

  .navbar .nearme    a:hover,
  .navbar .nearme    a:active { color: #ffffff !important; }
}

@media (max-width: 900px) {
  .navbar {
    height: 70px !important;
    padding-bottom: 15px !important;
  }
}


/* ── ACTIVE NAV LINK ── */
.navbar > div > a.active {
  color: #ffffff !important;
  border-bottom: none !important;
  border-top: none !important;
  border-radius: 0 !important;
}

.navbar > div > a.active i {
  color: #ffffff !important;
}

/* Mobile active — top border */
@media (max-width: 900px) {
  .navbar > div > a.active {
    color: #ffffff !important;
    /* border-top: 2px solid #ffffff !important; */ 
  }
}






.signin-btn.hidden {
  display: none !important;
}

.user-pill {
  display: none;
  align-items: center;
  background: #111;
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  border: 1.5px solid #222;
  height: 38px;
  box-sizing: border-box;
}

.user-pill.visible {
  display: flex !important;
}

.user-pill-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  font-weight: 600;
}

.user-pill-connect {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  padding-left: 0px;
  text-decoration: none;
  white-space: nowrap;
}

.user-pill-connect:hover { color: #ccc; }




/* =========================================
   MOBILE HOME - PRIORITY NAVIGATION
   ========================================= */

.mobile-home-425 {
    display: none;
}

@media (max-width: 425px) {

    .main-header {
        position: relative;
    }

    .mobile-home-425 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;

        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);

        height: 50px;
        padding: 0 12px;

        color: #ffffff;
        text-decoration: none;

        font-size: 25px;
        font-weight: 600;
        

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

        

        z-index: 50;
    }

    .mobile-home-425 i {
        font-size: 20px;
    }

    /* Instagram-style priority/active feel */
    .mobile-home-425:hover,
    .mobile-home-425:active {
        color: #ffffff;
        background: rgb(2, 2, 2);
        border-color: rgb(3, 3, 3);
        transform: translate(-50%, -50%) scale(1.03);
    }
}


/* SMALLER PHONES */
@media (max-width: 375px) {

    .main-header {
        position: relative;
    }

    .mobile-home-425 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;

        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);

        height: 50px;
        padding: 0 12px;

        color: #ffffff;
        text-decoration: none;

        font-size: 25px;
        font-weight: 600;
        

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

        

        z-index: 50;
    }

    .mobile-home-425 i {
        font-size: 20px;
    }

    /* Instagram-style priority/active feel */
    .mobile-home-425:hover,
    .mobile-home-425:active {
        color: #ffffff;
        background: rgb(2, 2, 2);
        border-color: rgb(3, 3, 3);
        transform: translate(-50%, -50%) scale(1.03);
    }
}
.mobile-home-425 {
    display: none;
}

@media (max-width: 650px) {

    .main-header {
        position: relative;
    }

    .mobile-home-425 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;

        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);

        height: 50px;
        padding: 0 12px;

        color: #ffffff;
        text-decoration: none;

        font-size: 25px;
        font-weight: 600;

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

        z-index: 50;
    }

    .mobile-home-425 i {
        font-size: 20px;
    }

    .mobile-home-425:hover,
    .mobile-home-425:active {
        color: #ffffff;
        background: rgb(2, 2, 2);
        border-color: rgb(3, 3, 3);
        transform: translate(-50%, -50%) scale(1.03);
    }
}

@media (max-width: 425px){

    .user-pill {
        height: 30px;
        width:auto;
        padding: 3px 15px 3px 3px;
    }

    .user-pill-avatar {
        width: 25px;
        height: 25px;
        font-size: 15px;
    }

    .user-pill-connect {
        font-size: 11px;
        padding-left: 0px;
    }

}



.user-pill-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;      /* image ko circle me sahi se fit karega, stretch nahi hogi */
  flex-shrink: 0;
  background: transparent; /* koi bhi background na dikhe */
}

.user-pill-connect {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

@media screen and (max-width: 325px) {

    .user-pill {
        height: 30px !important;
        padding: 0 8px !important;
        gap: 5px !important;
        border-radius: 16px !important;
    }

    .user-pill-avatar {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain !important;
        transform: scale(1.5);
    }

    .user-pill-connect {
        font-size: 12px !important;
        line-height: 1 !important;
    }
}
