/************************************************************
  1) Font Import
************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

/************************************************************
  2) Root Variables (Cyberpunk Theme)
************************************************************/
:root {
  /* Neon Colors */
  --primary-neon: var(--theme-color, #ff00f1); /* Uses --theme-color if set, otherwise defaults */
  --secondary-neon: var(--secondary-color, #b35bd6);
  --accent-neon: var(--accent-color, #ff3399);
  
  /* Layout/Base Colors */
  --background: var(--background-color, #0d0d0f);
  --section-bg: var(--section-bg-color, rgba(255, 255, 255, 0.05));
  --box-border: var(--box-border, rgba(255, 255, 255, 0.15));
  --text-color: var(--text-color, #ccc);
  --heading-color: var(--heading-color, #fff);
  --link-hover: var(--primary-neon);
  --transition-speed: 0.3s;  /* Optional Glow */
  --box-shadow-glow: 0px 0px 15px var(--blur-color, rgba(0, 255, 170, 0.2));
--blur-color: var(--user-blur-color, rgba(0, 0, 0, 0.6));
--border-radius: var(--user-border-radius, 6px);
--messenger-color: var(--user-messenger-color, #0ad);
--messenger-bg-color: var(--user-messenger-bg-color, #111111);
--messenger-text-color: var(--user-messenger-text-color, #ffffff);
}

/************************************************************
  3) Global Reset
************************************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/************************************************************
  4) Body & Global Typography
************************************************************/
body {
  font-family: 'Roboto', sans-serif;
  background: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  padding-bottom: 4rem; /* Space for footer */
}

/* Headings use Orbitron */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--heading-color);
}

/************************************************************
  5) Links & Hover Effects
************************************************************/
a {
  color: var(--primary-neon);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--secondary-neon);
  text-shadow: 0 0 8px var(--secondary-neon), 0 0 12px var(--primary-neon);
}

/************************************************************
  6) CTA Buttons
************************************************************/
.cta-button {
  display: block;
  width: 300px;
  margin: 15px auto;
  padding: 4px 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid var(--primary-neon);
  color: var(--primary-neon);
  background: transparent;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.cta-button:hover {
  color: #000 !important;
  background: var(--secondary-neon);
  border-color: var(--secondary-neon);
  box-shadow: 0 0 10px var(--secondary-neon), 0 0 15px var(--primary-neon);
  transform: scale(1.05);
}

/************************************************************
  7) Header & Navigation
************************************************************/
header {
  position: relative; /* if needed for layout */
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  padding: 0;
border-bottom: 2px solid var(--theme-color, var(--primary-neon));
 background: #1b1b1bd4;
}

header h1 {
  text-align: center;
  text-shadow: 0 0 6px var(--secondary-neon);
}

header h1 img { 
  margin-top: 10px; 
}

 
.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
}

/************************************************************
  8) Dropdown Menus
************************************************************/
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; /* or right: 0; if you prefer */
  background: rgba(0, 0, 0, 0.9);
  list-style: none;
  padding: 5px 0;
  margin: 0;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
  min-width: 150px;
  z-index: 100;
transform: translateX(-90px);
}

 

/************************************************************
  9) Sections & Content Blocks
************************************************************/
section {
  max-width: 960px;
  margin: 2rem auto;
  background: var(--section-bg);
  border: 1px solid var(--box-border);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-speed);
}

section:hover {
  transform: translateY(-3px);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: var(--primary-neon);
  text-shadow: 0 0 4px var(--primary-neon);
}

section h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--secondary-neon);
}

section p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/************************************************************
  10) Lists
************************************************************/
ul {
  margin-left: 1.5rem;
  list-style: disc outside;
}
ul li {
  font-size: 1.1rem;
  line-height: 1.5;
}
ul li strong {
  color: var(--secondary-neon);
}

/************************************************************
  11) Footer
************************************************************/
footer {
  text-align: center;
  padding: 2rem;
  border-top: 2px solid var(--primary-neon);
  font-size: 0.9rem;
  background: #1b1b1bd4;
  margin-top: 3rem;
}

/************************************************************
  12) Back-to-Top Button
************************************************************/
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-neon);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background var(--transition-speed), transform var(--transition-speed);
}

