/* Text font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


:root {
  --bg-color: #0d1117;
  --card-bg: #161b22;
  --sidebar-bg: #161b22;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --accent-blue: #58a6ff;
  --accent-blue-glow: rgba(56, 139, 253, 0.3);
  --accent-green: #3fb950;
  --accent-red: #f85149;
  --accent-orange: #d29922;
  --accent-teal: #39c5cf;
  --border-color: #30363d;
  --card-hover: #21262d;
  --chart-grid: #30363d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Root Scrollbars */
html {
 scroll-behavior: smooth;
  /* Scrollbar size */
  scrollbar-width: thin;
  scrollbar-color: #005ec9 var(--card-bg); /* Thumb and Track */
}

/* For Webkit Browsers (Chrome, Safari, etc.) */
html::-webkit-scrollbar {
  width: 12px; /* Width of the vertical scrollbar */
  height: 12px; /* Height of the horizontal scrollbar */
}

/* Scrollbar Track */
html::-webkit-scrollbar-track {
  background-color: var(--card-bg); /* Background of the scrollbar track */
  border-radius: 10px;
}

/* Scrollbar Thumb */
html::-webkit-scrollbar-thumb {
  background-color: var(--accent-blue); /* Color of the draggable thumb */
  border-radius: 10px;
  border: 3px solid var(--card-bg); /* Adds a small border to thumb for better visibility */
}

/* Scrollbar Thumb Hover */
html::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-blue-glow); /* Glow effect on hover */
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  line-height: 1.5;
}

#popup_container {
  width: 100%;
  height: 100vh;
  position: absolute;
  z-index: 1000000;
  top: 0;
  left: 0;
  background-color: #0000003d;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Main Layout Container */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Navigation Actions */
.nav-actions {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.nav-actions a {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-actions a:hover {
  background-color: var(--border-color);
}

.nav-actions svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
}

/* Main content */
main {
  padding-right: 15vw;
  padding-left: 15vw;
}

/* Card Base Styles */
.card {
  position: relative;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  width: 100%;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Profile Header Section */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar {
  position: relative;
}

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0068e0d0;
}
.avatar-img.unverified {
  border: 2px solid transparent;
}

.verified-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: #0069e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  box-shadow: 0 0 10px #0069e0;
}
.verified-badge.unverified {
  display: none;
}

.profile-info {
  flex: 1;
}

.profile-name-container {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 8px;
}

.profile-email {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-date {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.date-dot {
  color: #ff3b5c;
  font-size: 8px;
  margin-right: 6px;
}

/* Tabs Navigation */
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab-btn {
  background-color: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.interests-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.interest-tag {
  background-color: rgba(56, 97, 251, 0.1);
  border: 1px dashed rgba(56, 97, 251, 0.5);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

/* Content Sections */
.bio-section {
  margin: 24px 0;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.bio-heading {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bio-section span {
  color: var(--text-secondary);
}

/* Links section */
.links-section {
  position: relative;
  margin-top: 30px;
}

.links-section ul {
  margin-top: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-section ul li a {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap; /* Allow wrapping inside the link */
}

/* Icon Styling */
.links-section ul li a img {
  width: 25px;
  height: 25px;
  background-color: transparent;
  flex-shrink: 0; /* Prevents shrinking */
}

/* Container for link text */
.links-section ul li a .link-text {
  display: flex;
  flex-direction: column;
  flex: 1; /* Allow text to expand */
  min-width: 0; /* Prevents overflow */
}

/* URL Text - Ensures Wrapping */
.links-section ul li a .link-text .url-text {
  color: #0069e0;
  word-break: break-word; /* Break long words */
  overflow-wrap: break-word; /* Ensures proper wrapping */
  white-space: normal; /* Allow multiple lines */
}

/* Projects/Content Card */
.engaged-content-card {
  margin-top: 30px;
}

.engaged-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.time-dropdown {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.content-item:last-child {
  border-bottom: none;
}

.content-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.content-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  word-break: break-all; /* Ensures characters wrap individually */
  white-space: normal; /* Allows text to break */
}

.content-tags {
  font-size: 12px;
  color: var(--text-secondary);
}

.content-time {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.no-project-source-found {
  text-align: center;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--accent-blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}


/* Share Modal Styles */
#share-model-bg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #00000071;
}

.share-modal {
  background-color: var(--card-bg);
  max-width: 500px;
  width: 93%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;

}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.share-modal-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background-color: var(--card-hover);
}

.share-modal-divider {
  height: 1px;
  background-color: var(--border-color);
}

.share-modal-content {
  padding: 10px;
}

.share-text, .copy-text {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-align: left;
}

.social-icons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.2s;
  background-color: var(--card-bg);
}

.social-icon:hover {
  transform: translateY(-3px);
}

.facebook {
  color: #1877f2;
}

.twitter {
  color: #1da1f2;
}

.instagram {
  color: #e4405f;
}

.whatsapp {
  color: #25d366;
}

.telegram {
  color: #0088cc;
}

.copy-link {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.link-container {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  height: 44px;
}

.link-container i {
  margin-right: 8px;
}

.link-text {
  overflow: hidden;
  font-size: 14px;
  word-break: break-all; /* Ensures characters wrap individually */
  white-space: normal; /* Allows text to break */
}


#share-copy {
  cursor: pointer;
}

.copy-btn {
  background-color: var(--purple);
  color: white;
  border: none;
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  height: 44px;
  text-wrap: nowrap;
  text-align: end;
  width: 100%;
}

/* Share profile qrcode */
.share-qrcode {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.share-qrcode #generate-qr-btn {
  width: 100%;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: #005ec9;
  color: #fff;
  display: none;
  margin-bottom: 20px;
  transition: background-color .3s ease;
}
.share-qrcode #generate-qr-btn:hover {
  cursor: pointer;
  background-color: var(--accent-blue);
}
#qr-bg {
  width: 60%;
  padding: 20px 5px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-radius: 20px;
  padding-bottom: 5px;
}
#qr-bg img {
  width: 90%;
}
#qr-bg a {
  width: 100%;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
}
#qr-bg a:hover {
  cursor: pointer;
}

