/* Sample CSS styles for the Research Hub */

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: linear-gradient(-225deg, #FFFEFF 0%, #D7FFFE 100%);
}

header {
  background-color: ;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: linear-gradient(-225deg, #FFFEFF 0%, #D7FFFE 100%);

}

/* Reset default styles for the navigation links */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
  margin-right: 20px; /* Adjust margin-right for spacing between links */
}

nav ul li:last-child {
  margin-right: 10; /* Remove margin-right for the last item */
}

nav ul li a {
  text-decoration: none; /* Remove underline */
  color: black; /* Set color to black */
  font-weight: bold; /* Set font weight to bold */
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.logo img {
  height: 50px; /* Adjust as necessary */
  margin-right: 1rem;
}

.logo h1 {
  font-size: 1.5rem;
}



.hero {
    background-image: url('https://static.vecteezy.com/system/resources/previews/011/875/478/original/meet-of-team-of-people-for-talk-dialog-communication-discussion-business-relationship-discuss-problems-together-exchange-opinions-of-team-worker-support-group-illustration-vector.jpg  ');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 4rem 0; /* Increased padding for more space */
    max-width: 100%;
    height: 150px; /* Adjust height as needed */
}

h1{
  color:#000;
}



.container {
    display: flex;
    max-width: 1200px; /* Adjust maximum width as needed */
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border-radius: 8px;
 
}



#sidebar {
    width: 25%;
    padding-right: 20px;
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
    padding: 20px;
}

h2{
  color:#000
}
#sidebar h2 {
    margin-bottom: 10px;
    color: #2c3e50; /* Dark blue */
  
}

.filter-group {
    margin-bottom: 15px;
 ;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #555; /* Dark gray */
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd; /* Light border */
    border-radius: 4px;
    box-sizing: border-box;
}

#sort-by {
    margin-top: 8px;
}

button[type="submit"] {
    background-color: #2c3e50; /* Dark blue */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

button[type="submit"]:hover {
    background-color: #34495e; /* Darker blue on hover */
}

/* Main content styles */
#main-content {
    flex: 1;
    padding: 20px;
}

.discussion-section {
    margin-bottom: 30px;
}

.discussion {
    background-color: #f9f9f9; /* Light gray background */
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd; /* Light border */
    border-radius: 4px;
  background-image: linear-gradient(to top, #dad4ec 0%, #dad4ec 1%, #f3e7e9 100%);
}

.discussion h3 {
    margin-bottom: 5px;
    color: #333; /* Dark gray */
}

.discussion p {
    margin: 5px 0;
    color: #666; /* Gray */
    font-size: 0.9em;
}

.discussion .details {
    font-size: 0.85em;
    color: #888; /* Light gray */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    #sidebar {
        border-right: none;
        border-bottom: 1px solid #ddd; /* Light border */
        padding-bottom: 20px;
        width: 100%;
    }

    #main-content {
        padding: 20px;
    }
}



/* ===============================
   HAMBURGER NAV (MOBILE)
================================ */

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:0;
  cursor:pointer;
  padding:8px;
}

.hamburger span{
  width:22px;
  height:2px;
  background:#111;
  display:block;
}

/* Desktop nav stays normal */
header nav ul{
  display:flex;
  gap:18px;
}

/* Mobile behavior */
@media (max-width: 768px){

  .hamburger{
    display:flex;
  }

  header nav{
    position:absolute;
    top:64px;
    right:16px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    overflow:hidden;
    transform:scale(0.95);
    opacity:0;
    pointer-events:none;
    transition:all .2s ease;
  }

  header nav.open{
    transform:scale(1);
    opacity:1;
    pointer-events:auto;
  }

  header nav ul{
    flex-direction:column;
    gap:0;
    padding:12px 0;
  }

  header nav li a{
    display:block;
    padding:12px 20px;
    white-space:nowrap;
  }
}


/* ===============================
   FORUM VISUAL ENHANCEMENTS
   (append under existing CSS)
================================ */

/* Thread continuity */
.discussion-section .discussion{
  position: relative;
  padding-left: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.discussion-section .discussion::before{
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.10),
    rgba(0,0,0,.02)
  );
  border-radius: 2px;
}