#backToTop:hover {
  background: var(--primary-neon);
  transform: translateY(-3px);
}

/************************************************************
  13) Responsive Adjustments
************************************************************/
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  section {
    padding: 1.5rem;
    margin: 1.5rem;
  }
}

/************************************************************
  14) Login Container
************************************************************/
.login-container {
  max-width: 400px;
  margin: 80px auto;
  background: rgba(0, 0, 0, 0.85);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  text-align: center;
  color: #fff; /* Force text white for contrast here */
}

.login-container h2 {
  margin: 0 0 20px;
  font-size: 1.8em;
  color: var(--primary-neon);
}

.login-container form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-container label {
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

.login-container input[type="email"],
.login-container input[type="password"] {
  margin-bottom: 15px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #222;
  color: #fff;
}

.remember-me {
  display: flex;
  align-items: center;
  margin: -5px 0 10px;
}

.remember-me input[type="checkbox"] {
  margin-right: 8px;
}

.login-container button {
  background: var(--primary-neon);
  border: none;
  color: #000;
  border-radius: 5px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.login-container button:hover {
  opacity: 0.9;
}

.error-message {
  color: #ff5555;
  margin-bottom: 10px;
}

.forgot-password {
  margin-top: 10px;
}

.forgot-password a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9em;
}

.register-link {
  margin-top: 20px;
  display: block;
  color: var(--primary-neon);
  text-decoration: underline;
}

/************************************************************
  15) Logo Fix
************************************************************/
.logo-bg {
  display: inline-block;
  background-color: black;
  padding: 2px 4px;
  border-radius: 3px;
}

/************************************************************
  16) Post & Activity Styles
************************************************************/
/* Post Container */
.post {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  border-bottom: 1px solid #333;
}
.post-content {
  flex-grow: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.username {
  color: color-mix(in srgb, var(--theme-color) 80%, black); /* If using var(--theme-color) elsewhere */
  font-weight: bold;
  transition: 0.2s ease-in-out;
}
.username:hover {
  color: #0bc;
  text-decoration: underline;
}

/* Hashtags */
.hashtag {
  color: var(--primary-neon);
  font-weight: bold;
  text-decoration: none;
}
.hashtag:hover {
  text-decoration: underline;
}

/* Replies */
.reply {
  margin-left: 20px;
  font-size: 0.9em;
  color: #ccc;
  padding: 5px 0;
}
.reply-time {
  font-size: 0.8em;
  color: #888;
}

/* Post actions (buttons) */
.post-actions, .reply-actions {
  margin-top: 5px;
}
.post-actions button,
.reply-actions button,
.view-thread-btn {
  margin-right: 5px;
  padding: 5px 8px;
  background: var(--primary-neon);
  border: none;
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s ease-in-out;
}
.post-actions button:hover,
.reply-actions button:hover,
.view-thread-btn:hover {
  background: #0bc;
}

/************************************************************
  17) Post Form
************************************************************/
.post-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.post-form textarea {
  width: 95%;
  min-height: 60px;
  padding: 10px;
  font-size: 1.1em;
  border-radius: 10px;
  border: none;
  background: #222;
  color: #fff;
  resize: none;
  transition: 0.3s ease-in-out;
}

.post-form textarea:focus {
  background: #333;
  outline: none;
  box-shadow: 0 0 5px var(--primary-neon);
}

.post-form button {
  width: 100px;
  padding: 10px;
  margin-top: 10px;
  background: var(--primary-neon);
  border: none;
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.2s ease-in-out;
}

.post-form button:hover {
  background: #0bc;
}

/************************************************************
  18) Modals
************************************************************/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  max-width: 90%;
  background: rgba(10, 10, 10, 0.95);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 0px 20px rgba(0, 255, 170, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.modal::before {
  /* Background blur effect */
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: -1;
  border-radius: 12px;
}

.modal-content {
  position: relative;
  color: #fff;
  font-size: 1.1em;
}

.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
  transition: 0.2s ease-in-out;
}
.close:hover {
  color: #fff;
  transform: scale(1.2);
}

/* Modal text area */
#modalReplyContent {
  width: 90%;
  min-height: 60px;
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  border: none;
  background: #222;
  color: #fff;
  resize: none;
  transition: 0.2s ease-in-out;
}
#modalReplyContent:focus {
  background: #333;
  outline: none;
  box-shadow: 0 0 5px var(--primary-neon);
}

