/* Jobs Section Styles */
.jobs-layout {
  display: flex;
  gap: 24px;
  padding: 16px;
}

.jobs-list {
  flex: 1;
  max-width: 800px;
}

.jobs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.jobs-container::-webkit-scrollbar {
  display: none;
}

.job-card {
  background: #121212;
  border: 1px solid rgba(47, 51, 54, 0.8);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.job-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.company-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.job-info {
  flex: 1;
}

.job-title {
  font-size: 18px;
  font-weight: bold;
  color: #e1e1e1;
  margin-bottom: 4px;
}

.company-name {
  font-size: 16px;
  color: #9e9e9e;
  margin-bottom: 4px;
}

.job-meta {
  display: flex;
  gap: 16px;
  color: #9e9e9e;
  font-size: 14px;
  margin-bottom: 16px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.job-tag {
  background: rgba(24, 189, 79, 0.12);
  color: #18bd4f;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
  margin: 0;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.job-tag:hover {
  background: #18bd4f;
  color: #fff;
}

.job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 254, 8, 0.3);
}

.jobs-premium-section, .premium-card, .premium-upgrade-btn, .premium-job, .premium-hover-modal, .premium-benefits, .benefit-item {
  display: none !important;
}

@media screen and (max-width: 1200px) {
  .jobs-layout {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .jobs-layout {
    padding: 12px;
  }
  .job-card {
    padding: 16px;
  }
  .company-logo {
    width: 48px;
    height: 48px;
  }
  .job-title {
    font-size: 16px;
  }
  .company-name {
    font-size: 14px;
  }
  .job-meta {
    font-size: 13px;
  }
  .job-tag {
    font-size: 13px;
  }
}

/* Job Post Modal Styles */
.job-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
}
.job-modal.show {
  display: flex;
}
.job-modal-content {
  background: #18191c;
  margin: auto;
  border-radius: 18px;
  padding: 36px 32px 28px 32px;
  box-shadow: 0 8px 32px rgba(24,189,79,0.10), 0 1.5px 8px rgba(0,0,0,0.10);
  min-width: 320px;
  max-width: 420px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.job-modal-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.job-modal-content input,
.job-modal-content textarea {
  width: 100%;
  background: #23272e;
  color: #fff;
  border: 1.5px solid #23272e;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.2s, background 0.2s;
}
.job-modal-content input:focus,
.job-modal-content textarea:focus {
  border: 1.5px solid #18bd4f;
  background: #202226;
  outline: none;
}
.job-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 8px;
}
.cancel-job-btn {
  background: none;
  color: #fff;
  border: 1.5px solid #444;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cancel-job-btn:hover {
  background: #23272e;
  color: #18bd4f;
  border: 1.5px solid #18bd4f;
}
.submit-job-btn {
  background: #18bd4f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.submit-job-btn:hover {
  background: #15a745;
}
.close-job-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.18s;
}
.close-job-modal:hover {
  color: #18bd4f;
}

/* Jobs Search/Filter Bar Styles */
.search-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

#jobs-search, #jobs-type-filter, #jobs-tag-search {
  background: #000;
  color: #fff;
  border: 1px solid #2f3336;
  border-radius: 24px;
  padding: 14px 18px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  margin: 0;
}

#jobs-search:focus, #jobs-type-filter:focus, #jobs-tag-search:focus {
  border-color: #18bd4f;
}

#jobs-type-filter {
  min-width: 140px;
  background: #000;
  color: #fff;
  border-radius: 24px;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid #2f3336;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#jobs-type-filter option {
  background: #18191c;
  color: #fff;
}

#jobs-tag-search {
  flex: 1 1 180px;
}

.post-job-btn {
  background: #18bd4f;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: auto;
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(24,189,79,0.08);
  display: flex;
  align-items: center;
  height: 48px;
}
.post-job-btn:hover {
  background: #15a745;
}

@media (max-width: 700px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #jobs-search, #jobs-type-filter, #jobs-tag-search, .post-job-btn {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
  .post-job-btn {
    margin-top: 4px;
    height: 44px;
  }
}

.apply-button {
  background: #18bd4f;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(24,189,79,0.08);
  outline: none;
  margin-top: 8px;
  margin-bottom: 8px;
  display: inline-block;
}
.apply-button:hover {
  background: #15a745;
  color: #fff;
}

