/* ============================================================
   MONJOBS SHARED STYLES
   Loaded globally via layouts/app.blade.php
   Header, footer, section utilities, job cards, badges
   ============================================================ */

/* ── Section Utilities ── */
.home-section { padding: 52px 0; }
.home-section-alt { background: #f8fafc; }
.section-head { margin-bottom: 32px; }
.section-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.section-title {
    font-size: 23px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}
.section-subtitle { font-size: 13.5px; color: #6b7280; }
.section-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.section-view-all:hover { color: #1d4ed8; text-decoration: underline; }
.section-nav-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; color: #374151;
    transition: all 0.15s;
}
.section-nav-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.section-head-right { display: flex; align-items: center; gap: 10px; }

/* ── Job Cards ── */
.job-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.18s;
}
.job-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 20px rgba(37,99,235,0.07);
    transform: translateY(-2px);
}
.job-card-top { display: flex; align-items: flex-start; gap: 12px; }
.job-logo {
    width: 44px; height: 44px;
    border-radius: 9px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: #2563eb;
    flex-shrink: 0; overflow: hidden;
}
.job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job-card-meta { flex: 1; min-width: 0; }
.job-company { font-size: 11.5px; color: #6b7280; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-title { font-size: 14.5px; font-weight: 700; color: #111827; line-height: 1.3; }
.job-card:hover .job-title { color: #2563eb; }
.job-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.job-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 1px solid #f3f4f6;
}
.job-salary { font-size: 13px; font-weight: 700; color: #059669; }
.job-location { font-size: 11.5px; color: #9ca3af; display: flex; align-items: center; gap: 4px; }

/* ── Badges ── */
.badge-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
}
.badge-full     { background: #eff6ff; color: #2563eb; }
.badge-remote   { background: #f0fdf4; color: #16a34a; }
.badge-urgent   { background: #fef2f2; color: #dc2626; }
.badge-featured { background: #f5f3ff; color: #7c3aed; }
.badge-contract { background: #fff7ed; color: #ea580c; }
.badge-part     { background: #f0fdf4; color: #059669; }

/* ── Footer ── */
.home-footer { background: #0a1628; padding: 52px 0 0; }
.footer-top {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-brand-logo { margin-bottom: 14px; }
.footer-brand-desc { font-size: 13px; color: #4a6580; line-height: 1.65; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-soc-btn {
    width: 33px; height: 33px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #4a6580; font-size: 14px; text-decoration: none;
    transition: all 0.15s;
}
.footer-soc-btn:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col-head { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #64748b; margin-bottom: 14px; }
.footer-col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col-links li a { font-size: 13px; color: #3d5166; text-decoration: none; transition: color 0.15s; }
.footer-col-links li a:hover { color: #93c5fd; }
.footer-bottom {
    padding: 16px 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 12px; color: #2a3a4e; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { font-size: 12px; color: #2a3a4e; text-decoration: none; }
.footer-bottom-links a:hover { color: #64748b; }

/* ── Custom Header ── */
.mj-announce {
    background: #1e3a5f; color: #93c5fd;
    font-size: 12px; padding: 6px 0; text-align: center;
}
.mj-announce strong { color: #fff; }
.mj-announce a { color: #7dd3fc; text-decoration: none; font-weight: 600; }
.mj-announce a:hover { color: #fff; }
.mj-announce .sep { margin: 0 10px; opacity: 0.3; }

.mj-header { background: #fff; box-shadow: 0 1px 0 #e9ecef; position: sticky; top: 0; z-index: 200; }
.mj-header-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

.mj-top-row { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.mj-logo img { display: block; height: 68px; width: auto; }
.mj-searchbar {
    display: flex; align-items: center; flex: 1; max-width: 620px;
    border: 2px solid #2563eb; border-radius: 24px; background: #fff;
}
.mj-loc-wrap { position: relative; flex-shrink: 0; }
.mj-sb-type {
    display: flex; align-items: center; gap: 5px;
    padding: 0 14px; height: 40px;
    font-size: 12.5px; font-weight: 700; color: #374151;
    border-right: 1px solid #e5e7eb; cursor: pointer; white-space: nowrap;
    user-select: none;
}
.loc-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    min-width: 200px; z-index: 9999; overflow: hidden;
    display: none;
}
.loc-dropdown.open { display: block; }
.loc-pane { display: none; }
.loc-pane.active { display: block; }
.loc-back {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; font-size: 12px; font-weight: 700;
    color: #2563eb; cursor: pointer; border-bottom: 1px solid #f0f0f0;
}
.loc-back:hover { background: #f8fafc; }
.loc-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; font-size: 13px; color: #374151;
    cursor: pointer; transition: background 0.12s;
}
.loc-item:hover { background: #f0f7ff; color: #2563eb; }
.loc-item i { font-size: 11px; color: #9ca3af; }
.mj-sb-input { flex: 1; position: relative; }
.mj-sb-input input {
    width: 100%; border: none; outline: none;
    padding: 0 14px; height: 40px; font-size: 13.5px; color: #111827; background: transparent;
}
.mj-sb-input input::placeholder { color: #9ca3af; }
.mj-sb-btn {
    background: #2563eb; border: none; color: #fff;
    width: 46px; height: 40px; font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: background 0.15s;
    border-radius: 0 22px 22px 0;
}
.mj-sb-btn:hover { background: #1d4ed8; }
.mj-header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.mj-haction {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 5px 11px; text-decoration: none; color: #374151;
    border-radius: 6px; transition: background 0.12s; cursor: pointer;
    background: none; border: none;
}
.mj-haction i { font-size: 22px; color: #374151; line-height: 1; }
.mj-haction span { font-size: 10.5px; font-weight: 500; color: #374151; white-space: nowrap; }
.mj-haction:hover { background: #f3f4f6; color: #374151; }
.mj-haction:hover i, .mj-haction:hover span { color: #374151; }
.mj-post-btn {
    background: #2563eb; color: #fff; border: none; border-radius: 7px;
    padding: 9px 15px; font-size: 12.5px; font-weight: 700;
    display: flex; align-items: center; gap: 6px; text-decoration: none;
    cursor: pointer; white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
}
.mj-post-btn:hover { background: #1d4ed8; color: #fff; }

.mj-sub-row {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid #f0f0f0; background: #fafafa;
}
.mj-sub-left { display: flex; align-items: center; }
.mj-sub-right { display: flex; align-items: center; }
.mj-all-cats-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 0 16px; height: 38px;
    background: #2563eb; color: #fff;
    border: none; font-size: 12.5px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}
.mj-subnav-lnk {
    padding: 0 14px; height: 38px;
    display: flex; align-items: center;
    font-size: 12.5px; color: #374151;
    text-decoration: none; white-space: nowrap; transition: color 0.12s;
}
.mj-subnav-lnk:hover { color: #2563eb; }
.mj-subnav-rlnk {
    padding: 0 12px; height: 38px;
    display: flex; align-items: center; gap: 3px;
    font-size: 12px; color: #6b7280;
    text-decoration: none; border-left: 1px solid #e9ecef; transition: color 0.12s;
    cursor: pointer; user-select: none;
}
.mj-subnav-rlnk:hover { color: #2563eb; }

/* Sub-nav right dropdowns */
.mj-subnav-drop-wrap { position: relative; }
.mj-subnav-drop-wrap .mj-subnav-rlnk i { transition: transform 0.18s; }
.mj-subnav-drop-wrap.open .mj-subnav-rlnk { color: #2563eb; }
.mj-subnav-drop-wrap.open .mj-subnav-rlnk i { transform: rotate(180deg); }
.mj-subnav-dropdown {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    min-width: 210px; z-index: 9999; padding: 6px 0;
    display: none;
}
.mj-subnav-drop-wrap.open .mj-subnav-dropdown { display: block; }
.mj-subnav-dropdown a {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 16px; font-size: 13px; color: #374151;
    text-decoration: none; transition: background 0.12s;
}
.mj-subnav-dropdown a i { font-size: 16px; color: #94a3b8; }
.mj-subnav-dropdown a:hover { background: #f0f7ff; color: #2563eb; }
.mj-subnav-dropdown a:hover i { color: #2563eb; }
.mj-subnav-dropdown-divider { height: 1px; background: #f1f5f9; margin: 4px 0; }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .mj-top-row { flex-wrap: wrap; }
    .mj-sub-left .mj-subnav-lnk:not(:first-child) { display: none; }
    .mj-sub-right { display: none; }
}
@media (max-width: 576px) {
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
