* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
  background-color: var(--neutral);
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}

#notification {
    position: fixed;
    max-width: 350px;
    top: 20px;
    right: 100%;
    background-color: var(--light-bg);
    color: var(--dark-text);
    padding: 10px;
    border-radius: 5px;
    transition: 1s all linear;
    z-index: 11000;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
#badNotification {
    position: fixed;
    max-width: 350px;
    top: 20px;
    right: 100%;
    background-color: #ec2424;
    color: white;
    padding: 10px;
    border-radius: 5px;
    transition: 1s all linear;
    z-index: 11000;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* for feed */
.post {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #fff;
}

.poster-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.poster-name {
    font-weight: bold;
}

.post-message {
    margin-top: 10px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
}
.product-card {
    width: 100%;
    overflow: hidden;
}
#comments-section {
    position: relative;
    height: 40vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#add-comment {
    position: absolute;
    height: 20%;
    bottom: 0;
    display: flex;
    width: 100%;
}
#add-comment textarea {
    width: 90%;
    height: 100%;
}
.reaction-buttons button{
    background-color: #fff;
    border-radius: 5px;

}
.reaction-buttons button.active {
    background-color: #007bff;
    color: white;
    border: 2px solid #000;
  }
#top-content {
    display: flex;
    gap: 10px;
}
.image-preview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.image-preview-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

.tier-badge {
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.product-card {
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  background-color: white;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* top-bar */
/* General Honey Theme Colors */
:root {
  --primary-lime: #71df20;
  --primary-dark: #52a31a;
  --light-bg: #f7fff2;
  --dark-text: #1d1d1d;
  --danger: #e53935;
  --success: #4caf50;
  --neutral: #ffffff;
  --neutral-dark: #f1f1f1;
  --hover-bg: #e5f9d7;
}
/* Topbar Styling */
button {
  background-color: var(--primary-lime);
}

#topbar {
  position: sticky;
  top: -1px;
  width: 100%;
  background-color: var(--primary-lime);
  padding: 0px 20px;
  display: flex;
  justify-content: space-between;
  height: 50px;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#topbar-logo {
    width: 200px;
    height: 60px;
}
#top-content a {
  margin-left: 14px;
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 1.05rem;
}

#top-content a:hover {
  color: var(--hover-bg);
}

#top-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#subscriptionTier, #subscriptionTier2 {
  font-weight: bold;
  margin: auto;
  color: var(--text-dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  position: relative;
  gap: 12px;
}
#welcome-message {
  font-weight: 600;
  font-size: 20px;
  margin-left: 10px;
  margin-top: 5px;
  color: var(--primary-lime);
}
#profilePic {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--primary-lime);
  object-fit: cover;
  transition: transform 0.2s, border-color 0.3s;
}

#profilePic:hover {
  transform: scale(1.08);
  border-color: var(--primary-dark);
}

/* Dropdown */
#profileDropdown {
  position: absolute;
  top: 10px;
  right: 0;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  display: none;
  flex-direction: column;
  min-width: 170px;
  z-index: 999;
  animation: dropdownAnim 0.3s ease forwards;
}

@keyframes dropdownAnim {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

#profileDropdown a {
  padding: 12px 16px;
  text-decoration: none;
  color: var(--dark-text);
  border-bottom: 1px solid var(--primary-lime);
  font-size: 1rem;
}

#profileDropdown a:last-child {
  border-bottom: none;
}

#profileDropdown a:hover {
  background-color: var(--hover-bg);
}
#topbar-logo2 {
    display: none;
}
/* Overlay */
#menuOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}

#menuOverlay.visible {
  display: block;
}
/* Badges */
.badge {
  background: red;
  color: white;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  margin-left: 3px;
  display: inline-block;
}
#bottomNavBar {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: var(--hover-bg);
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
}

#bottomNavBar .nav-item {
  flex: 1;
  text-align: center;
  color: var(--dark-text);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

#bottomNavBar .nav-item i {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

#bottomNavBar .nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
}

#bottomNavBar #postAdBtn {
  background-color: var(--primary-lime);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-20px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 1.8rem;
  text-decoration: none;
}

#bottomNavBar #postAdBtn i {
  color: white;
}

#bottom-badge {
  position: absolute;
  top: 4px;
  right: 18%;
  font-size: 9px;
  padding: 2px 5px;
}

/* Show only on small screens */
@media screen and (max-width: 768px) {
  #bottomNavBar {
    display: flex;
  }

  body {
    padding-bottom: 60px; /* avoid content being hidden under nav */
  }
}
/* Responsive Styles */
@media screen and (orientation: portrait), screen and (max-width: 768px) {
    #top-content {
        display: none;
    }
    #profilePic {
        position: fixed;
        width: 50px;
        height: 50px;
        right: 5px;
        top: 10px;
    }
    #topbar-logo {
      display: none;
    }
    #topbar {
      height: 0px;
        background-color: transparent;
        box-shadow: 0 0 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: right;
    }
    #top-content a,
    #profileDropdown a {
        font-size: 1.4rem;
    }
    
}

@media screen and (max-width: 485px) {
  #welcome-message {
    font-size: 18px;
  }
  #topbar {
        justify-content: right;
        position: sticky;
        align-items: center;
        padding: 0px 5px;
    }
  #profilePic {
    width: 40px;
    height: 40px;
  }
  #topbar-logo {
    display: none;
  }
  #topbar-logo2 {
    display: flex;
    left: 10px;
    width: 150px;
    height: 60px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: sticky;
    top: 15px;
}
.topbar-right {
  gap: 5px;
}
}