/* ====== PROFILE WRAPPER ====== */
.profile-container {
  max-width: 100%;
  margin: 0 auto;
  background: none;
  overflow: hidden;
}

.floating-box {
    position: absolute; 
    top: 270px; 
    right: 0; 
    width: 60%; 
    height : 70px;
    overflow-x : scroll;
    border: 1px solid cyan; 
    border-radius : 8px;
    font-size : 0.7rem;
    line-height : 1.4;
    font-style: italic;
    text-align : center;
    padding: 10px;
    box-sizing: border-box;
    background-color: #00000022; /* optional translucent background */
}
.floating-box p { font-size : 0.9rem; }

.floating-box span {
    color: cyan;
    font-size: 0.6rem;
    font-style: normal;
    text-align : left;
    text-transform: uppercase;
    display: block;           /* makes it appear on its own line */
    margin-bottom: 5px;
}

@media (max-width: 768px) {
 .floating-box {
     width : 100%;
     position : relative;
     margin : 1rem auto;
     display : block;
     top : 0;
 }
    
}

/* ====== BANNER ====== */
.profile-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: visible; 
}
.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clickable-banner {
  position: relative;
  width: 100%;
  height: 180px;
  cursor: pointer;
  z-index: 1; 
}

.clickable-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.clickable-banner:hover img {
  transform: scale(1.02);
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  line-height: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto; /* normal hover on visible parts */
}

.clickable-banner:hover .banner-overlay {
  opacity: 1;
}

/* Hidden file input */
#banner-file {
  display: none;
}
/* ====== AVATAR ====== */
.profile-avatar {
  position: absolute;
  top: 130px;
  left: 40px;
  width: 70px;
  height: 70px;
  background: none;
  border: 3px solid #111111;
  border-radius : 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar.online {
  border-color: #00ff80;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.6);
}
.profile-avatar.offline {
  border-color: #444;
  box-shadow: 0 0 8px rgba(68, 68, 68, 0.5);
  filter: grayscale(0.3);
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(0, 255, 128, 0.4); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 128, 0.8); }
  100% { box-shadow: 0 0 10px rgba(0, 255, 128, 0.4); }
}
.profile-avatar.online {
  animation: pulseGlow 2s infinite ease-in-out;
}
.clickable-avatar {
  position: absolute;
  width: 70px; 
  height: 70px; 
  cursor: pointer;
  display: inline-block;
  z-index: 10;
  pointer-events: auto;
}

.clickable-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; 
  transition: transform 0.3s ease;
}

.clickable-avatar:hover img {
  transform: scale(1.05);
}

.upload-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  line-height: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-bottom-left-radius: 50%; /* match avatar shape */
  border-bottom-right-radius: 50%;
}

.clickable-avatar:hover .upload-overlay {
  opacity: 1;
}
.avatar-upload-form {
  position: absolute; /* sits over the avatar without shifting layout */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}
.file-upload {
  display: none; 
}
#avatar-file {
  display: none;
}
/* ====== HEADER INFO ====== */
.profile-header {
  padding: 40px 40px 20px 40px;
  display: flex;
  flex-direction: column;
}
.profile-header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
}
.profile-header p.rank {
  margin : 0 0 1px 0;
  font-size: 0.90rem;
}

/* ====== MAIN CONTENT ====== */
.profile-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 0 40px 40px 40px;
  gap: 2rem;
}


/* ====== SIDEBAR ====== */
.profile-sidebar {
  flex: 1 1 250px;
  max-width: 260px;
}
.profile-sidebar p.bio {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.profile-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.profile-stats li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}
.profile-stats li strong {
  font-weight : 700;
}
.profile-actions {
  display: flex;
  gap: 0.6rem;
}

.profile-actions button,
.profile-actions a.btn {
  flex: 1;
  padding: 0.5rem 0;
  background: transparent;
  border: 1px solid #00bcd4;     
  color: #00bcd4;                   
  border-radius: 12px; 
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Segoe UI", Roboto, sans-serif;
  text-transform : uppercase;
  font-size: 0.95rem;
  font-weight : 700;
}

.profile-actions button:hover,
.profile-actions a.btn:hover {
  background: #00bcd4;
  color: #ffffff;
}
/* ====== TABS ====== */
.profile-content {
  flex: 1; 
  min-width: 0; 
  max-width: 100%;      
  box-sizing: border-box;
  overflow-x: hidden;     
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid #2a2a2a; 
  margin-bottom: 1rem;
  overflow-x: auto;
}

.profile-tabs a {
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  color: #aaa;  
  transition: all 0.3s ease; 
  white-space: nowrap;
}

.profile-tabs a:hover,
.profile-tabs a.active {
  color: #00bcd4;   
  border-bottom: 2px solid #00bcd4; 
}

/* ====== TAB CONTENT EXAMPLE ====== */
.tab-content {
  padding: 0 0 0 0;
  overflow: hidden;
  box-sizing: border-box; 
  display: flex; 
  flex-wrap: wrap; 
}
/* =========== Labels ======= */
.label_head { display : block; font-size : 1.1rem; font-weight : 600; margin : 1rem 0 1rem 0; }
.label { display : block; font-size : 1rem; margin : 2rem 0 1rem 1rem;  text-indent : 1rem; }
.divider {
  height: 50px;
  width: 100%;
}
/* ====================== TEXTAREA ======== */
.textarea-wrapper {
  width: 100%;
  box-sizing: border-box;
  margin: auto;
  background: #1c1c1c;
  border: 1px solid #111111;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.textarea-wrapper textarea {
  width: 100%;
  box-sizing: border-box;
  height: 180px; 
  background: transparent;
  color: #f5f5f5;
  border: none;
  resize: vertical;
  padding: 12px 14px;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  outline: none;
  transition: all 0.3s ease;
}

/* Glow + border highlight on focus */
.textarea-wrapper textarea:focus {
  box-shadow: 0 0 8px #00bcd4, 0 0 16px #00bcd4 inset;
}

/* Optional: slight lift effect on hover */
.textarea-wrapper:hover {
  border-color: #00bcd4;
  box-shadow: 0 0 6px #00bcd4;
}
.toggle_swap { font-size : 1.1rem; margin : 0 0 0 1rem; font-weight : 700; }
.danger-zone {
  border: 1px solid #d93025;
  background: #222222;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
}
.danger-zone p { font-size : 0.8rem; line-height : 1.4; margin : 1rem; }
.danger-zone h3 {
  color: #d93025;
  margin-bottom: 8px;
}

.remove-account, a.remove-account:link {
  background-color: #d93025; 
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display : block;
  text-align : center;
  margin : 1rem;
}

.remove-account:hover {
  background-color: #c5221f;
}

.remove-account:active {
  transform: scale(0.97);
}

.remove-account:focus {
  outline: 2px solid #ffb3b3;
  outline-offset: 2px;
}
#bio-count {
    font-size : 0.9rem; margin : 0.5rem 0.5rem; color : #00bcd4;
}
/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .profile-header {
    padding: 50px 20px 20px 20px;
  }
  .profile-main {
    flex-direction: column;
    padding: 0 20px 30px 20px;
  }
  .profile-banner {
  height: 150px;
}
  .profile-avatar {
    top : 90px;
    left: 20px;
    width: 90px;
    height: 90px;
  }
  .profile-sidebar {
    width : 100%;
    max-width: 100%;
  }
}