
/* ========================
   /style/user.css
   ======================== */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   00. Color Variables (dark theme)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --logo-white:    #b7beac;
  --logo-green:    #73a620;
  --mac-black:     #0c0e09;
  --mac-green:     #151910;
  --machine-hover: #1a1c18;
  --mac-hover:     #1a1c18;
  --line-color:    #3e4439;
  --title-white:   #e1e8d6;
  --settings:      #714769;
  --acard-button:  #858523;

  /* Modal overrides (for cropper_modal.php) */
  --modal-bg:      var(--mac-black);
  --modal-border:  var(--line-color);
  --modal-text:    var(--title-white);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   01. Global & Base Resets
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
* {
  box-sizing: border-box;
}

#mainContent{
  padding: 0px 20px 0px 20px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   02. Main Content Wrapper (#mainContent)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* At ≥1000px, constrain container width */
@media (min-width: 1000px) {
  #mainContent {
    max-width: 1000px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   03. User Navigation Bar (.user-nav)
   –– “Profile / Account / Settings” section at top
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.user-nav {
  width: 100%;
  /* margin-bottom: 16px; */
}

/* If your nav tabs need highlighting, override here */
.navDivProfile {
  background-color: var(--settings);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   04. Profile Container (#user-container)
   –– Two columns on desktop, single column on mobile
   –– Gap + padding for breathing room
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#user-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  /* padding: 0 16px; */
  margin-bottom: 30px;
}

@media (min-width: 700px) {
  #user-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  #mainContent{
    padding: 0px;
  }
}
/* Left and right column common styling */
.column-left{
  /* background-color: var(--mac-black); */
  border-radius: 4px;
  /* padding: 15px; */
  border: 1px solid blue;
}

.column-right {
  background-color: var(--mac-black);
  border-radius: 4px;
  padding: 15px;
}



/* Left column fixed/min width on desktop */
@media (min-width: 700px) {
  .column-left {
    /* flex: 0 0 240px; */ /* Enough to contain 200px avatar + padding */ 
  }
  .column-right {
    flex: 1;
  }
}

/* On mobile, both columns span full width */
@media (max-width: 699px) {
  .column-left,
  .column-right {
    width: 100%;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   05. Avatar Section (column-left)
   –– .avatar-section holds either:
   ––   • cropper_modal.php (with its internal <img> and buttons)
   ––   • a single <img class="profile-image"> for viewers
   –– Profile image fixed at 200×200 px
   –– Buttons (inside cropper_modal.php) sit on their own row below
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The viewer’s avatar (when not owner) */
.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 4px;
}

/* In cropper_modal.php, your <img id="currentProfileImage"> should be 200px */
#currentProfileImage {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

/* Icon‐buttons container is already output by cropper_modal.php inside .avatar-section
   They will appear on the next row because .avatar-section is column‐flex. */

/* Ensure each icon inside .icon-button is fixed size */
.icon-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* General .icon-button styling (Delete / Upload) */
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--mac-green);
  color: var(--mac-black);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
.icon-button:hover {
  opacity: 0.8;
}

/* Delete button specifically */
.delete-button {
  background-color: var(--settings);
  color: var(--title-white);
}

/* Upload button specifically */
.upload-button {
  background-color: var(--logo-green);
  color: var(--mac-black);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   06. Username & Header (column-right)
   –– Bullet icon next to username
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0px 8px 8px;
  margin-bottom: 15px;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.bullet-icon {
  width: 16px;
  height: 16px;
}

.username {
  font-size: 24px;
  color: var(--logo-white);
  margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   07. Description Panel (session_description.php / viewerDescription.php)
   –– Targets the IDs ./session_description.php outputs:
   ––   #message-title-box, #descriptionDisplay, #descriptionText,
   ––   .editControlsContainer, #editButton, #descriptionForm, #descriptionTextarea,
   ––   #saveButton, #cancelDeButton
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* “Public Message:” heading */
#message-title-box {
  /* background-color: var(--mac-green); */
  color: var(--title-gold);
  font-size: 16px;
  padding: 0px 0px;
  margin-bottom: 5px;
}

/* Read-only description area */
#descriptionDisplay {
  background-color: var(--mac-green);
  /* border: 1px solid var(--line-color); */
  border-radius: 0px;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  color: var(--logo-white);
  font-size: 16px;
  padding: 8px;
  margin-bottom: 8px;
  min-height: 150px;
}

/* The text span inside the description */
#descriptionText {
  display: block;
  color: var(--logo-white);
}

/* Container for the “Edit” button (initially visible for owners) */
.editControlsContainer {
  /* margin-top: 8px; */
  display: flex;
  gap: 8px;
}

/* “Edit” button styling */
#editButton {
  background-color: var(--logo-green);
  color: var(--mac-black);
  border-radius: 4px;
  border: none;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
#editButton:hover {
  opacity: 0.8;
}

/* When clicked, the form (#descriptionForm) appears below—
   ensure spacing between textarea and buttons */
#descriptionForm {
}

/* Textarea for editing the description */
#descriptionTextarea {
  width: 100%;
  background-color: var(--mac-black);
  color: var(--title-white);
  border: 1px solid var(--title-white);
  border-radius: 4px;
  font-size: 18px;
  padding: 8px;
  margin-bottom: 5px;
  resize: vertical;
  min-height: 150px;
}

/* Save + Cancel container inside the form */
#descriptionForm .editControlsContainer {
  margin-top: 0px;
}

/* “Save Changes” button */
#saveButton {
  background-color: var(--logo-green);
  color: var(--mac-black);
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
#saveButton:hover {
  opacity: 0.8;
}

/* “Cancel” button next to Save */
#cancelDeButton {
  background-color: var(--logo-green);
  color: var(--mac-black);
  border: none; 
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
#cancelDeButton:hover {
  opacity: 0.8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   08. Cropper Modal & Popup Window (kept intact)
   –– Ensures cropper_modal.php continues to work unchanged
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Modal backdrop & centering */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-dialog {
  max-width: 600px;
  width: 90%;
}

.modal-content {
  background-color: var(--modal-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--modal-border);
}

/* Modal header */
.modal-header {
  background-color: var(--mac-green);
  color: var(--modal-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--modal-border);
}
.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--title-white);
}
.modal-header .close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--modal-text);
  cursor: pointer;
  transition: opacity 0.2s;
}
.modal-header .close:hover {
  opacity: 0.8;
}

/* Modal body */
.modal-body {
  background-color: var(--modal-bg);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cropper-preview {
  max-width: 100%;
  max-height: 60vh;
  display: none;
  border-radius: 50%;
  border: 1px solid var(--modal-border);
}

/* Modal footer */
.modal-footer {
  background-color: var(--mac-green);
  padding: 8px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--modal-border);
}
.btn {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border: 1px solid var(--modal-border);
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:hover {
  opacity: 0.8;
}
.btn:active {
  transform: translateY(1px);
}
.btn-cancel {
  background-color: var(--mac-black);
  color: var(--title-white);
}
.btn-save {
  background-color: var(--logo-green);
  color: var(--mac-black);
}