/* Modal reply button */
#replyForm button {
  margin-top: 10px;
  padding: 10px 15px;
  background: var(--primary-neon);
  border: none;
  color: #000;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.2s ease-in-out;
}
#replyForm button:hover {
  background: #0bc;
}

/************************************************************
  19) Attached Media
************************************************************/
.attached-media {
  margin-top: 10px;
  margin-bottom: 10px;
}
.attached-image, .attached-gif {
  max-width: 100%;
  border: 1px solid var(--theme-color, var(--primary-neon));
  border-radius: 5px;
}

/************************************************************
  20) Avatars
************************************************************/
.avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--theme-color); /* If you have --theme-color defined */
  transition: 0.2s ease-in-out;
  max-width: 50px !important;
}
.avatar:hover {
  transform: scale(1.1);
  border-color: #0bc;
}

/************************************************************
  21) Profile Submenu
************************************************************/
.profile-submenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.profile-submenu a {
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  transition: background-color 0.3s ease;
}

.profile-submenu a:hover,
.profile-submenu a.active {
  background-color: #f0f0f0;
}

/************************************************************
  22) Activity Form Controls
************************************************************/
.activity-form-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Hide native file input */
.file-input-label input[type="file"] {
  display: none;
}

/* Custom file input button */
.file-input-label {
  background-color: #000;
  border: 1px solid #ccc;
  padding: 5px 12px;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
}
.file-input-label span {
  pointer-events: none;
}

/* Buttons in activity form */
.activity-form-controls button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: #4CAF50;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.activity-form-controls button[type="button"] {
  background-color: color-mix(in srgb, var(--theme-color) 80%, black);
}

.stream-container {
    max-width: 860px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: var(--border-radius, 10px);
    box-shadow: 0 0 20px var(--blur-color, rgba(0, 0, 0, 0.6)), 0 0 30px var(--blur-color, rgba(0, 0, 0, 0.6));
}


/* Style for the Post button */
.activity-form-controls button[type="submit"] {
  background-color: #4CAF50;
  color: #fff;
}

.reply-btn   {
    width: 100px;
    padding: 10px;
    margin-top: 10px;
    background: var(--theme-color);
    border: none;
    color: #000;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold; 
}

.delete-reply-btn   {
    width: 100px;
    padding: 10px;
    margin-top: 10px;
    margin-left: 5px;
    background: var(--theme-color);
    border: none;
    color: #000;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold; 
}

.like-btn {
    margin-right: 5px;
    margin-left: 5px;
    padding: 5px 8px;
    background: var(--theme-color);
    border: none;
    color: #000;
    cursor: pointer;
    border-radius: 5px;
  transition: color 0.2s ease;
}
.like-btn:hover {
  background-color: #0bc;
}
.reply-btn:hover {
  background-color: #0bc;
}
.delete-reply-btn:hover {
  background-color: #0bc;
}

.like-btn {
    color: #000;  /* Default unliked color */
}
.like-btn.liked {
    color: red;   /* Liked state */
}

.sg-sidebar-group-list {
  max-height: 150px;
  overflow-y: auto;
  margin: 5px 0;
  padding-right: 5px;
}

.sg-sidebar-group-item {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-sidebar-group-item a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.sg-sidebar-group-loading {
  text-align: center;
  font-size: 0.9em;
  padding: 5px 0;
  color: #ccc;
}
.group-avatar-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: middle;
}
.my-group-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    text-decoration: none;
}
.my-group-item {
    padding: 4px 0;
}
.disclosure-icon {
  transition: transform 0.2s ease;
}
.disclosure-icon.rotated {
  transform: rotate(180deg);
}
.sidebar-mini-accordion .sg-disclosure-toggle:hover {
  color: var(--theme-color, #0ad);
}

.sidebar-mini-accordion .sg-disclosure-toggle i {
  margin-right: 0px;
}