/* Hover = interactive, not static */
.discussion-section .discussion:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Contribution type badge */
.discussion h3{
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

/* Author + signal footer */
.discussion .details{
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .8rem;
  margin-top: 10px;
  opacity: .75;
}

.discussion .details::before{
  content: "●";
  font-size: .6rem;
  opacity: .5;
}

/* Separate signal body from discussion */
.discussion-section:first-of-type + .discussion-section h2{
  position: relative;
  padding-top: 28px;
}

.discussion-section:first-of-type + .discussion-section h2::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,.18),
    transparent
  );
}

/* Add Contribution polish */
.add-contribution textarea,
.discussion textarea{
  min-height: 120px;
}

.add-contribution button,
.discussion button{
  margin-top: 12px;
}




/* ===============================
   FORUM DEPTH & PRESENCE BOOST
   (append under previous block)
================================ */

/* Stronger separation between contributions */
.discussion-section .discussion{
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,.95),
    rgba(245,247,255,.95)
  );
  border-left: 4px solid rgba(55,48,163,.15);
}

/* Signal pulse on hover (subtle authority) */
.discussion-section .discussion:hover{
  border-left-color: rgba(55,48,163,.45);
}

/* Contribution type hierarchy */
.discussion h3{
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

/* Make questions visually stand out */
.discussion h3{
  background: #eef2ff;
}

.discussion:has(h3:contains("Question")){
  background: linear-gradient(
    to bottom right,
    rgba(255,250,240,.95),
    rgba(255,245,235,.95)
  );
  border-left-color: rgba(180,83,9,.25);
}

/* Author identity emphasis */
.discussion .details{
  font-weight: 500;
}

.discussion .details span:first-child{
  color:#111;
}

/* Subtle reply affordance */
.discussion::after{
  content:"Reply";
  position:absolute;
  bottom:12px;
  right:16px;
  font-size:.7rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:0;
  transition:opacity .15s ease;
}

.discussion:hover::after{
  opacity:.35;
}

/* Section headers feel like forum milestones */
.discussion-section h2{
  font-size:1.6rem;
  letter-spacing:.02em;
}

/* Contribution form feels like joining a thread */
.add-contribution,
.discussion form{
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.9),
    rgba(245,247,255,.9)
  );
  border-radius:16px;
  padding:20px;
}

/* Sticky participation cue on mobile */
@media(max-width:768px){
  .add-contribution{
    position:sticky;
    bottom:0;
    z-index:50;
    box-shadow:0 -6px 18px rgba(0,0,0,.08);
  }
}


/* ===============================
   FORUM BACK BUTTON
================================ */

.back-btn{
  background:none;
  border:0;
  padding:0;
  margin-bottom:10px;
  font-size:.9rem;
  font-weight:500;
  color:#374151;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.back-btn:hover{
  text-decoration:underline;
}

@media (max-width:768px){
  .back-btn{
    font-size:1rem;
  }
}

/* ===============================
   PAGE LOCK / COMING SOON
================================ */

body.locked{
  overflow:hidden;
}

/* Blur content */
body.locked .container{
  filter: blur(6px);
  pointer-events:none;
  user-select:none;
}

/* Overlay backdrop */
.lock-overlay{
  display:none;
}

body.locked .lock-overlay{
  display:flex;
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.65);
  z-index:1000;
  align-items:center;
  justify-content:center;
  padding:24px;
}

/* Lock card */
.lock-box{
  text-align:center;
  max-width:420px;
  background:#fff;
  border-radius:18px;
  padding:28px 26px 24px;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
}

/* SVG lock */
.lock-icon{
  width:42px;
  height:42px;
  margin-bottom:14px;
  color:#111;
}

/* Text */
.lock-title{
  font-size:1.15rem;
  font-weight:600;
  margin:0 0 6px;
  color:#111;
}

.lock-text{
  font-size:.95rem;
  color:#444;
  line-height:1.45;
  margin:0 0 18px;
}

/* Back button */
.lock-back{
  background:#fff;
  border:1px solid rgba(0,0,0,.2);
  padding:8px 18px;
  border-radius:999px;
  font-size:.9rem;
  font-weight:500;
  cursor:pointer;
}

.lock-back:hover{
  background:#f5f5f5;
}
