/* Browse Projects Page Styles */

.main--browse {
  display: block;
  padding: 0;
  min-height: auto;
}

.browse-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 48px;
}

/* Hero Header */
.hero-header {
  margin-bottom: 32px;
}

.hero-header__title {
  font-family: "Manrope", sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1.2px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-header__subtitle {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #64748b;
  line-height: 28px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(231, 218, 221, 0.5);
  margin-bottom: 8px;
}

.filter-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Filter Dropdown */
.filter-dropdown {
  position: relative;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 21px;
  background: #ffffff;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #181012;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.filter-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.filter-dropdown.open .filter-btn svg {
  transform: rotate(180deg);
}

.filter-dropdown--active .filter-btn {
  background: rgba(255, 56, 92, 0.06);
  box-shadow: 0 1px 4px rgba(255, 56, 92, 0.15);
  color: #ff385c;
}

.filter-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  padding: 6px 0;
}

.filter-dropdown.open .filter-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown__item {
  display: block;
  width: 100%;
  padding: 10px 18px;
  background: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(24, 16, 18, 0.6);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-dropdown__item:hover {
  background: rgba(24, 16, 18, 0.03);
  color: #181012;
}

.filter-dropdown__item.active {
  color: #ff385c;
  font-weight: 600;
}

.filter-bar__divider {
  width: 1px;
  height: 24px;
  background: rgba(231, 218, 221, 0.6);
  margin: 0 8px;
}

.clear-btn {
  padding: 8px;
  background: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ff385c;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.clear-btn:hover {
  opacity: 0.8;
}

.sort-label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(24, 16, 18, 0.4);
}

.sort-dropdown {
  position: relative;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #181012;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sort-btn:hover {
  opacity: 0.7;
}

.sort-btn svg {
  transition: transform 0.2s ease;
}

.sort-btn.active svg {
  transform: rotate(180deg);
}

.sort-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.sort-dropdown__menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-dropdown__item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(24, 16, 18, 0.6);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sort-dropdown__item:first-child {
  border-radius: 16px 16px 0 0;
}

.sort-dropdown__item:last-child {
  border-radius: 0 0 16px 16px;
}

.sort-dropdown__item:hover {
  background: rgba(24, 16, 18, 0.03);
  color: #181012;
}

.sort-dropdown__item.active {
  color: #ff385c;
  font-weight: 600;
}

/* Project Feed */
.project-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Project Card */
.project-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  position: relative;
  box-shadow: 0px 2px 12px -2px rgba(24, 16, 18, 0.04);
}

