/* 
 * CareerNest - Single Employer Profile Styles
 * Modern profile layout with gradient banner design (matching applicant profile)
 */

/* Container */
.cn-employer-profile {
  min-height: 100vh;
  padding: 0;
}

.cn-employer-container {
  max-width: 100%;
  margin: 0 auto;
}

/* ==========================================
   PROFILE HEADER - Modern Design
   ========================================== */

.cn-profile-header-wrapper {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cn-profile-banner {
  height: 132px;
  background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.2) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    var(--cn-primary-btn);
  position: relative;
}

.cn-profile-header-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 3rem 2.5rem 3rem;
  gap: 2rem;
}

/* Left Section - Logo and Info */
.cn-profile-left-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.cn-company-logo-wrapper {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: 999px;
}

.cn-company-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: contain;
  border: 6px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cn-company-logo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
  border: 6px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  color: #666;
}

.cn-company-info {
  flex: 1;
  text-align: left;
}

.cn-company-name {
  font-size: 26px;
  font-weight: 700;
  font-style: normal;
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  line-height: 132%;
  letter-spacing: 0%;
  text-transform: capitalize;
}

.cn-owner-edit-btn {
  color: #666;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  text-decoration: none;
}

.cn-owner-edit-btn:hover {
  color: var(--cn-primary-btn);
  transform: scale(1.1);
}

.cn-company-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cn-location-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #666;
  font-size: 0.875rem;
}

.cn-location-item svg {
  color: #666;
  width: 16px;
  height: 16px;
}

/* Contact Section */
.cn-profile-contact-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cn-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cn-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cn-contact-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.cn-contact-icon svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.cn-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.cn-contact-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

.cn-contact-value {
  font-size: 0.875rem;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.cn-contact-value:hover {
  color: var(--cn-primary-btn);
  text-decoration: underline;
}

/* ==========================================
   PROFILE BODY
   ========================================== */

.cn-profile-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 0 1rem 2rem 1rem;
}

.cn-profile-main {
  min-width: 0;
}

/* Profile Sections */
.cn-profile-section {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cn-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--cn-primary-btn);
}

.cn-section-content {
  color: #444;
  line-height: 1.7;
}

.cn-section-content p {
  margin: 0;
}

/* Read More/Less Links */
.cn-read-more-link,
.cn-read-less-link {
  color: var(--cn-primary-btn);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline;
  margin-left: 0.25rem;
}

.cn-read-more-link:hover,
.cn-read-less-link:hover {
  text-decoration: underline;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.cn-profile-sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

/* Profile Completeness */
.cn-profile-completeness {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.cn-completeness-meter {
  margin-bottom: 1.25rem;
}

.cn-meter-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.cn-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.cn-meter-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cn-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.cn-status {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cn-profile-tips {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.cn-tips-header {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.cn-missing-fields {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cn-missing-fields li {
  font-size: 0.875rem;
  color: #444;
  padding: 0.25rem 0;
}

.cn-profile-complete {
  margin: 1rem 0 0 0;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.cn-sidebar-card {
  background: #fafafa;
  border: 1px solid #dadada;
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}

.cn-sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.cn-sidebar-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.cn-sidebar-item:last-child {
  margin-bottom: 0;
}

.cn-sidebar-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
  border-radius: 999px;
}

.cn-sidebar-icon svg {
  width: 28px;
  height: 28px;
}

.cn-sidebar-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cn-sidebar-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cn-sidebar-value {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.4;
}

.cn-sidebar-link {
  font-size: 0.95rem;
  color: var(--cn-primary-btn);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cn-sidebar-link:hover {
  color: var(--cn-primary-btn);
  text-decoration: underline;
  opacity: 0.8;
}

/* Current Openings Section */
.cn-employer-jobs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cn-related-job-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cn-related-job-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cn-related-job-card-top {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.cn-related-job-card__img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.cn-related-job-card__img-placeholder {
  width: 50px;
  height: 50px;
  background: #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.cn-related-job-card__title {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.cn-related-job-card__title a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.cn-related-job-card__title a:hover {
  color: var(--cn-primary-btn);
  text-decoration: underline;
}

.cn-related-job-card__company,
.cn-related-job-card__location {
  color: #666;
  font-size: 0.85rem;
}

.cn-related-job-card__salary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
}

.cn-related-job-card__salary svg {
  flex-shrink: 0;
}

.cn-related-job-card hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1rem 0;
}

.cn-related-job-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cn-related-job-card__modified {
  color: #999;
  font-size: 0.8rem;
}

.cn-view-more-jobs {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--cn-primary-btn);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.cn-view-more-jobs:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

.no-current-jobs {
  color: #666;
  font-style: italic;
  margin: 1rem 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .cn-profile-header-content {
    padding: 0 2rem 2rem 2rem;
  }

  .cn-profile-body {
    grid-template-columns: 1fr;
  }

  .cn-profile-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .cn-profile-banner {
    height: 140px;
  }

  .cn-profile-header-content {
    flex-direction: column;
    padding: 0 1.5rem 2rem 1.5rem;
    gap: 1.5rem;
  }

  .cn-profile-left-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .cn-company-logo-wrapper {
    margin-top: -70px;
  }

  .cn-company-logo,
  .cn-company-logo-placeholder {
    width: 140px;
    height: 140px;
  }

  .cn-company-logo-placeholder span {
    font-size: 3.5rem;
  }

  .cn-company-name {
    font-size: 2rem;
    justify-content: flex-start;
  }

  .cn-company-meta {
    justify-content: flex-start;
  }

  .cn-profile-contact-section {
    grid-template-columns: repeat(3, auto);
    justify-content: flex-start;
    width: 100%;
    padding-top: 0;
    gap: 0.75rem;
  }

  .cn-contact-card {
    width: auto;
    min-width: unset;
  }

  .cn-contact-info {
    display: none;
  }

  .cn-contact-icon {
    width: 40px;
    height: 40px;
  }

  .cn-contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .cn-profile-section {
    padding: 1.5rem;
  }

  .cn-section-title {
    font-size: 1.5rem;
  }

  .cn-employer-container {
    margin: 0;
  }

  .cn-profile-header-wrapper {
    margin: 1rem 0.5rem;
    border-radius: 12px;
  }

  .cn-profile-body {
    padding: 0 0.5rem 1rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .cn-company-name {
    font-size: 1.75rem;
  }

  .cn-contact-icon {
    width: 44px;
    height: 44px;
  }

  .cn-sidebar-card {
    padding: 1.25rem;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  .cn-employer-profile {
    background: white;
  }

  .cn-profile-header-wrapper,
  .cn-profile-section,
  .cn-sidebar-card {
    box-shadow: none;
    page-break-inside: avoid;
  }

  .cn-owner-edit-btn {
    display: none;
  }

  .cn-view-more-jobs {
    display: none;
  }
}
