/**
 * assets/css/business-pages.css
 * Page-specific styles for connect/profile/business_pages.php.
 * Shared component styles (buttons, modal, alerts, forms) live in skye-shared.css.
 */

.business-pages-shell {
    width: min(calc(100% - 40px), 1100px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 128px 0 64px;
}

.bp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.bp-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: var(--skye-dark);
    letter-spacing: -0.3px;
}

.bp-header h1 i {
    color: var(--skye-blue);
    margin-right: 8px;
}

.bp-header p {
    color: #64748b;
    margin: 8px 0 0;
    font-size: 14px;
}

.bp-section {
    margin-bottom: 40px;
}

.bp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bp-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--skye-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bp-section-title i { color: var(--skye-blue); }
.bp-section-title .bp-warning-icon { color: #f59e0b; }

.bp-create-button {
    flex-shrink: 0;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px));
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.company-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    transition: all .2s;
    width: 100%;
}
.company-card:hover {
    border-color: var(--skye-blue);
    box-shadow: 0 8px 24px rgba(93, 156, 236, .12);
}

.company-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }

.company-name { font-weight: 700; font-size: 15px; color: var(--skye-dark); }
.company-role { font-size: 12px; color: #64748b; margin-top: 2px; }

.company-meta { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.company-bio {
    font-size: 13px;
    color: #64748b;
    margin: 12px 0;
    line-height: 1.4;
}

.company-actions { display: flex; gap: 8px; }
.company-actions button {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--skye-dark);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s;
}
.company-actions button:hover { border-color: var(--skye-blue); background: #f0f9ff; }

.company-actions .company-approve-button {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.company-actions .company-approve-button:hover {
    background: #059669;
    border-color: #059669;
}

@media (max-width: 640px) {
    .business-pages-shell {
        width: min(calc(100% - 24px), 1100px);
        padding-top: 112px;
    }

    .bp-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .bp-create-button {
        width: 100%;
        justify-content: center;
    }
}