.project-card__content {
  flex: 1;
  min-width: 0;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-card__tags {
  display: flex;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tag--primary {
  background: rgba(255, 56, 92, 0.1);
  color: #ff385c;
}

.tag--secondary {
  background: rgba(24, 16, 18, 0.05);
  color: rgba(24, 16, 18, 0.6);
}

.tag--featured {
  background: #181012;
  color: #ffffff;
}

.project-card__header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.urgency-badge--urgent {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.urgency-badge--upcoming {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.urgency-badge--flexible {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.project-card__date {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #181012;
  text-transform: uppercase;
}

.project-card__body {
  margin-bottom: 48px;
}

.project-card__title {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #181012;
  line-height: 1.4;
  margin-bottom: 10px;
}

.project-card__description {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(24, 16, 18, 0.6);
  line-height: 1.7;
  max-width: 720px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  row-gap: 8px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(24, 16, 18, 0.6);
  line-height: 1.5;
}

.meta-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.meta-item__budget {
  color: #747071;
}

.meta-item--verified span,
.meta-item--unverified span {
  color: #7d797a;
}

/* Rating */
.project-card__rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.stars {
  display: flex;
  gap: 0;
}

.rating-score {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(24, 16, 18, 0.8);
}

.rating-spent {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(24, 16, 18, 0.4);
}

/* Actions */
.project-card__actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
  gap: 10px;
  flex-shrink: 0;
}

.project-card__action-btns {
  display: flex;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid #e7dadd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #f5f5f5;
  border-color: #d0c5c8;
}

.action-btn--bookmarked {
  background: #ff385d;
  border-color: #ff385d;
  color: #ffffff;
}

.action-btn--bookmarked:hover {
  background: #e6325a;
  border-color: #e6325a;
}

.action-btn--shared {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
}

.btn--card {
  width: auto;
  height: auto;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

/* Load More Section */
.load-more-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
}

.load-more-section__text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(24, 16, 18, 0.6);
}

.load-more-section__text strong {
  font-weight: 600;
  color: #181012;
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid #181012;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #181012;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--outline:hover {
  background: #181012;
  color: #ffffff;
}

.load-more-btn {
  min-width: 200px;
}

/* Footer */
.footer {
  background: #f5f0e6;
  border-top: 1px solid #e5e5e5;
  padding: 49px 0 48px;
  margin-top: 48px;
}

.footer__content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 22.75px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-icon {
  width: 24px;
  height: 24px;
  background: #ff385d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-text {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #181012;
  letter-spacing: -0.5px;
}

.footer__tagline {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8d5e66;
  line-height: 1.625;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__title {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #181012;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__links a {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #8d5e66;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #181012;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 33px;
  border-top: 1px solid #e5e5e5;
}

.footer__copyright {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8d5e66;
}

.footer__social {
  display: flex;
  gap: 24px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer__social-link:hover {
  opacity: 0.7;
}

/* Active nav link */
.nav__link--active {
  color: #181012;
}

/* Responsive */
@media (max-width: 1024px) {
  .browse-container {
    padding: 32px 24px;
  }

  .hero-header__title {
    font-size: 36px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .filter-bar__left {
    flex-wrap: wrap;
  }

  .project-card {
    flex-direction: column;
    gap: 24px;
  }

  .project-card__actions {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: auto;
    gap: 10px;

  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main--browse {
    padding: 72px 0 0;
  }

  .browse-container {
    padding: 24px 16px;
  }

  .hero-header {
    margin-bottom: 32px;
  }

  .hero-header__title {
    font-size: 28px;
  }

  .hero-header__subtitle {
    font-size: 15px;
  }

  .filter-bar {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .filter-bar__left {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .filter-bar__divider {
    display: none;
  }

  .filter-bar__right {
    width: 100%;
  }

  .sort-label {
    font-size: 12px;
  }

  .sort-btn {
    font-size: 12px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .project-card__title {
    font-size: 20px;
  }

  .project-card__description {
    font-size: 13px;
  }

  .project-card__meta {
    gap: 10px;
  }

  .meta-item {
    font-size: 12px;
  }

  .project-card__actions {
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
  }

  .btn--card {
    width: auto;
    flex: 1;
  }

  .load-more-btn {
    width: 100%;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main--browse {
    padding: 64px 0 0;
  }

  .browse-container {
    padding: 20px 12px;
  }

  .hero-header {
    margin-bottom: 24px;
  }

  .hero-header__title {
    font-size: 24px;
    letter-spacing: -0.8px;
  }

  .hero-header__subtitle {
    font-size: 14px;
  }

  .filter-bar__left {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 20px;
  }

  .clear-btn {
    font-size: 12px;
    padding: 6px;
  }

  .project-card {
    padding: 16px;
    gap: 16px;
  }

  .project-card__tags {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tag {
    font-size: 9px;
    padding: 3px 8px;
  }

  .urgency-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .project-card__title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .project-card__body {
    margin-bottom: 12px;
  }

  .project-card__meta {
    margin-bottom: 12px;
  }

  .action-btn {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .btn--card {
    padding: 12px 20px;
    font-size: 13px;
    height: 42px;
  }

  .project-card__date {
    font-size: 12px;
  }

  .load-more-section {
    padding-top: 24px;
  }
}
