/* ==========================================================================
   Project Eclipse - Careers Portal Stylesheet
   careers.projecteclipse.uk
   ========================================================================== */

/* Careers Brand Header & Topbar */
.careers-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.careers-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.careers-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.careers-brand-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  line-height: 1;
}

.careers-brand-text span {
  color: var(--yellow);
}

.careers-brand-badge {
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.15), rgba(255, 214, 10, 0.05));
  color: var(--yellow);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
}

.careers-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.careers-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-subhead);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.careers-nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.careers-nav-item.active {
  color: #07080a;
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 214, 10, 0.25);
}

.careers-nav-item svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.careers-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* User Profile Dropdown on Careers */
.careers-user-dropdown {
  position: relative;
}

.careers-user-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.careers-user-btn:hover {
  border-color: var(--border-gold);
  background: rgba(255, 214, 10, 0.06);
}

.careers-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  object-fit: cover;
}

/* Hero Section */
.careers-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.careers-hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(255, 214, 10, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.careers-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 214, 10, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--yellow);
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.careers-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.careers-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  color: #ffffff;
}

.careers-title .hl {
  color: var(--yellow);
  text-shadow: 0 0 35px rgba(255, 214, 10, 0.35);
}

.careers-desc {
  max-width: 680px;
  margin: 0 auto 2.2rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Stats Row */
.careers-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.careers-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: all 0.25s ease;
}

.careers-stat-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.careers-stat-value {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 0.3rem;
}

.careers-stat-label {
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Filter Controls */
.careers-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.careers-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.careers-filter-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.careers-filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.careers-filter-tab.active {
  background: rgba(255, 214, 10, 0.15);
  color: var(--yellow);
  border-color: var(--border-gold);
}

.careers-search-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: 240px;
  transition: all 0.2s ease;
}

.careers-search-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.2);
}

/* Job Cards Grid */
.careers-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.career-job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.career-job-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.career-job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--yellow));
  opacity: 0.8;
}

.career-job-card.closed {
  opacity: 0.7;
}

.career-job-card.closed::before {
  background: #64748b;
}

.career-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.career-card-dept {
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.75px;
}

.career-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.career-status-pill.open {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.career-status-pill.closed {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.career-job-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.career-job-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.career-job-reqs {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.career-job-reqs-title {
  font-family: var(--font-subhead);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.career-req-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.career-req-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.career-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.career-card-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Single Job Detail View */
.job-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.job-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.job-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.job-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .job-content-grid {
    grid-template-columns: 1fr;
  }
}

.job-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.job-section-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.job-section-card h2 svg {
  fill: var(--yellow);
  width: 22px;
  height: 22px;
}

.job-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.job-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.job-list-bullet {
  color: var(--yellow);
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 2px;
}

/* Sidebar Apply Card */
.job-sidebar-card {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.job-sidebar-price {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Application Form */
.apply-container {
  max-width: 780px;
  margin: 0 auto 5rem;
}

.apply-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.apply-step-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-group-career {
  margin-bottom: 1.75rem;
}

.form-label-career {
  display: block;
  font-family: var(--font-subhead);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.form-label-career .required {
  color: #ef4444;
  margin-left: 0.2rem;
}

.form-control-career {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #ffffff;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control-career:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

textarea.form-control-career {
  min-height: 110px;
  resize: vertical;
}

.applicant-discord-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.applicant-discord-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #5865f2;
}

/* FAQ Section */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.open {
  border-color: var(--border-gold);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-subhead);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  fill: var(--yellow);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.75rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.75rem 1.5rem;
}

/* Information Guide Page */
.info-guide-container {
  max-width: 1100px;
  margin: 0 auto 5rem;
}

.info-role-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-role-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.info-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  bottom: 0;
  background: var(--role-color, var(--yellow));
}

.info-role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-role-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-role-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--role-color, var(--yellow));
}

.info-role-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-block {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1.5rem;
}

.info-block-title {
  font-family: var(--font-subhead);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--yellow);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* My Applications & Chat Thread */
.app-thread-container {
  max-width: 880px;
  margin: 0 auto 5rem;
}

.app-status-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.app-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.app-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  transition: all 0.2s ease;
}

.app-step-item.active .app-step-circle {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 214, 10, 0.35);
}

.app-step-item.completed .app-step-circle {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.app-step-label {
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-step-item.active .app-step-label {
  color: #fff;
}
