/* ============================================
   Business Profile Page (Public View)
   Matches the main content area of business-profile-update
   VERSION 2.0 - FEB 24 2026
   ============================================ */

/* ============================================
   Page wrapper
   ============================================ */
.biz-page {
    width: 100%;
    min-height: 100vh;
    background: #F3F4F6;
    font-family: "Noto Sans", Arial, sans-serif;
    direction: rtl;
}

/* ============================================
   HEADER
   ============================================ */
.biz-header {
    width: 100%;
    background: #fff;
    margin-top: -2em;
}

.biz-header-color-bar {
    width: 100%;
    height: 73px;
    position: relative;
}

.biz-header-info {
    background: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 40px;
    padding-right: 40px;
}

.biz-header-info-inner {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.biz-logo-wrapper {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 3px solid #fff;
    flex-shrink: 0;
    background: #fff;
}

.biz-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.biz-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
}

.biz-logo-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #9CA3AF;
}

/* Business name */
.biz-business-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111928;
    line-height: 1.4;
}

/* ============================================
   DIVIDER
   ============================================ */
.biz-divider {
    width: 100%;
    height: 1px;
    background: #E5E7EB;
}

/* ============================================
   CONTENT AREA (replaces sidebar+main layout)
   ============================================ */
.biz-content {
    max-width: 820px;
    margin: 0 auto;
    background: #F3F4F6;
    min-height: 400px;
    padding: 24px 24px;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.biz-block {
    display: flex;
    flex-direction: column;
    padding: 24px;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.biz-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.biz-block-title {
    margin: 0;
    color: #111928;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* ============================================
   INFO ROWS
   ============================================ */
.biz-block-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.biz-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-info-row .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.biz-info-text {
    color: #6B7280;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.biz-info-link,
.biz-info-link:link,
.biz-info-link:visited {
    color: #0a66c2;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    text-decoration: none;
}

.biz-info-link:hover {
    text-decoration: underline;
}

/* Pills (industry tags) */
.biz-pills-row {
    align-items: flex-start;
}

.biz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.biz-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    background: #F3F4F6;
    color: #374151;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #E5E7EB;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.biz-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 16px 0 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    background: transparent;
}

.biz-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #9CA3AF;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
}

.biz-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: inherit;
    flex-shrink: 0;
}

.biz-tab:hover,
.biz-tab:focus,
.biz-tab:active {
    color: #6B7280;
    background: #E5E7EB !important;
    border-radius: 6px 6px 0 0;
    outline: none;
    box-shadow: none;
}

.biz-tab.active {
    color: #0a66c2;
    border-bottom-color: #0a66c2;
    font-weight: 600;
}

.biz-tab.active:hover,
.biz-tab.active:focus,
.biz-tab.active:active {
    color: #0a66c2;
    background: #EFF6FF !important;
}

.biz-tab-label {
    white-space: nowrap;
}

/* ============================================
   BENEFITS / VALUES GRID
   ============================================ */
.biz-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.biz-benefit-card {
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

.biz-benefit-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-benefit-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.biz-benefit-name {
    color: #111928;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.biz-benefit-desc {
    color: #374151;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
}

/* ============================================
   JOBS LIST
   ============================================ */
.biz-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.biz-job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #fff;
    transition: border-color 0.2s ease;
}

.biz-job-card:hover {
    border-color: #9CA3AF;
}

.biz-job-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.biz-job-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-job-love-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6B7280;
    transition: color 0.2s ease;
}

.biz-job-love-btn:hover,
.biz-job-love-btn:focus,
.biz-job-love-btn:active {
    color: #E11D48;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.biz-job-love-btn .biz-job-love-icon svg {
    pointer-events: none;
}

.biz-job-love-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.biz-job-love-btn .biz-job-love-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.biz-job-love-btn .biz-job-love-icon--full {
    display: none;
}

.biz-job-love-btn .biz-job-love-icon--empty {
    display: inline-flex;
}

.biz-job-love-btn--liked .biz-job-love-icon--full {
    display: inline-flex;
    color: #E11D48;
}

.biz-job-love-btn--liked .biz-job-love-icon--empty {
    display: none;
}

.biz-job-more-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #0a66c2;
    border-radius: 4px;
    color: #0a66c2 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.biz-job-more-link:hover {
    background: #0a66c2;
    color: #fff;
}

.biz-job-company {
    color: #374151;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.biz-job-title {
    margin: 0;
    color: #111928;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.biz-job-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.biz-job-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.biz-job-detail .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.biz-job-desc {
    margin: 4px 0 0;
    color: #6B7280;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

/* Match pill + training hours (logged-in viewer) */
.biz-job-match-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.biz-job-match-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #10B981;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.biz-job-training-hours {
    color: #6B7280;
    font-size: 12px;
    line-height: 1.4;
}

/* Login prompt popup (guest viewers) */
.biz-login-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.biz-login-popup-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.biz-login-popup-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111928;
    line-height: 1.35;
}

.biz-login-popup-text {
    margin: 0 0 20px;
    font-size: 15px;
    color: #6B7280;
    line-height: 1.5;
}

.biz-login-popup-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #0a66c2;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.biz-login-popup-btn:hover {
    background: #004182;
    color: #fff;
}

.biz-login-popup-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.biz-login-popup-close:hover {
    color: #111928;
    background: #F3F4F6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .biz-header-info {
        padding: 0 16px 20px;
    }

    .biz-header-info-inner {
        gap: 14px;
    }

    .biz-logo-wrapper {
        width: 72px;
        height: 72px;
        margin-top: -20px;
    }

    .biz-business-name {
        font-size: 20px;
    }

    .biz-content {
        padding: 16px;
    }

    .biz-block {
        padding: 16px;
    }

    .biz-tabs {
        gap: 20px;
    }

    .biz-tab {
        font-size: 13px;
    }

    .biz-benefits-grid {
        grid-template-columns: 1fr;
    }

    .biz-job-card {
        padding: 16px;
    }

    .biz-job-bottom-row {
        flex-direction: column;
        align-items: flex-end;
    }
}

@media (max-width: 480px) {
    .biz-header-color-bar {
        height: 60px;
    }

    .biz-logo-wrapper {
        width: 64px;
        height: 64px;
    }

    .biz-business-name {
        font-size: 18px;
    }

    .biz-block {
        padding: 14px;
    }
}