/* item tabs section */
.item-tabs-container {
  width: 100%;
}
.item-tabs-container ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
}
.item-tabs-container ul li {
  min-width: 200px;
  background-color: rgba(255, 255, 255, 0.03);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  cursor: pointer;
  padding: 7px 10px;
  transition: background-color 0.3s ease;
  gap: 10px;
}
.item-tabs-container ul li:hover {
  background-color: rgba(255, 255, 255, 0.055);
}

/* Posts view styles */
#post-container-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #0000004b;
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
  justify-content: center;
}
.post-container {
  position: relative;
  width: 70vw;
  height: 650px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-top: 150px;
}
.post-container #post-popup-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}
.post-container #post-popup-close-btn:hover {
  cursor: pointer;
  background-color: var(--card-hover);
}
.post-container .header {
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.1rem;
}
.post-container .add-new-post {
  width: 100%;
  padding: 20px;
  margin-bottom: 30px;
}
.post-container .add-new-post .container {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
} 
.post-container .add-new-post img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.post-container .add-new-post span {
  background-color: var(--card-hover);
  width: 100%;
  padding: 10px 15px;
  border-radius: 50px;
  color: var(--text-secondary);
}
.post-container .add-new-post span:hover {
  cursor: pointer;
}
#posts-list {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}
#posts-list li a {
  text-decoration: none;
  color: var(--text-primary);
}
#posts-list .container {
  display: flex;
  align-items: start;
  gap: 10px;
}
#posts-list .container .left img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}
#posts-list .container .right {
  display: flex;
  flex-direction: column;
}
#posts-list .container .right .title {
  color: var(--text-primary);
  font-size: 1rem;
}
#posts-list .container .right .upload-date {
  color: var(--text-secondary);
  font-size: .9rem;
}
.no-post-container {
  width: 100%;
  height: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.no-post-container .icon svg {
  fill: var(--text-secondary);
  width: 50px;
  height: 50px;
}
.no-post-container span {
  font-size: 1.1rem;
}

@media (max-width: 1440px) {
  .post-container {
    width: 80vw;
  }
}
@media (max-width: 1070px) {
  .post-container {
    width: 90vw;
  }
}

@media (max-width: 1024px) {
  .post-container {
    width: 95%;
  }
}

/* Responsive Design */
@media (max-width: 1400px) {
  main {
    padding-right: 10vw;
    padding-left: 10vw;
  }
}
@media (max-width: 1230px) {
  main {
    padding-right: 7vw;
    padding-left: 7vw;
  }
}
@media (max-width: 1050px) {
  main {
    padding-right: 2vw;
    padding-left: 2vw;
  }
}
@media (max-width: 820px) {
  main {
    padding-right: 0px;
    padding-left: 0px;
  }
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-info {
    text-align: center;
  }

  .profile-date {
    justify-content: center;
  }

  .content-item {
    grid-template-columns: 50px 1fr;
  }

  .content-time {
    grid-column: 2;
    margin-top: 4px;
  }

  .nav-actions {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 576px) {
  .interests-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .card {
    padding: 18px;
  }

  .profile-name {
    font-size: 20px;
  }

  .content-title {
    font-size: 14px;
  }

  .content-tags {
    font-size: 11px;
  }

  .footer-links {
    gap: 12px;
  }
}
