/* Global Reset */
* {
  box-sizing: border-box;
}

:root {
  --1A1A1A: #1A1A1A;
  --F4F4F4: #F4F4F4;
  --FFB031: #FFB031;
  --E38E05: #E38E05;
  --Border-Radius: 9px;
}

/* Body */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow: hidden;
  position: relative;
}

/* Add new background wrapper */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/grid.png");
  background-size: cover;
  background-blend-mode: lighten;
  z-index: -1;
  opacity: 0.5;
}

.page {
  display: flex;
  width: 100%;
  height: 100vh;
  padding: 2.8%;
  gap: 1%;
  position: relative;
}

/* Profile Header Container (Left Sidebar) */
#profile-header-container {
  width: 25%; 
  padding:1.1%;
  border-radius: var(--Border-Radius);
}
#profile-sub-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 3.1%;
  gap: 1.4%;
  overflow-y: auto;
  height: 100%;
}

#profile-sub-container > * {
  padding: 1.4%;
}

.profile-content::-webkit-scrollbar,
#profile-sub-container::-webkit-scrollbar {
  width: 10px;
}

.profile-content::-webkit-scrollbar-thumb,
#profile-sub-container::-webkit-scrollbar-thumb {
}

/* Post Header */
#profile-sub-container .post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 100px;
  cursor: pointer;
  width: 100%;
}

#profile-sub-container .post-header.active {

}

/* Left Section of Post Header */
#profile-sub-container .post-header .left-section {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Right Section of Post Header */
#profile-sub-container .post-header .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 1 0 0;
}

#profile-sub-container .post-header .heading,
#profile-sub-container .heading {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: bold;
}

#profile-sub-container .post-header .text,
#profile-sub-container .text {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 500;
}

/* Profile Detail (Middle Bar) */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between profile-detail and link-section */
  width: 100%;
  height: 100%;
}
#profile-detail {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%; /* Adjust to match the container */
  max-width: 940px;
  height: 100%;
}
#summary-detail{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%; /* Adjust to match the container */
  max-width: 740px;
  /* height: 100%; */
}
/* Profile Info */
.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 940px;
  padding: 30px;
  border-radius: var(--Border-Radius);
  height: 100%;
}

/* Profile Header (Top Section) */
.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  align-self: stretch;
  border-radius: var(--Border-Radius);
  width: 100%;
}

/* Left Section of Profile Header */
.profile-header .left-section img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* Right Section of Profile Header */
.profile-header .right-section h2 {
  font-size: 18px;
  font-weight: bold;
}

.profile-header .right-section p {
  font-size: 14px;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.profile-tab {
  padding: 10px 15px;
  flex: 1;
  text-align: center;
  border-radius: 50px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.profile-tab.active {

}

/* Profile Content (Tabs Content) */
.profile-content {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  overflow-y: auto;  

}

.profile-summary,
.profile-comments,
.profile-posts {
  display: none;
  width: 100%;
  padding: 1%;
  height: 100%;
  max-height: 400px;
}

.profile-summary.active,
.profile-comments.active,
.profile-posts.active {
  display: block;
}

/* Actions (Right Sidebar) */
#actions {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
  border-radius: var(--Border-Radius);
}

.logout {
  padding: 10px 20px;
  /* background: #FF6B6B; */
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: var(--Border-Radius);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.logout:hover {
  transform: scale(1.05);
}

.logout:focus {
  outline: none;
}

/* Profile Footer (Parent container) */
.profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 15px;
}

/* Profile Footer */
.profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
}
.summary-link-section{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Space between link-container and copy-button */
  width: 100%;
  max-width: 740px;
}
.link-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Space between link-container and copy-button */
  width: 100%;
  max-width: 940px;
}
/* Link Container */
.link-container {
  display: flex;
  padding: 10px 15px;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: var(--Border-Radius);
  width: 85%; /* Adjusted to fit next to button */
  height: 40px;
  position: relative;
}

/* Inactive Link */
.inactive-link {
  text-decoration: none;
  font-size: 14px; /* Adjust based on visual preference */
}

/* Copy Button */
.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Fixed width */
  height: 40px; /* Fixed height */
  cursor: pointer;
}

.copy-button .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Actions Section */
#actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  height: 100%;
  position: relative; /* Ensure the theme toggle stays within the section */
}
/* Logout Button */
.logout {
  display: flex;
  align-items: center;
  gap: 15px;
  align-self: stretch;
  padding: 10px 15px;
  border-radius: 100px;
  cursor: pointer;
}

/* Icon in Logout Button */
.logout .icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Theme toggle container */

#theme-toggle {
  position: absolute;
  left: 92%;
  bottom: 4%;
}
.sun-moon-toggle {
margin: 0 auto;
width: 86px;
display: block;
position: relative;
margin-bottom: 12px;
cursor: pointer;
font-size: 22px;
user-select: none;
}

.sun-moon-toggle input {
position: absolute;
opacity: 0;
cursor: pointer;
}

.sun-moon-toggle .toggler {
position: relative;
display: block;
height: 44px;
width: 80px;
border: 2px solid #E38E05;
border-radius: 100px;
transition: all .3s ease;
background: #E38E05;
}

.sun-moon-toggle .sun,
.sun-moon-toggle .moon {
position: absolute;
top: 2px;
left: 2px;
height: 36px;
width: 36px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
transition: all .3s ease;
}

.sun {
background: white;  /* Sun's background color */
color: white;
opacity: 1;
z-index: 1;
}

.moon {
background: #1a1a1a;  /* Moon's background color */
color: white;
opacity: 0;
z-index: 0;
}

.sun-moon-toggle input:checked ~ .toggler {

}

.sun-moon-toggle input:checked ~ .toggler .sun {
opacity: 0;
z-index: 0;
transform: translateX(100%) rotate(360deg);
}

.sun-moon-toggle input:checked ~ .toggler .moon {
opacity: 1;
z-index: 1;
transform: translateX(100%) rotate(360deg);
}

.sun-moon-toggle i {
font-size: 22px;
}

#link-input {
  width: 100%; 
  height: 100%;
  border-radius: inherit; 
  position: absolute; 
  top: 0;
  left: 0;
  color: #6B6B6B;
  padding: 1%;
}
#link-input ,#link-input:active, #link-input:hover {
  border: none;
  box-shadow: none;
  outline: none;
}