/* Stack Overflow-like Q&A UI */
.questions-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
}
.question-card {
  display: flex;
  align-items: flex-start;
  background: #18191c;
  border: 1px solid #23272e;
  border-radius: 10px;
  padding: 18px 22px 16px 0;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24,189,79,0.04);
  position: relative;
}
.question-card:hover {
  border-color: #18bd4f;
  box-shadow: 0 4px 16px rgba(24,189,79,0.10);
}
.question-vote-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  margin-right: 18px;
  user-select: none;
}
.question-vote-btn {
  background: none;
  border: none;
  color: #18bd4f;
  font-size: 22px;
  cursor: pointer;
  padding: 2px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.question-vote-btn:hover {
  background: #18bd4f;
  color: #fff;
}
.question-vote-count {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin: 2px 0;
}
.question-main {
  flex: 1;
}
.question-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.question-meta {
  font-size: 13px;
  color: #9e9e9e;
  margin-bottom: 10px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.question-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.question-tag {
  background: #23272e;
  color: #18bd4f;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
  margin: 0;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.question-tag:hover {
  background: #18bd4f;
  color: #fff;
}
.question-answers-count {
  background: #23272e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 8px;
}
.question-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.question-edit-btn, .question-delete-btn {
  background: none;
  border: none;
  color: #9e9e9e;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.question-edit-btn:hover, .question-delete-btn:hover {
  background: #23272e;
  color: #18bd4f;
}

/* View Question Modal */
.view-question-modal-content {
  max-width: 700px;
  min-width: 320px;
}
.view-question-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.view-question-meta {
  font-size: 14px;
  color: #9e9e9e;
  margin-bottom: 10px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.view-question-description {
  color: #e1e1e1;
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.answers-section {
  margin-top: 18px;
}
.answer-card {
  display: flex;
  align-items: flex-start;
  background: #202226;
  border-radius: 10px;
  padding: 16px 16px 12px 0;
  margin-bottom: 12px;
  border: 1px solid #23272e;
  position: relative;
}
.answer-vote-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  margin-right: 14px;
  user-select: none;
}
.answer-vote-btn {
  background: none;
  border: none;
  color: #18bd4f;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.answer-vote-btn:hover {
  background: #18bd4f;
  color: #fff;
}
.answer-vote-count {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin: 2px 0;
}
.answer-main {
  flex: 1;
}
.answer-meta {
  font-size: 13px;
  color: #9e9e9e;
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.answer-content {
  color: #e1e1e1;
  font-size: 15px;
  margin-bottom: 8px;
}
.answer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.answer-edit-btn, .answer-delete-btn {
  background: none;
  border: none;
  color: #9e9e9e;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.answer-edit-btn:hover, .answer-delete-btn:hover {
  background: #23272e;
  color: #18bd4f;
}
.correct-answer-badge {
  background: #18bd4f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 10px;
  margin-left: 8px;
  display: inline-block;
}
.mark-correct-btn {
  background: #18bd4f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s;
}
.mark-correct-btn:hover {
  background: #15a745;
}
/* Answer Form */
#answer-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#answer-form textarea {
  min-height: 60px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid #2f3336;
  background: #222327;
  color: #fff;
  font-size: 15px;
  padding: 10px 14px;
}
#answer-form button {
  align-self: flex-end;
  background: #18bd4f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#answer-form button:hover {
  background: #15a745;
}
.answer-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #18bd4f;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #202226;
  box-shadow: 0 0 0 2px #18bd4f;
  margin-bottom: 2px;
}

.vote-btn {
  background: #f5f5f5;
  border: 1.5px solid #e0e0e0;
  color: #bdbdbd;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  margin: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  outline: none;
}
.vote-btn:hover {
  background: #eafff2;
  color: #18bd4f;
  border: 1.5px solid #18bd4f;
}
.vote-btn:active {
  background: #d2f5e3;
}
.vote-btn.upvoted {
  color: #18bd4f;
  border: 1.5px solid #18bd4f;
  background: #eafff2;
}
.vote-btn.downvoted {
  color: #e74c3c;
  border: 1.5px solid #e74c3c;
  background: #fff0f0;
}

.usernameAndTime {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.usernameAndTime span[data-follow-user] {
  margin-top: -6.5px !important; 
  margin-left: 2px !important;
}
