/* =========================================================
   public/css/employer/public.css
   Public Employer Profile — /employers/{userId}
   ========================================================= */

/* ═══ WRAPPER ═══ */
.ep-wrap {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 24px 0 60px;
}

.ep-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ═══ HEADER ═══ */
.ep-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.ep-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B6079, #8CC426);
}

.ep-header-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* ⭐ MAIN LOGO — White bg + border */
.ep-logo {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    color: #1B6079;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.ep-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #ffffff;
    display: block;
}

.ep-logo .fb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: .5px;
    background: linear-gradient(135deg, #1B6079, #0f3d4d);
    border-radius: 12px;
}

.ep-info {
    flex: 1;
    min-width: 240px;
}

.ep-info h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ep-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
}

.ep-tagline {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ep-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}

.ep-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ep-meta i { color: #94a3b8; }

.ep-meta a {
    color: #1B6079;
    text-decoration: none;
}

.ep-meta a:hover { text-decoration: underline; }

/* ═══ STATS ═══ */
.ep-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.ep-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
}

.ep-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ep-stat-icon.blue   { background: #eff6ff; color: #2563eb; }
.ep-stat-icon.green  { background: #f0fdf4; color: #16a34a; }
.ep-stat-icon.purple { background: #faf5ff; color: #9333ea; }

.ep-stat-n {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.ep-stat-l {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

/* ═══ LAYOUT ═══ */
.ep-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* ═══ CARDS ═══ */
.ep-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ep-card-head {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ep-card-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-card-head h3 i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1B6079;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ep-card-body { padding: 20px; }

/* ═══ ABOUT ═══ */
.ep-about {
    color: #334155;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

/* ═══ JOB LIST ═══ */
.ep-job {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.ep-job:last-child { border-bottom: none; }
.ep-job:hover { background: #f8fafc; }

/* ⭐ JOB LOGO — White bg + border */
.ep-job-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    color: #1B6079;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.ep-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #ffffff;
    display: block;
}

.ep-job-logo .fb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    background: linear-gradient(135deg, #1B6079, #0f3d4d);
    border-radius: 8px;
}

.ep-job:hover .ep-job-logo {
    border-color: #1B6079;
    box-shadow: 0 3px 10px rgba(27, 96, 121, 0.12);
}

.ep-job-info {
    flex: 1;
    min-width: 0;
}

.ep-job-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px;
    transition: color 0.2s;
}

.ep-job:hover .ep-job-info h4 { color: #1B6079; }

.ep-job-info p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ep-job-info p span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ep-job-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ep-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: capitalize;
}

.ep-badge-blue  { background: #eff6ff; color: #2563eb; }
.ep-badge-green { background: #f0fdf4; color: #16a34a; }
.ep-badge-red   { background: #fef2f2; color: #dc2626; }
.ep-badge-amber { background: #fffbeb; color: #d97706; }

/* ═══ SIDEBAR ═══ */
.ep-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 90px;
}

.ep-sidebar-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 13px;
}

.ep-info-row:last-child { border-bottom: none; }

.ep-info-label {
    color: #94a3b8;
    font-weight: 600;
    min-width: 110px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ep-info-value {
    color: #0f172a;
    font-weight: 500;
    flex: 1;
    word-break: break-word;
}

.ep-info-value a {
    color: #1B6079;
    text-decoration: none;
}

.ep-info-value a:hover { text-decoration: underline; }

/* ═══ SIMILAR EMPLOYERS ═══ */
.ep-similar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: inherit;
}

.ep-similar:last-child { border-bottom: none; }

/* ⭐ SIMILAR LOGO — White bg + border */
.ep-similar-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    color: #1B6079;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ep-similar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    background: #ffffff;
    display: block;
}

.ep-similar-logo .fb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    background: linear-gradient(135deg, #1B6079, #0f3d4d);
    border-radius: 6px;
}

.ep-similar:hover .ep-similar-logo {
    border-color: #1B6079;
    box-shadow: 0 3px 8px rgba(27, 96, 121, 0.12);
}

.ep-similar-info {
    flex: 1;
    min-width: 0;
}

.ep-similar-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-similar-info p {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
}

/* ═══ EMPTY ═══ */
.ep-empty {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.ep-empty i {
    font-size: 44px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: block;
}

.ep-empty h4 {
    font-size: 15px;
    color: #475569;
    margin: 0 0 6px;
}

.ep-empty p {
    font-size: 13px;
    margin: 0;
}

/* ═══ CTA CARD ═══ */
.ep-cta-card {
    background: linear-gradient(135deg, #f0f9ff, #ecfdf5) !important;
    border-color: #bae6fd !important;
}

.ep-cta-card h3 { color: #0f172a; }

.ep-cta-card p {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 14px;
}

.ep-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1B6079, #0f3d4d);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    width: 100%;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ep-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(27, 96, 121, 0.25);
    color: #fff;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 992px) {
    .ep-layout { grid-template-columns: 1fr; }
    .ep-sidebar-card { position: static; }
}

@media (max-width: 640px) {
    .ep-wrap { padding: 16px 0 40px; }
    .ep-header-inner { flex-direction: column; text-align: center; }
    .ep-logo { margin: 0 auto; }
    .ep-info h1 { justify-content: center; font-size: 20px; }
    .ep-tagline,
    .ep-meta { justify-content: center; }
    .ep-stats { grid-template-columns: 1fr; }
    .ep-card-body { padding: 16px; }
    .ep-job { flex-direction: column; }
    .ep-job-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 480px) {
    .ep-wrap { padding: 12px 0 32px; }
    .ep-container { padding: 0 12px; }
    .ep-header { padding: 20px 16px; }
    .ep-logo { width: 72px; height: 72px; font-size: 24px; }
    .ep-info h1 { font-size: 18px; }
    .ep-card-head { padding: 14px 16px; }
    .ep-job { padding: 14px 16px; }
}